[linux-next:master 10519/10678] security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   37b355fdaf31ee18bda9a93c2a438dc1cbf57ec9
commit: 95c0581f9bfdfbe97126ba1c7f5650a9dd064dda [10519/10678] apparmor: add a kernel label to use on kernel objects
config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220714/202207142026.qqAoch7S-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=95c0581f9bfdfbe97126ba1c7f5650a9dd064dda
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 95c0581f9bfdfbe97126ba1c7f5650a9dd064dda
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash security/apparmor/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined' [-Wmissing-prototypes]
   struct aa_profile *alloc_unconfined(const char *name)
                      ^
   security/apparmor/policy_ns.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct aa_profile *alloc_unconfined(const char *name)
   ^
   static 
   1 warning generated.


vim +/alloc_unconfined +83 security/apparmor/policy_ns.c

    82	
  > 83	struct aa_profile *alloc_unconfined(const char *name)
    84	{
    85		struct aa_profile *profile;
    86	
    87		profile = aa_alloc_profile(name, NULL, GFP_KERNEL);
    88		if (!profile)
    89			return NULL;
    90	
    91		profile->label.flags |= FLAG_IX_ON_NAME_ERROR |
    92			FLAG_IMMUTIBLE | FLAG_NS_COUNT | FLAG_UNCONFINED;
    93		profile->mode = APPARMOR_UNCONFINED;
    94		profile->file.dfa = aa_get_dfa(nulldfa);
    95		profile->policy.dfa = aa_get_dfa(nulldfa);
    96	
    97		return profile;
    98	}
    99	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux