lkml.org 
[lkml]   [2022]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[daveh-devel:testme 2/2] arch/x86/kernel/setup.c:367:15: warning: no previous prototype for function 'ima_free_kexec_buffer'
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

\
 
 \ /
  Last update: 2022-06-12 09:51    [W:0.094 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site