All of lore.kernel.org
 help / color / mirror / Atom feed
* [xinli-intel-fred-public:intel-lkp 12/15] arch/x86/include/asm/msr.h:339:24: error: 'pv_msr_pv' undeclared; did you mean 'pv_msr_native'?
@ 2025-03-16 13:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-16 13:00 UTC (permalink / raw)
  To: Xin3 Li; +Cc: oe-kbuild-all

tree:   https://github.com/xinli-intel/linux-fred-public.git intel-lkp
head:   2a93967cbc089183a3ee08556bcdab2711c1c6de
commit: 483ec528ba6f92a2d0aa8d8dd829e2f91c56dd89 [12/15] x86/msr: Use the alternatives mechanism to write MSR
config: i386-buildonly-randconfig-003-20250316 (https://download.01.org/0day-ci/archive/20250316/202503162016.kiRjuDkc-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250316/202503162016.kiRjuDkc-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/202503162016.kiRjuDkc-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/tsc.h:10,
                    from arch/x86/include/asm/timex.h:6,
                    from include/linux/timex.h:67,
                    from include/linux/time32.h:13,
                    from include/linux/time.h:60,
                    from include/linux/jiffies.h:10,
                    from include/linux/ktime.h:25,
                    from include/linux/timer.h:6,
                    from include/linux/uprobes.h:18,
                    from include/linux/mm_types.h:16,
                    from include/linux/mmzone.h:22,
                    from include/linux/gfp.h:7,
                    from include/linux/slab.h:16,
                    from include/linux/crypto.h:17,
                    from arch/x86/kernel/asm-offsets.c:9:
   arch/x86/include/asm/msr.h: In function '__wrmsr_variable_all':
>> arch/x86/include/asm/msr.h:339:24: error: 'pv_msr_pv' undeclared (first use in this function); did you mean 'pv_msr_native'?
     339 |         if (pv_what == pv_msr_pv) {
         |                        ^~~~~~~~~
         |                        pv_msr_native
   arch/x86/include/asm/msr.h:339:24: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/include/asm/msr.h:341:31: error: 'pv_msr_ignore' undeclared (first use in this function)
     341 |         } else if (pv_what == pv_msr_ignore) {
         |                               ^~~~~~~~~~~~~
   arch/x86/include/asm/msr.h: At top level:
   arch/x86/include/asm/msr.h:515:20: error: redefinition of 'wrmsrl'
     515 | static inline void wrmsrl(u32 msr, u64 val)
         |                    ^~~~~~
   arch/x86/include/asm/msr.h:413:29: note: previous definition of 'wrmsrl' with type 'void(const u32,  const u64)' {aka 'void(const unsigned int,  const long long unsigned int)'}
     413 | static __always_inline void wrmsrl(const u32 msr, const u64 val)
         |                             ^~~~~~
   make[3]: *** [scripts/Makefile.build:102: arch/x86/kernel/asm-offsets.s] Error 1 shuffle=1913058473
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1272: prepare0] Error 2 shuffle=1913058473
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=1913058473
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:251: __sub-make] Error 2 shuffle=1913058473
   make: Target 'prepare' not remade because of errors.


vim +339 arch/x86/include/asm/msr.h

   334	
   335	static __always_inline bool __wrmsr_variable_all(const u32 msr, const u64 val, const int type)
   336	{
   337		const pv_msr_action_t pv_what = pv_msr_action(msr);
   338	
 > 339		if (pv_what == pv_msr_pv) {
   340			return __wrmsr_variable(msr, val, type);
 > 341		} else if (pv_what == pv_msr_ignore) {
   342			if (cpu_feature_enabled(X86_FEATURE_XENPV))
   343				return false;
   344		}
   345	
   346		return __native_wrmsr_variable(msr, val, type);
   347	}
   348	

-- 
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-03-16 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-16 13:00 [xinli-intel-fred-public:intel-lkp 12/15] arch/x86/include/asm/msr.h:339:24: error: 'pv_msr_pv' undeclared; did you mean 'pv_msr_native'? 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.