Content-Type: multipart/mixed; boundary="===============8564924107143519542==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [Intel-gfx] [PATCH 7/8] drm/i915: Clean up SSKPD/MLTR defines Date: Sat, 12 Feb 2022 01:58:22 +0800 Message-ID: <202202112353.zFgGmyBW-lkp@intel.com> In-Reply-To: <20220211090629.15555-8-ville.syrjala@linux.intel.com> List-Id: --===============8564924107143519542== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ville, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip next-20220211] [cannot apply to v5.17-rc3] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Ville-Syrjala/drm-i915-Pla= ne-wm-cleanups/20220211-170856 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: i386-defconfig (https://download.01.org/0day-ci/archive/20220211/20= 2202112353.zFgGmyBW-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/24cedeb8c8ca97104e12936a4= 647665dd0e9b0f8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Ville-Syrjala/drm-i915-Plane-wm-cl= eanups/20220211-170856 git checkout 24cedeb8c8ca97104e12936a4647665dd0e9b0f8 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/bits.h:35:22: error: left shift count >=3D width of type [= -Werror=3Dshift-count-overflow] 35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \ | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:65:3: note: in expansion of macro 'BUILD_BUG_ON= _MSG' 65 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:66:19: note: in expansion of macro '__bf_shf' 66 | ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ | ^~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:26:12: note: in expansion of macro = 'GENMASK' 26 | ((__type)(GENMASK(__high, __low) + \ | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/bits.h:36:11: error: right shift count is negative [-Werro= r=3Dshift-count-negative] 36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:65:3: note: in expansion of macro 'BUILD_BUG_ON= _MSG' 65 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:66:19: note: in expansion of macro '__bf_shf' 66 | ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ | ^~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:26:12: note: in expansion of macro = 'GENMASK' 26 | ((__type)(GENMASK(__high, __low) + \ | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/bitfield.h:66:16: error: right shift count is negative [-W= error=3Dshift-count-negative] 66 | ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:65:3: note: in expansion of macro 'BUILD_BUG_ON= _MSG' 65 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:35:22: error: left shift count >=3D width of type [= -Werror=3Dshift-count-overflow] 35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \ | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:68:3: note: in expansion of macro 'BUILD_BUG_ON= _MSG' 68 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:68:20: note: in expansion of macro '__bf_cast_u= nsigned' 68 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:26:12: note: in expansion of macro = 'GENMASK' 26 | ((__type)(GENMASK(__high, __low) + \ | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/bits.h:36:11: error: right shift count is negative [-Werro= r=3Dshift-count-negative] 36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:68:3: note: in expansion of macro 'BUILD_BUG_ON= _MSG' 68 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:68:20: note: in expansion of macro '__bf_cast_u= nsigned' 68 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); -- | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_O= N_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_O= N' 21 | BUILD_BUG_ON(((n) & ((n) - 1)) !=3D 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:71:3: note: in expansion of macro '__BUILD_BUG_= ON_NOT_POWER_OF_2' 71 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:72:21: note: in expansion of macro '__bf_shf' 72 | (1ULL << __bf_shf(_mask))); \ | ^~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:26:12: note: in expansion of macro = 'GENMASK' 26 | ((__type)(GENMASK(__high, __low) + \ | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/bits.h:36:11: error: right shift count is negative [-Werro= r=3Dshift-count-negative] 36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_O= N_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_O= N' 21 | BUILD_BUG_ON(((n) & ((n) - 1)) !=3D 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:71:3: note: in expansion of macro '__BUILD_BUG_= ON_NOT_POWER_OF_2' 71 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:72:21: note: in expansion of macro '__bf_shf' 72 | (1ULL << __bf_shf(_mask))); \ | ^~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:26:12: note: in expansion of macro = 'GENMASK' 26 | ((__type)(GENMASK(__high, __low) + \ | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/bitfield.h:72:18: error: left shift count is negative [-We= rror=3Dshift-count-negative] 72 | (1ULL << __bf_shf(_mask))); \ | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_O= N_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_O= N' 21 | BUILD_BUG_ON(((n) & ((n) - 1)) !=3D 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:71:3: note: in expansion of macro '__BUILD_BUG_= ON_NOT_POWER_OF_2' 71 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:35:22: error: left shift count >=3D width of type [= -Werror=3Dshift-count-overflow] 35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \ | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_O= N_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_O= N' 21 | BUILD_BUG_ON(((n) & ((n) - 1)) !=3D 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:71:3: note: in expansion of macro '__BUILD_BUG_= ON_NOT_POWER_OF_2' 71 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:125:3: note: in expansion of macro '__BF_FIELD_= CHECK' 125 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:77:56: note: in expansion of macro = 'FIELD_GET' 77 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET= (__mask, __val)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:101:40: note: in expansion of macro= '_REG_FIELD_GET' 101 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mas= k, __val) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:11: note: in expansion of macro 'RE= G_FIELD_GET64' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~ include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:26:12: note: in expansion of macro = 'GENMASK' 26 | ((__type)(GENMASK(__high, __low) + \ | ^~~~~~~ drivers/gpu/drm/i915/i915_reg_defs.h:53:38: note: in expansion of macro = '_REG_GENMASK' 53 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, _= _low) | ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:1900:34: note: in expansion of macro 'RE= G_GENMASK64' 1900 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56) | ^~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_pm.c:2949:27: note: in expansion of macro 'SS= KPD_NEW_WM0_MASK_HSW' 2949 | wm[0] =3D REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/bits.h:36:11: error: right shift count is negative [-Werro= r=3Dshift-count-negative] 36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/compiler_types.h:326:9: note: in definition of macro '__co= mpiletime_assert' 326 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:346:2: note: in expansion of macro '_comp= iletime_assert' 346 | _compiletime_assert(condition, msg, __compiletime_assert_, __CO= UNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletim= e_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), = msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_O= N_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_O= N' 21 | BUILD_BUG_ON(((n) & ((n) - 1)) !=3D 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:71:3: note: in expansion of macro '__BUILD_BUG_= ON_NOT_POWER_OF_2' 71 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ .. vim +66 include/linux/bitfield.h bff8c3848e071d3 Peter Zijlstra 2021-11-10 59 = 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 60 #define __BF_FIELD_CHECK(_ma= sk, _reg, _val, _pfx) \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 61 ({ \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 62 BUILD_BUG_ON_MSG(!__builti= n_constant_p(_mask), \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 63 _pfx "mask is not const= ant"); \ e36488c83b6d871 Arnd Bergmann 2018-08-17 64 BUILD_BUG_ON_MSG((_mask) = =3D=3D 0, _pfx "mask is zero"); \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 65 BUILD_BUG_ON_MSG(__builtin= _constant_p(_val) ? \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 @66 ~((_mask) >> __bf_shf(_= mask)) & (_val) : 0, \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 67 _pfx "value too large f= or the field"); \ bff8c3848e071d3 Peter Zijlstra 2021-11-10 68 BUILD_BUG_ON_MSG(__bf_cast= _unsigned(_mask, _mask) > \ bff8c3848e071d3 Peter Zijlstra 2021-11-10 69 __bf_cast_unsigned(_reg= , ~0ull), \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 70 _pfx "type of reg too s= mall for mask"); \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 71 __BUILD_BUG_ON_NOT_POWER_O= F_2((_mask) + \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 @72 (1ULL << __bf_shf= (_mask))); \ 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 73 }) 3e9b3112ec74f19 Jakub Kicinski 2016-08-31 74 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============8564924107143519542==--