linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 10519/10678] security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined'
@ 2022-07-14 12:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-14 12:23 UTC (permalink / raw)
  To: John Johansen; +Cc: llvm, kbuild-all, Linux Memory Management List

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@intel.com/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@intel.com>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-14 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14 12:23 [linux-next:master 10519/10678] security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).