You have been subscribed to a public bug:

Building the Ubuntu kernel at version 4.4.0-97.120 or 4.4.0-98.121 gives
warnings when linking apparmor.o such as:

  LD      security/apparmor/apparmor.o
WARNING: security/apparmor/apparmor.o(.text+0x1087b): Section mismatch in 
reference from the function param_get_mode() to the variable 
.init.data:apparmor_initialized
(next build fault)
The function param_get_mode() references
the variable __initdata apparmor_initialized.
This is often because param_get_mode lacks a __initdata 
annotation or the annotation of apparmor_initialized is wrong.

I believe this is because the __initdata annotation was removed from
security/apparmor/lsm.c but not from security/apparmor/include/lib.h

The following patch cleans the compilation warnings, but may not be the
correct fix:

--- security/apparmor/include/lib.h.orig        2017-11-02 14:43:59.903230945 
+0000
+++ security/apparmor/include/lib.h     2017-11-02 14:44:57.992635353 +0000
@@ -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);

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Linker warnings for apparmor.o
https://bugs.launchpad.net/bugs/1729634
You received this bug notification because you are a member of Ubuntu Touch 
seeded packages, which is subscribed to apparmor in Ubuntu.

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to