* [intel-tdx:kvm-upstream 87/190] arch/x86/include/asm/tdx.h:90:77: warning: shift count >= width of type
@ 2023-08-09 19:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-09 19:40 UTC (permalink / raw)
To: Isaku Yamahata; +Cc: llvm, oe-kbuild-all, Sean Christopherson
tree: https://github.com/intel/tdx.git kvm-upstream
head: 57f9d69e4c57a27ce959757603a99361d8875f80
commit: f9069bd76c0b0c3d6da09b6d6f18f447e1a33605 [87/190] KVM: TDX: Add C wrapper functions for SEAMCALLs to the TDX module
config: i386-randconfig-r014-20230809 (https://download.01.org/0day-ci/archive/20230810/202308100303.chmc1FIU-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/20230810/202308100303.chmc1FIU-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/202308100303.chmc1FIU-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:22:
>> arch/x86/include/asm/tdx.h:90:77: warning: shift count >= width of type [-Wshift-count-overflow]
static inline u64 __seamcall(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:25:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:21:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:20:21: note: expanded from macro 'TDX_ERROR'
#define TDX_ERROR _BITUL(63)
^~~~~~~~~~
include/uapi/linux/const.h:28:27: note: expanded from macro '_BITUL'
#define _BITUL(x) (_UL(1) << (x))
^ ~~~
In file included from arch/x86/kernel/asm-offsets.c:22:
arch/x86/include/asm/tdx.h:91:81: warning: shift count >= width of type [-Wshift-count-overflow]
static inline u64 __seamcall_ret(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:25:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:21:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:20:21: note: expanded from macro 'TDX_ERROR'
#define TDX_ERROR _BITUL(63)
^~~~~~~~~~
include/uapi/linux/const.h:28:27: note: expanded from macro '_BITUL'
#define _BITUL(x) (_UL(1) << (x))
^ ~~~
In file included from arch/x86/kernel/asm-offsets.c:22:
arch/x86/include/asm/tdx.h:92:87: warning: shift count >= width of type [-Wshift-count-overflow]
static inline u64 __seamcall_saved_ret(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:25:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:21:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:20:21: note: expanded from macro 'TDX_ERROR'
#define TDX_ERROR _BITUL(63)
^~~~~~~~~~
include/uapi/linux/const.h:28:27: note: expanded from macro '_BITUL'
#define _BITUL(x) (_UL(1) << (x))
^ ~~~
3 warnings generated.
--
In file included from arch/x86/kernel/asm-offsets.c:22:
>> arch/x86/include/asm/tdx.h:90:77: warning: shift count >= width of type [-Wshift-count-overflow]
static inline u64 __seamcall(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:25:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:21:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:20:21: note: expanded from macro 'TDX_ERROR'
#define TDX_ERROR _BITUL(63)
^~~~~~~~~~
include/uapi/linux/const.h:28:27: note: expanded from macro '_BITUL'
#define _BITUL(x) (_UL(1) << (x))
^ ~~~
In file included from arch/x86/kernel/asm-offsets.c:22:
arch/x86/include/asm/tdx.h:91:81: warning: shift count >= width of type [-Wshift-count-overflow]
static inline u64 __seamcall_ret(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:25:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:21:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:20:21: note: expanded from macro 'TDX_ERROR'
#define TDX_ERROR _BITUL(63)
^~~~~~~~~~
include/uapi/linux/const.h:28:27: note: expanded from macro '_BITUL'
#define _BITUL(x) (_UL(1) << (x))
^ ~~~
In file included from arch/x86/kernel/asm-offsets.c:22:
arch/x86/include/asm/tdx.h:92:87: warning: shift count >= width of type [-Wshift-count-overflow]
static inline u64 __seamcall_saved_ret(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:25:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:21:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:20:21: note: expanded from macro 'TDX_ERROR'
#define TDX_ERROR _BITUL(63)
^~~~~~~~~~
include/uapi/linux/const.h:28:27: note: expanded from macro '_BITUL'
#define _BITUL(x) (_UL(1) << (x))
^ ~~~
3 warnings generated.
vim +90 arch/x86/include/asm/tdx.h
79
80 #ifdef CONFIG_INTEL_TDX_HOST
81 u64 __seamcall(u64 fn, struct tdx_module_args *args);
82 u64 __seamcall_ret(u64 fn, struct tdx_module_args *args);
83 u64 __seamcall_saved_ret(u64 fn, struct tdx_module_args *args);
84 bool platform_tdx_enabled(void);
85 int tdx_cpu_enable(void);
86 int tdx_enable(void);
87 void tdx_reset_memory(void);
88 bool tdx_is_private_mem(unsigned long phys);
89 #else
> 90 static inline u64 __seamcall(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
91 static inline u64 __seamcall_ret(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
92 static inline u64 __seamcall_saved_ret(u64 fn, struct tdx_module_args *args) { return TDX_SEAMCALL_UD; }
93 static inline bool platform_tdx_enabled(void) { return false; }
94 static inline int tdx_cpu_enable(void) { return -ENODEV; }
95 static inline int tdx_enable(void) { return -ENODEV; }
96 static inline void tdx_reset_memory(void) { }
97 static inline bool tdx_is_private_mem(unsigned long phys) { return false; }
98 #endif /* CONFIG_INTEL_TDX_HOST */
99
--
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:[~2023-08-09 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 19:40 [intel-tdx:kvm-upstream 87/190] arch/x86/include/asm/tdx.h:90:77: warning: shift count >= width of type kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox