public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tianyu Lan <tiala@microsoft.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Michael Kelley <mikelley@microsoft.com>
Subject: [lantianyu:test 18/29] arch/x86/kernel/cpu/mshyperv.c:543:3: error: call to undeclared function 'hv_sev_init_mem_and_cpu'; ISO C99 and later do not support implicit function declarations
Date: Wed, 9 Aug 2023 20:12:55 +0800	[thread overview]
Message-ID: <202308092032.xNConEC0-lkp@intel.com> (raw)

tree:   https://github.com/lantianyu/linux test
head:   1f50b51d0f25cf6e93d994fbc0ec9e2f1cb3b911
commit: b1fb0b5fda3b4d47523c15ad6817f5111e3ba898 [18/29] x86/hyperv: Initialize cpu and memory for SEV-SNP enlightened guest
config: x86_64-randconfig-x003-20230809 (https://download.01.org/0day-ci/archive/20230809/202308092032.xNConEC0-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230809/202308092032.xNConEC0-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/202308092032.xNConEC0-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/kernel/cpu/mshyperv.c:543:3: error: call to undeclared function 'hv_sev_init_mem_and_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                   hv_sev_init_mem_and_cpu();
                   ^
   1 error generated.


vim +/hv_sev_init_mem_and_cpu +543 arch/x86/kernel/cpu/mshyperv.c

   529	
   530		/* Register Hyper-V specific clocksource */
   531		hv_init_clocksource();
   532		hv_vtl_init_platform();
   533	#endif
   534		/*
   535		 * TSC should be marked as unstable only after Hyper-V
   536		 * clocksource has been initialized. This ensures that the
   537		 * stability of the sched_clock is not altered.
   538		 */
   539		if (!(ms_hyperv.features & HV_ACCESS_TSC_INVARIANT))
   540			mark_tsc_unstable("running on Hyper-V");
   541	
   542		if (hv_isolation_type_en_snp())
 > 543			hv_sev_init_mem_and_cpu();
   544	
   545		hardlockup_detector_disable();
   546	}
   547	

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

                 reply	other threads:[~2023-08-09 12:13 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=202308092032.xNConEC0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=mikelley@microsoft.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tiala@microsoft.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox