All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Xin3 Li <xin3.li@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sun, 20 Apr 2025 12:35:26 +0800	[thread overview]
Message-ID: <202504201203.qe2AV3Ac-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-04-20  4:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202504201203.qe2AV3Ac-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=xin3.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.