Skip to contentSkip to conversation

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

PATCH kernel test robot 1 participant 1 message May 6, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
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/[email protected]/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/[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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

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

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