lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206121517.ww6IZORM-lkp@intel.com>
Date:   Sun, 12 Jun 2022 15:50:44 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jonathan McDowell <noodles@...com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Dave Hansen <dave.hansen@...ux.intel.com>,
        Mimi Zohar <zohar@...ux.ibm.com>, Baoquan He <bhe@...hat.com>
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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ