From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0785D8C11 for ; Mon, 29 May 2023 15:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685374244; x=1716910244; h=date:from:to:cc:subject:message-id:mime-version; bh=eRKoPm+hwX/jrHwRywyjJM5E6MCB0JWBhkMxbk1MmfU=; b=OsB7QAqw/lTBJQiIOldJNs7NeEHTW/WfX4dS3bWWn61mJYdotRogUEEn H52NghjaTyyrPkIGXbxuIZV0g9muRkHhyAHP9D3qYcB9njkqRwmp0ibpj zqfmnbgh56dBObVARUpJwoTSoz4e5ki4bHgTTSJhpkOrCelIhgua+ZT0W TaGxxiOLgVvbGIZR6SlYH6O+ermhsmttBHkMhqJKSR2A5BVuiltGLVrEl usNK8Zq4nCpyDnXTVr3af9BaI9kRGBKjy6Y87WA4LBJr8kkfDgmIjclU+ Bt1SyHUPTberlQBZgVL6qdjmW1XJC+hZOUGNbaWe67fNePSqils2o2OLc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="420485872" X-IronPort-AV: E=Sophos;i="6.00,201,1681196400"; d="scan'208";a="420485872" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2023 08:30:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="818474703" X-IronPort-AV: E=Sophos;i="6.00,201,1681196400"; d="scan'208";a="818474703" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 29 May 2023 08:30:42 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1q3epV-000L26-1h; Mon, 29 May 2023 15:30:41 +0000 Date: Mon, 29 May 2023 23:29:40 +0800 From: kernel test robot To: Isaku Yamahata Cc: oe-kbuild-all@lists.linux.dev, Sean Christopherson Subject: [intel-tdx:kvm-upstream-workaround 57/327] include/uapi/linux/const.h:28:33: error: left shift count >= width of type Message-ID: <202305292317.pb0Pz05d-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/intel/tdx.git kvm-upstream-workaround head: 148ce77f987a3cf12193c1f81baa78f41cf13154 commit: 37b118268ccf73d8e9cc1ef8f9fb7376fb732d60 [57/327] KVM: TDX: Add C wrapper functions for SEAMCALLs to the TDX module config: i386-defconfig (https://download.01.org/0day-ci/archive/20230529/202305292317.pb0Pz05d-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): # https://github.com/intel/tdx/commit/37b118268ccf73d8e9cc1ef8f9fb7376fb732d60 git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx kvm-upstream-workaround git checkout 37b118268ccf73d8e9cc1ef8f9fb7376fb732d60 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202305292317.pb0Pz05d-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/vdso/const.h:5, from include/linux/const.h:4, from include/linux/bits.h:5, from include/linux/ioport.h:13, from include/linux/acpi.h:12, from drivers/gpu/drm/i915/i915_driver.c:30: arch/x86/include/asm/tdx.h: In function '__seamcall': >> include/uapi/linux/const.h:28:33: error: left shift count >= width of type [-Werror=shift-count-overflow] 28 | #define _BITUL(x) (_UL(1) << (x)) | ^~ arch/x86/include/asm/tdx.h:19:41: note: in expansion of macro '_BITUL' 19 | #define TDX_ERROR _BITUL(63) | ^~~~~~ arch/x86/include/asm/tdx.h:20:42: note: in expansion of macro 'TDX_ERROR' 20 | #define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40)) | ^~~~~~~~~ arch/x86/include/asm/tdx.h:24:42: note: in expansion of macro 'TDX_SW_ERROR' 24 | #define TDX_SEAMCALL_UD (TDX_SW_ERROR | X86_TRAP_UD) | ^~~~~~~~~~~~ arch/x86/include/asm/tdx.h:114:70: note: in expansion of macro 'TDX_SEAMCALL_UD' 114 | struct tdx_module_output *out) { return TDX_SEAMCALL_UD; }; | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +28 include/uapi/linux/const.h 2dd8a62c647691 Masahiro Yamada 2018-04-10 27 21e7bc600e3b66 Masahiro Yamada 2018-04-10 @28 #define _BITUL(x) (_UL(1) << (x)) 21e7bc600e3b66 Masahiro Yamada 2018-04-10 29 #define _BITULL(x) (_ULL(1) << (x)) 2fc016c5bd8aad H. Peter Anvin 2013-04-27 30 :::::: The code at line 28 was first introduced by commit :::::: 21e7bc600e3b662020c05fd0749bcf85f16336f7 linux/const.h: refactor _BITUL and _BITULL a bit :::::: TO: Masahiro Yamada :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki