arch/x86/kernel/setup.c:145:20: warning: variable 'ima_kexec_buffer_phys' set but not used

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   44696aa3a489d2baf58efa61b37833f100072bee
commit: b69a2afd5afce9bf6d56e349d6ab592c916e20f2 x86/kexec: Carry forward IMA measurement log on kexec
date:   4 years ago
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260713/[email protected]/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project b3e6e6dabdc02153552a64fc74ff5c7532447eed)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260713/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: b69a2afd5afc ("x86/kexec: Carry forward IMA measurement log on kexec")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:88:
   include/linux/compiler-clang.h:24:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
      24 | #define __SANITIZE_ADDRESS__
         |         ^
   <built-in>:353:9: note: previous definition is here
     353 | #define __SANITIZE_ADDRESS__ 1
         |         ^
>> arch/x86/kernel/setup.c:145:20: warning: variable 'ima_kexec_buffer_phys' set but not used [-Wunused-but-set-global]
     145 | static phys_addr_t ima_kexec_buffer_phys;
         |                    ^
>> arch/x86/kernel/setup.c:146:15: warning: variable 'ima_kexec_buffer_size' set but not used [-Wunused-but-set-global]
     146 | static size_t ima_kexec_buffer_size;
         |               ^
   3 warnings generated.


vim +/ima_kexec_buffer_phys +145 arch/x86/kernel/setup.c

   143	
   144	#ifdef CONFIG_IMA
 > 145	static phys_addr_t ima_kexec_buffer_phys;
 > 146	static size_t ima_kexec_buffer_size;
   147	#endif
   148	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.