All of lore.kernel.org
 help / color / mirror / Atom feed
* [xinli-intel-fred-public:intel-lkp 10/33] arch/x86/hyperv/ivm.c:113:9: error: call to undeclared function 'native_rdmsrq'; ISO C99 and later do not support implicit function declarations
@ 2025-04-20  4:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-20  4:35 UTC (permalink / raw)
  To: Xin3 Li; +Cc: oe-kbuild-all

Hi Xin,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://github.com/xinli-intel/linux-fred-public.git intel-lkp
head:   7847889af95a1a39c6e3e0ef6479df8b9505a17d
commit: d6194f8ae4246888ed7cafd9e11414724eb20c04 [10/33] x86/msr: Convert __rdmsr() uses to native_rdmsrq() uses
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250420/202504201203.qe2AV3Ac-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250420/202504201203.qe2AV3Ac-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/202504201203.qe2AV3Ac-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/hyperv/ivm.c:18:
   arch/x86/include/asm/mshyperv.h:307:9: error: call to undeclared function 'native_rdmsrq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     307 |         return native_rdmsrq(reg);
         |                ^
>> arch/x86/hyperv/ivm.c:113:9: error: call to undeclared function 'native_rdmsrq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     113 |         return native_rdmsrq(MSR_AMD64_SEV_ES_GHCB);
         |                ^
   arch/x86/hyperv/ivm.c:118:2: error: call to undeclared function 'native_wrmsrq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     118 |         native_wrmsrq(MSR_AMD64_SEV_ES_GHCB, val);
         |         ^
   arch/x86/hyperv/ivm.c:321:15: error: call to undeclared function 'native_read_msr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     321 |         vmsa->efer = native_read_msr(MSR_EFER);
         |                      ^
   4 errors generated.


vim +/native_rdmsrq +113 arch/x86/hyperv/ivm.c

   110	
   111	static inline u64 rd_ghcb_msr(void)
   112	{
 > 113		return native_rdmsrq(MSR_AMD64_SEV_ES_GHCB);
   114	}
   115	

-- 
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-04-20  4:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20  4:35 [xinli-intel-fred-public:intel-lkp 10/33] arch/x86/hyperv/ivm.c:113:9: error: call to undeclared function 'native_rdmsrq'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.