From: kernel test robot <lkp@intel.com>
To: Jonathan McDowell <noodles@fb.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Dave Hansen <dave.hansen@linux.intel.com>,
Mimi Zohar <zohar@linux.ibm.com>, Baoquan He <bhe@redhat.com>
Subject: [daveh-devel:testme 2/2] arch/x86/kernel/setup.c:367:15: warning: no previous prototype for function 'ima_free_kexec_buffer'
Date: Sun, 12 Jun 2022 15:50:44 +0800 [thread overview]
Message-ID: <202206121517.ww6IZORM-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git testme
head: a217a1ebac788fd28ccf79499e9e12e5519d70b7
commit: a217a1ebac788fd28ccf79499e9e12e5519d70b7 [2/2] x86/kexec: Carry forward IMA measurement log on kexec
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220612/202206121517.ww6IZORM-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6466c9abf3674bade1f6ee859f24ebc7aaf9cd88)
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/daveh/devel.git/commit/?id=a217a1ebac788fd28ccf79499e9e12e5519d70b7
git remote add daveh-devel https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git
git fetch --no-tags daveh-devel testme
git checkout a217a1ebac788fd28ccf79499e9e12e5519d70b7
# 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=i386 SHELL=/bin/bash arch/x86/kernel/
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 >>):
>> arch/x86/kernel/setup.c:367:15: warning: no previous prototype for function 'ima_free_kexec_buffer' [-Wmissing-prototypes]
int __meminit ima_free_kexec_buffer(void)
^
arch/x86/kernel/setup.c:367:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __meminit ima_free_kexec_buffer(void)
^
static
>> arch/x86/kernel/setup.c:385:12: warning: no previous prototype for function 'ima_get_kexec_buffer' [-Wmissing-prototypes]
int __init ima_get_kexec_buffer(void **addr, size_t *size)
^
arch/x86/kernel/setup.c:385:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __init ima_get_kexec_buffer(void **addr, size_t *size)
^
static
2 warnings generated.
vim +/ima_free_kexec_buffer +367 arch/x86/kernel/setup.c
365
366 #if defined(CONFIG_IMA) && !defined(CONFIG_OF_FLATTREE)
> 367 int __meminit ima_free_kexec_buffer(void)
368 {
369 int rc;
370
371 if (ima_kexec_buffer_size == 0)
372 return -ENOENT;
373
374 rc = memblock_phys_free(ima_kexec_buffer_phys,
375 ima_kexec_buffer_size);
376 if (rc)
377 return rc;
378
379 ima_kexec_buffer_phys = 0;
380 ima_kexec_buffer_size = 0;
381
382 return 0;
383 }
384
> 385 int __init ima_get_kexec_buffer(void **addr, size_t *size)
386 {
387 if (ima_kexec_buffer_size == 0)
388 return -ENOENT;
389
390 *addr = __va(ima_kexec_buffer_phys);
391 *size = ima_kexec_buffer_size;
392
393 return 0;
394 }
395 #endif
396
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-06-12 7:51 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=202206121517.ww6IZORM-lkp@intel.com \
--to=lkp@intel.com \
--cc=bhe@redhat.com \
--cc=dave.hansen@linux.intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=noodles@fb.com \
--cc=zohar@linux.ibm.com \
/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