|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v2] arm/mem_access: add conditional build of mem_access.c
On 2024-05-09 12:52, Julien Grall wrote: Hi, On 09/05/2024 11:39, Alessandro Zucchelli wrote:In order to comply to MISRA C:2012 Rule 8.4 for ARM asm/mem_access.h inthe case where MEM_ACCESS=n stubs are needed to allow the conditional compilation of the users of this header.I think you need to update the commit message given ...Signed-off-by: Alessandro Zucchelli <alessandro.zucchelli@xxxxxxxxxxx> --- Changes from v1: Reverted preprocessor conditional changes to xen/mem_access.h; added conditional build for xen/mem_access.c; provided stubs for asm/mem_access.h functions. --- xen/arch/arm/Makefile | 2 +- xen/arch/arm/include/asm/mem_access.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 7b1350e2ef..45dc29ea53 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -37,7 +37,7 @@ obj-$(CONFIG_IOREQ_SERVER) += ioreq.o obj-y += irq.o obj-y += kernel.init.o obj-$(CONFIG_LIVEPATCH) += livepatch.o -obj-y += mem_access.o +obj-$(CONFIG_MEM_ACCESS) += mem_access.o... this not only adding stub.obj-y += mm.o obj-y += monitor.o obj-y += p2m.odiff --git a/xen/arch/arm/include/asm/mem_access.h b/xen/arch/arm/include/asm/mem_access.hindex 35ed0ad154..2f73172e39 100644 --- a/xen/arch/arm/include/asm/mem_access.h +++ b/xen/arch/arm/include/asm/mem_access.h @@ -17,6 +17,7 @@ #ifndef _ASM_ARM_MEM_ACCESS_H #define _ASM_ARM_MEM_ACCESS_H +#include <xen/types.h>Can you explain why this is needed? Without the inclusion of xen/types header NULL would be undefined. Style: Newline here please. Thanks for the feedback, I will soon provide the new version of the patch with the requested stylistic changes and a clearer description. -- Alessandro Zucchelli, B.Sc. Software Engineer, BUGSENG (https://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |