* [intel-tdx:kvm-upstream-workaround 55/338] arch/x86/include/asm/tdx.h:114:49: warning: shift count >= width of type
@ 2023-04-25 1:33 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-04-25 1:33 UTC (permalink / raw)
To: Isaku Yamahata; +Cc: llvm, oe-kbuild-all, Sean Christopherson
tree: https://github.com/intel/tdx.git kvm-upstream-workaround
head: abaa3072a8763b7a6276df61d205bf33eb2f31a5
commit: 627dfa66ca7a1fa5af2927650f2e9d8a28b67a24 [55/338] KVM: TDX: Add C wrapper functions for SEAMCALLs to the TDX module
config: i386-randconfig-r031-20230424 (https://download.01.org/0day-ci/archive/20230425/202304250930.X9ICXdpc-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/tdx/commit/627dfa66ca7a1fa5af2927650f2e9d8a28b67a24
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream-workaround
git checkout 627dfa66ca7a1fa5af2927650f2e9d8a28b67a24
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 prepare
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304250930.X9ICXdpc-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:114:49: warning: shift count >= width of type [-Wshift-count-overflow]
struct tdx_module_output *out) { return TDX_SEAMCALL_UD; };
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:24:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:20:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:19: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))
^ ~~~
1 warning generated.
--
In file included from arch/x86/kernel/asm-offsets.c:22:
>> arch/x86/include/asm/tdx.h:114:49: warning: shift count >= width of type [-Wshift-count-overflow]
struct tdx_module_output *out) { return TDX_SEAMCALL_UD; };
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:24:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:20:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:19: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))
^ ~~~
1 warning generated.
vim +114 arch/x86/include/asm/tdx.h
102
103 #ifdef CONFIG_INTEL_TDX_HOST
104 bool platform_tdx_enabled(void);
105 int tdx_cpu_enable(void);
106 int tdx_enable(void);
107 u64 __seamcall(u64 op, u64 rcx, u64 rdx, u64 r8, u64 r9,
108 struct tdx_module_output *out);
109 #else /* !CONFIG_INTEL_TDX_HOST */
110 static inline bool platform_tdx_enabled(void) { return false; }
111 static inline int tdx_cpu_enable(void) { return -EINVAL; }
112 static inline int tdx_enable(void) { return -EINVAL; }
113 static inline u64 __seamcall(u64 op, u64 rcx, u64 rdx, u64 r8, u64 r9,
> 114 struct tdx_module_output *out) { return TDX_SEAMCALL_UD; };
115 #endif /* CONFIG_INTEL_TDX_HOST */
116
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 2+ messages in thread
* [intel-tdx:kvm-upstream-workaround 55/338] arch/x86/include/asm/tdx.h:114:49: warning: shift count >= width of type
@ 2023-04-24 23:58 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-04-24 23:58 UTC (permalink / raw)
To: Isaku Yamahata; +Cc: llvm, oe-kbuild-all, Sean Christopherson
tree: https://github.com/intel/tdx.git kvm-upstream-workaround
head: 5217810067c6f32309d1473fc94649608330885c
commit: 627dfa66ca7a1fa5af2927650f2e9d8a28b67a24 [55/338] KVM: TDX: Add C wrapper functions for SEAMCALLs to the TDX module
config: i386-randconfig-a001-20230424 (https://download.01.org/0day-ci/archive/20230425/202304250732.qEUlvwQP-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/tdx/commit/627dfa66ca7a1fa5af2927650f2e9d8a28b67a24
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream-workaround
git checkout 627dfa66ca7a1fa5af2927650f2e9d8a28b67a24
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 prepare
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304250732.qEUlvwQP-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:114:49: warning: shift count >= width of type [-Wshift-count-overflow]
struct tdx_module_output *out) { return TDX_SEAMCALL_UD; };
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:24:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:20:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:19: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))
^ ~~~
1 warning generated.
--
In file included from arch/x86/kernel/asm-offsets.c:22:
>> arch/x86/include/asm/tdx.h:114:49: warning: shift count >= width of type [-Wshift-count-overflow]
struct tdx_module_output *out) { return TDX_SEAMCALL_UD; };
^~~~~~~~~~~~~~~
arch/x86/include/asm/tdx.h:24:28: note: expanded from macro 'TDX_SEAMCALL_UD'
#define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD)
^~~~~~~~~~~~
arch/x86/include/asm/tdx.h:20:25: note: expanded from macro 'TDX_SW_ERROR'
#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40))
^~~~~~~~~
arch/x86/include/asm/tdx.h:19: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))
^ ~~~
1 warning generated.
vim +114 arch/x86/include/asm/tdx.h
102
103 #ifdef CONFIG_INTEL_TDX_HOST
104 bool platform_tdx_enabled(void);
105 int tdx_cpu_enable(void);
106 int tdx_enable(void);
107 u64 __seamcall(u64 op, u64 rcx, u64 rdx, u64 r8, u64 r9,
108 struct tdx_module_output *out);
109 #else /* !CONFIG_INTEL_TDX_HOST */
110 static inline bool platform_tdx_enabled(void) { return false; }
111 static inline int tdx_cpu_enable(void) { return -EINVAL; }
112 static inline int tdx_enable(void) { return -EINVAL; }
113 static inline u64 __seamcall(u64 op, u64 rcx, u64 rdx, u64 r8, u64 r9,
> 114 struct tdx_module_output *out) { return TDX_SEAMCALL_UD; };
115 #endif /* CONFIG_INTEL_TDX_HOST */
116
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-25 1:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-25 1:33 [intel-tdx:kvm-upstream-workaround 55/338] arch/x86/include/asm/tdx.h:114:49: warning: shift count >= width of type kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-04-24 23:58 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;
as well as URLs for NNTP newsgroup(s).