linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [daveh-devel:testme 2/2] arch/x86/kernel/setup.c:367:15: warning: no previous prototype for function 'ima_free_kexec_buffer'
@ 2022-06-12  7:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-12  7:50 UTC (permalink / raw)
  To: Jonathan McDowell
  Cc: llvm, kbuild-all, linux-kernel, Dave Hansen, Mimi Zohar, Baoquan He

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

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

only message in thread, other threads:[~2022-06-12  7:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-12  7:50 [daveh-devel:testme 2/2] arch/x86/kernel/setup.c:367:15: warning: no previous prototype for function 'ima_free_kexec_buffer' 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).