ACK/cmnt: [Xenial SRU] UBUNTU: SAUCE: apparmor: fix bad __initdata tagging on, apparmor_initialized

Stefan Bader stefan.bader at canonical.com
Wed Mar 28 09:23:06 UTC 2018


On 13.03.2018 21:48, John Johansen wrote:
> apparmor_initialized is no longer init only data and the __initdata
> tagging was removed from the variable definition in
> security/apparmor/lsm.c but missed being removed from the declaration
> in security/apparmor/include/lib.h
> 
> resulting in the following build warning
> 
> WARNING: vmlinux.o(.text+0x393a60): Section mismatch in reference from the function param_set_aauint() to the variable .init.data:apparmor_initialized
> 
BugLink: http://bugs.launchpad.net/bugs/1758471

> Signed-off-by: John Johansen <john.johansen at canonical.com>
Acked-by: Stefan Bader <stefan.bader at canonical.com>

> ---

Note to fix/add BugLink upon commit

>  security/apparmor/include/lib.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/security/apparmor/include/lib.h b/security/apparmor/include/lib.h
> index 954e22ae8342..3f3b8d09f1c5 100644
> --- a/security/apparmor/include/lib.h
> +++ b/security/apparmor/include/lib.h
> @@ -56,7 +56,7 @@
>  	} while (0)
>  
>  /* Flag indicating whether initialization completed */
> -extern int apparmor_initialized __initdata;
> +extern int apparmor_initialized;
>  
>  /* fn's in lib */
>  char *aa_split_fqname(char *args, char **ns_name);
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20180328/84751aec/attachment.sig>


More information about the kernel-team mailing list