Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [linuxppc:next-test 32/41] arch/powerpc/platforms/pseries/htmdump.c:138:6: error: call to undeclared function 'is_kvm_guest'; ISO C99 and later do not support implicit function declarations
@ 2025-05-06  5:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-06  5:18 UTC (permalink / raw)
  To: Athira Rajeev; +Cc: llvm, oe-kbuild-all, Madhavan Srinivasan

tree:   https://github.com/linuxppc/linux next-test
head:   5a821e2d69e26b51b7f3740b6b0c3462b8cacaff
commit: 6e204ef3b73e41e46784fdd298c3d81caed84873 [32/41] powerpc/pseries/htmdump: Add htm_hcall_wrapper to integrate other htm operations
config: powerpc64-randconfig-003-20250506 (https://download.01.org/0day-ci/archive/20250506/202505061324.elUl4njU-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250506/202505061324.elUl4njU-lkp@intel.com/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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505061324.elUl4njU-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/powerpc/platforms/pseries/htmdump.c:138:6: error: call to undeclared function 'is_kvm_guest'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     138 |         if (is_kvm_guest()) {
         |             ^
   1 error generated.


vim +/is_kvm_guest +138 arch/powerpc/platforms/pseries/htmdump.c

   134	
   135	static int __init htmdump_init(void)
   136	{
   137		/* Disable on kvm guest */
 > 138		if (is_kvm_guest()) {
   139			pr_info("htmdump not supported inside KVM guest\n");
   140			return -EOPNOTSUPP;
   141		}
   142	
   143		if (htmdump_init_debugfs())
   144			return -ENOMEM;
   145	
   146		return 0;
   147	}
   148	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-05-06  5:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06  5:18 [linuxppc:next-test 32/41] arch/powerpc/platforms/pseries/htmdump.c:138:6: error: call to undeclared function 'is_kvm_guest'; ISO C99 and later do not support implicit function declarations 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