[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen/xsm: Annotate xsm_initcall() data as const



>>> On 09.06.16 at 11:58, <andrew.cooper3@xxxxxxxxxx> wrote:
> --- a/xen/include/xsm/xsm.h
> +++ b/xen/include/xsm/xsm.h
> @@ -51,7 +51,7 @@ typedef void (*xsm_initcall_t)(void);
>  extern xsm_initcall_t __xsm_initcall_start[], __xsm_initcall_end[];
>  
>  #define xsm_initcall(fn) \
> -    static xsm_initcall_t __initcall_##fn \
> +    static const xsm_initcall_t __initcall_##fn \
>      __used_section(".xsm_initcall.init") = fn

Same here - please make the bounding symbol declarations then
const too.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.