From: kernel test robot <lkp@intel.com>
To: John Johansen <john.johansen@canonical.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 10519/10678] security/apparmor/policy_ns.c:83:20: warning: no previous prototype for function 'alloc_unconfined'
Date: Thu, 14 Jul 2022 20:23:55 +0800 [thread overview]
Message-ID: <202207142026.qqAoch7S-lkp@intel.com> (raw)
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
reply other threads:[~2022-07-14 12:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202207142026.qqAoch7S-lkp@intel.com \
--to=lkp@intel.com \
--cc=john.johansen@canonical.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox