j721e-evm.c:undefined reference to `clk_set_parent'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e28c0d7c92c89016c12a677616668957351e7542
commit: 6748d05590594837e42dfa975879fb275099f0b2 ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)
date: 5 months ago
config: mips-randconfig-c003-20201104 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6748d05590594837e42dfa975879fb275099f0b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mipsel-linux-ld: drivers/gpu/drm/exynos/exynos_mixer.o: in function `mixer_bind':
exynos_mixer.c:(.text+0x988): undefined reference to `clk_set_parent'
mipsel-linux-ld: drivers/gpu/drm/exynos/exynos_hdmi.o: in function `hdmi_clk_set_parents':
exynos_hdmi.c:(.text+0x2d0): undefined reference to `clk_set_parent'
mipsel-linux-ld: drivers/gpu/drm/ingenic/ingenic-drm.o: in function `ingenic_drm_probe':
ingenic-drm.c:(.text+0xe8c): undefined reference to `clk_get_parent'
mipsel-linux-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init':
phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent'
mipsel-linux-ld: sound/soc/meson/aiu-encoder-spdif.o: in function `aiu_encoder_spdif_startup':
aiu-encoder-spdif.c:(.text+0x3a0): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/meson/axg-tdm-formatter.o: in function `axg_tdm_formatter_event':
(.text+0x7ec): undefined reference to `clk_set_parent'
mipsel-linux-ld: (.text+0x940): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/sh/fsi.o: in function `fsi_clk_set_rate_external':
fsi.c:(.text+0x26f0): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/stm/stm32_i2s.o: in function `stm32_i2s_hw_params':
stm32_i2s.c:(.text+0x1870): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/stm/stm32_i2s.o:stm32_i2s.c:(.text+0x19dc): more undefined references to `clk_set_parent' follow
mipsel-linux-ld: sound/soc/ti/omap-dmic.o: in function `omap_dmic_set_dai_sysclk':
omap-dmic.c:(.text+0xa5c): undefined reference to `clk_get_parent'
mipsel-linux-ld: omap-dmic.c:(.text+0xaa0): undefined reference to `clk_set_parent'
mipsel-linux-ld: omap-dmic.c:(.text+0xb7c): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/ti/omap-mcbsp.o: in function `omap2_mcbsp_set_clks_src':
omap-mcbsp.c:(.text+0x650): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/ti/j721e-evm.o: in function `j721e_configure_refclk':
>> j721e-evm.c:(.text+0x27c): undefined reference to `clk_set_parent'
>> mipsel-linux-ld: j721e-evm.c:(.text+0x298): undefined reference to `clk_set_parent'
mipsel-linux-ld: sound/soc/ti/j721e-evm.o: in function `j721e_soc_probe':
>> j721e-evm.c:(.text+0x2030): undefined reference to `clk_get_parent'
>> mipsel-linux-ld: j721e-evm.c:(.text+0x2078): undefined reference to `clk_get_parent'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[f2fs-stable:linux-5.4.y 400/408] arch/sparc/crypto/sha256_glue.c:160:25: error: 'sha256' redeclared as different kind of symbol
by kernel test robot
Hi Eric,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git linux-5.4.y
head: ec154a8f0cb674ec265a28660388967f07edeac1
commit: cf24f27f1874da8e52e7f438e39e735d781152d0 [400/408] crypto: lib/sha256 - add sha256() function
config: sparc-randconfig-c003-20201113 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git/c...
git remote add f2fs-stable https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
git fetch --no-tags f2fs-stable linux-5.4.y
git checkout cf24f27f1874da8e52e7f438e39e735d781152d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/sparc/crypto/sha256_glue.c:160:25: error: 'sha256' redeclared as different kind of symbol
160 | static struct shash_alg sha256 = {
| ^~~~~~
In file included from arch/sparc/crypto/sha256_glue.c:20:
include/crypto/sha.h:140:6: note: previous declaration of 'sha256' was here
140 | void sha256(const u8 *data, unsigned int len, u8 *out);
| ^~~~~~
In file included from arch/sparc/crypto/sha256_glue.c:242:
arch/sparc/crypto/crop_devid.c:11:34: warning: 'crypto_opcode_match' defined but not used [-Wunused-const-variable=]
11 | static const struct of_device_id crypto_opcode_match[] = {
| ^~~~~~~~~~~~~~~~~~~
vim +/sha256 +160 arch/sparc/crypto/sha256_glue.c
86c93b24ef49d6 David S. Miller 2012-08-19 159
86c93b24ef49d6 David S. Miller 2012-08-19 @160 static struct shash_alg sha256 = {
86c93b24ef49d6 David S. Miller 2012-08-19 161 .digestsize = SHA256_DIGEST_SIZE,
86c93b24ef49d6 David S. Miller 2012-08-19 162 .init = sha256_sparc64_init,
86c93b24ef49d6 David S. Miller 2012-08-19 163 .update = sha256_sparc64_update,
86c93b24ef49d6 David S. Miller 2012-08-19 164 .final = sha256_sparc64_final,
86c93b24ef49d6 David S. Miller 2012-08-19 165 .export = sha256_sparc64_export,
86c93b24ef49d6 David S. Miller 2012-08-19 166 .import = sha256_sparc64_import,
86c93b24ef49d6 David S. Miller 2012-08-19 167 .descsize = sizeof(struct sha256_state),
86c93b24ef49d6 David S. Miller 2012-08-19 168 .statesize = sizeof(struct sha256_state),
86c93b24ef49d6 David S. Miller 2012-08-19 169 .base = {
86c93b24ef49d6 David S. Miller 2012-08-19 170 .cra_name = "sha256",
86c93b24ef49d6 David S. Miller 2012-08-19 171 .cra_driver_name= "sha256-sparc64",
1080362425793f David S. Miller 2012-09-15 172 .cra_priority = SPARC_CR_OPCODE_PRIORITY,
86c93b24ef49d6 David S. Miller 2012-08-19 173 .cra_blocksize = SHA256_BLOCK_SIZE,
86c93b24ef49d6 David S. Miller 2012-08-19 174 .cra_module = THIS_MODULE,
86c93b24ef49d6 David S. Miller 2012-08-19 175 }
86c93b24ef49d6 David S. Miller 2012-08-19 176 };
86c93b24ef49d6 David S. Miller 2012-08-19 177
:::::: The code at line 160 was first introduced by commit
:::::: 86c93b24ef49d64062045c4e3cc2ed4609f6842a sparc64: Add SHA224/SHA256 driver making use of the 'sha256' instruction.
:::::: TO: David S. Miller <davem(a)davemloft.net>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [RFC PATCH 5/9] cxl/mem: Find device capabilities
by kernel test robot
Hi Ben,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on pm/linux-next]
[also build test ERROR on linus/master linux/master v5.10-rc3 next-20201113]
[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/Ben-Widawsky/CXL-2-0-Support/202...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/03316f5eab47413b046c08f6b977867df...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ben-Widawsky/CXL-2-0-Support/20201111-134547
git checkout 03316f5eab47413b046c08f6b977867dfade36f9
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/cxl/mem.c:8:
drivers/cxl/cxl.h: In function 'cxl_write_status_reg64':
>> drivers/cxl/cxl.h:58:3: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
58 | writeq(value, reg_addr + reg); \
| ^~~~~~
drivers/cxl/cxl.h:73:1: note: in expansion of macro 'cxl_reg'
73 | cxl_reg(status)
| ^~~~~~~
drivers/cxl/cxl.h: In function 'cxl_read_status_reg64':
>> drivers/cxl/cxl.h:70:10: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
70 | return readq(reg_addr + reg); \
| ^~~~~
drivers/cxl/cxl.h:73:1: note: in expansion of macro 'cxl_reg'
73 | cxl_reg(status)
| ^~~~~~~
cc1: some warnings being treated as errors
vim +58 drivers/cxl/cxl.h
46
47 #define cxl_reg(type) \
48 static inline void cxl_write_##type##_reg32(struct cxl_mem *cxlm, \
49 u32 reg, u32 value) \
50 { \
51 void __iomem *reg_addr = READ_ONCE(cxlm->type.regs); \
52 writel(value, reg_addr + reg); \
53 } \
54 static inline void cxl_write_##type##_reg64(struct cxl_mem *cxlm, \
55 u32 reg, u64 value) \
56 { \
57 void __iomem *reg_addr = READ_ONCE(cxlm->type.regs); \
> 58 writeq(value, reg_addr + reg); \
59 } \
60 static inline u32 cxl_read_##type##_reg32(struct cxl_mem *cxlm, \
61 u32 reg) \
62 { \
63 void __iomem *reg_addr = READ_ONCE(cxlm->type.regs); \
64 return readl(reg_addr + reg); \
65 } \
66 static inline u64 cxl_read_##type##_reg64(struct cxl_mem *cxlm, \
67 u32 reg) \
68 { \
69 void __iomem *reg_addr = READ_ONCE(cxlm->type.regs); \
> 70 return readq(reg_addr + reg); \
71 }
72
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[RFC PATCH] usb: gadget: ffs: async_bulkurb_active_lock can be static
by kernel test robot
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
f_fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c
index 194d45d940313..b59e144ad7e0e 100644
--- a/drivers/usb/gadget/function/f_fs.c
+++ b/drivers/usb/gadget/function/f_fs.c
@@ -237,7 +237,7 @@ enum {
FFS_BULKURB_STATE_PENDING = 1,
FFS_BULKURB_STATE_ACTIVE = 2
};
-DEFINE_SPINLOCK(async_bulkurb_active_lock);
+static DEFINE_SPINLOCK(async_bulkurb_active_lock);
struct async_bulkurb {
struct ffs_epfile *epfile;
struct list_head urblist;
1 year, 10 months
Re: [PATCH 1/2] usb: gadget: ffs: Implement user URBs for USB bulk endpoints
by kernel test robot
Hi Ingo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on balbi-usb/testing/next]
[also build test WARNING on usb/usb-testing peter.chen-usb/ci-for-usb-next linus/master v5.10-rc3 next-20201113]
[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/Ingo-Rohloff/usb-gadget-User-spa...
base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
config: x86_64-randconfig-s032-20201111 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://github.com/0day-ci/linux/commit/9f07add950a345cd51a7d56e685577b93...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ingo-Rohloff/usb-gadget-User-space-URBs-for-FunctionFS/20201112-011456
git checkout 9f07add950a345cd51a7d56e685577b93da8a5f0
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/usb/gadget/function/f_fs.c:240:1: sparse: sparse: symbol 'async_bulkurb_active_lock' was not declared. Should it be static?
drivers/usb/gadget/function/f_fs.c:3336:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] wMaxPacketSize @@ got restricted __le16 [usertype] wMaxPacketSize @@
drivers/usb/gadget/function/f_fs.c:3336:32: sparse: expected unsigned short [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:3336:32: sparse: got restricted __le16 [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:3361:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] wMaxPacketSize @@ got unsigned short [usertype] wMaxPacketSize @@
drivers/usb/gadget/function/f_fs.c:3361:36: sparse: expected restricted __le16 [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:3361:36: sparse: got unsigned short [usertype] wMaxPacketSize
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [Intel-gfx] [PATCH 09/10] drm/i915: Clean up SSKPD/MLTR defines
by kernel test robot
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 v5.10-rc3 next-20201113]
[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-ilk-wm-cl...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a003-20201031 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/c5a60152af62d42e7f7ab2525073c7d7f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ville-Syrjala/drm-i915-ilk-wm-cleanups/20201031-222959
git checkout c5a60152af62d42e7f7ab2525073c7d7f74a8e7c
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:
drivers/gpu/drm/i915/intel_pm.c: In function 'intel_read_wm_latency':
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
46 | BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
46 | BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
48 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
48 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf'
50 | ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
| ^~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf'
50 | ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
| ^~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bitfield.h:50:16: error: right shift count is negative [-Werror=shift-count-negative]
50 | ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
52 | BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
52 | BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf'
55 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf'
55 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bitfield.h:55:18: error: left shift count is negative [-Werror=shift-count-negative]
55 | (1ULL << __bf_shf(_mask))); \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf'
55 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:36:11: error: right shift count is negative [-Werror=shift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf'
55 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = 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.h:133:12: note: in expansion of macro 'GENMASK'
133 | ((__type)(GENMASK(__high, __low) + \
| ^~~~~~~
drivers/gpu/drm/i915/i915_reg.h:160:38: note: in expansion of macro '_REG_GENMASK'
160 | #define REG_GENMASK64(__high, __low) _REG_GENMASK(u64, __high, __low)
| ^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:3822:34: note: in expansion of macro 'REG_GENMASK64'
3822 | #define SSKPD_NEW_WM0_MASK_HSW REG_GENMASK64(63, 56)
| ^~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:27: note: in expansion of macro 'SSKPD_NEW_WM0_MASK_HSW'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:55:18: error: left shift count is negative [-Werror=shift-count-negative]
55 | (1ULL << __bf_shf(_mask))); \
| ^~
include/linux/compiler_types.h:299:9: note: in definition of macro '__compiletime_assert'
299 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_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_ON_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_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
108 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:184:56: note: in expansion of macro 'FIELD_GET'
184 | #define _REG_FIELD_GET(__type, __mask, __val) ((__type)FIELD_GET(__mask, __val))
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/i915/intel_wakeref.h:11,
from drivers/gpu/drm/i915/intel_runtime_pm.h:13,
from drivers/gpu/drm/i915/display/intel_display_power.h:10,
from drivers/gpu/drm/i915/display/intel_bw.h:12,
from drivers/gpu/drm/i915/intel_pm.c:36:
include/linux/bits.h:35:22: error: left shift count >= width of type [-Werror=shift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/bitfield.h:109:30: note: in definition of macro 'FIELD_GET'
109 | (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:208:40: note: in expansion of macro '_REG_FIELD_GET'
208 | #define REG_FIELD_GET64(__mask, __val) _REG_FIELD_GET(u64, __mask, __val)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:2936:11: note: in expansion of macro 'REG_FIELD_GET64'
2936 | wm[0] = REG_FIELD_GET64(SSKPD_NEW_WM0_MASK_HSW, sskpd);
| ^~~~~~~~~~~~~~~
vim +35 include/linux/bits.h
295bcca84916cb5 Rikard Falkeborn 2020-04-06 33
295bcca84916cb5 Rikard Falkeborn 2020-04-06 34 #define __GENMASK(h, l) \
95b980d62d52c4c Masahiro Yamada 2019-07-16 @35 (((~UL(0)) - (UL(1) << (l)) + 1) & \
95b980d62d52c4c Masahiro Yamada 2019-07-16 @36 (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
295bcca84916cb5 Rikard Falkeborn 2020-04-06 37 #define GENMASK(h, l) \
295bcca84916cb5 Rikard Falkeborn 2020-04-06 38 (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
8bd9cb51daac893 Will Deacon 2018-06-19 39
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
mtk_scp_ipi.c:undefined reference to `__iowrite32_copy'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e28c0d7c92c89016c12a677616668957351e7542
commit: cbd2dca74926c0e4610c40923cc786b732c9e8ef remoteproc: scp: add COMPILE_TEST dependency
date: 7 weeks ago
config: s390-randconfig-p002-20201115 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout cbd2dca74926c0e4610c40923cc786b732c9e8ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: drivers/reset/reset-axs10x.o: in function `axs10x_reset_probe':
reset-axs10x.c:(.text+0x54): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o: in function `lpc18xx_rgu_probe':
reset-lpc18xx.c:(.text+0x3aa): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson.o: in function `meson_reset_probe':
reset-meson.c:(.text+0xcc): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson-audio-arb.o: in function `meson_audio_arb_probe':
reset-meson-audio-arb.c:(.text+0x204): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0x41a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0xf6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-sunxi.o: in function `sun6i_reset_init':
reset-sunxi.c:(.init.text+0xe0): undefined reference to `of_address_to_resource'
s390-linux-ld: reset-sunxi.c:(.init.text+0x13a): undefined reference to `ioremap'
s390-linux-ld: drivers/reset/reset-uniphier-glue.o: in function `uniphier_glue_reset_probe':
reset-uniphier-glue.c:(.text+0x1e0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/exynos-trng.o: in function `exynos_trng_probe':
exynos-trng.c:(.text+0x390): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/meson-rng.o: in function `meson_rng_probe':
meson-rng.c:(.text+0xea): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x11e): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/mfd/syscon.o: in function `of_syscon_register':
syscon.c:(.text+0x364): undefined reference to `of_address_to_resource'
s390-linux-ld: syscon.c:(.text+0x3c6): undefined reference to `ioremap'
s390-linux-ld: syscon.c:(.text+0x5d2): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/olpc_apsp.o: in function `olpc_apsp_probe':
olpc_apsp.c:(.text+0x550): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/cec/platform/meson/ao-cec.o: in function `meson_ao_cec_probe':
ao-cec.c:(.text+0x1fc): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/cec/platform/sti/stih-cec.o: in function `stih_cec_probe':
stih-cec.c:(.text+0x4e0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/power/reset/ocelot-reset.o: in function `ocelot_reset_probe':
ocelot-reset.c:(.text+0x12c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/broadcom/brcmstb_thermal.o: in function `brcmstb_thermal_probe':
brcmstb_thermal.c:(.text+0x1da): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/watchdog/asm9260_wdt.o: in function `asm9260_wdt_probe':
asm9260_wdt.c:(.text+0x5ac): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/at91sam9_wdt.o: in function `at91wdt_probe':
at91sam9_wdt.c:(.init.text+0x1a8): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/sama5d4_wdt.o: in function `sama5d4_wdt_probe':
sama5d4_wdt.c:(.text+0x734): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/ep93xx_wdt.o: in function `ep93xx_wdt_probe':
ep93xx_wdt.c:(.text+0x17a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/npcm_wdt.o: in function `npcm_wdt_probe':
npcm_wdt.c:(.text+0x3ea): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/ts72xx_wdt.o:ts72xx_wdt.c:(.text+0x1b2): more undefined references to `devm_platform_ioremap_resource' follow
s390-linux-ld: drivers/watchdog/mv64x60_wdt.o: in function `mv64x60_wdt_probe':
mv64x60_wdt.c:(.text+0x35a): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/crypto/atmel-sha.o: in function `atmel_sha_probe':
atmel-sha.c:(.text+0x2f6a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/ccree/cc_driver.o: in function `init_cc_resources':
cc_driver.c:(.text+0x958): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/ccree/cc_debugfs.o: in function `cc_debugfs_init':
cc_debugfs.c:(.text+0xfe): undefined reference to `debugfs_create_regset32'
s390-linux-ld: cc_debugfs.c:(.text+0x1d0): undefined reference to `debugfs_create_regset32'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x64): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x4d8): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x5fa): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `davinci_timer_register':
timer-davinci.c:(.init.text+0xe0): undefined reference to `ioremap'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `of_davinci_timer_register':
timer-davinci.c:(.init.text+0x4d6): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/clocksource/clps711x-timer.o: in function `clps711x_timer_init':
clps711x-timer.c:(.init.text+0x4a): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/timer-atlas7.o: in function `sirfsoc_of_timer_init':
timer-atlas7.c:(.init.text+0x26): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/timer-prima2.o: in function `sirfsoc_prima2_timer_init':
timer-prima2.c:(.init.text+0xe8): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/timer-zevio.o: in function `zevio_timer_add':
timer-zevio.c:(.init.text+0xc0): undefined reference to `of_iomap'
s390-linux-ld: timer-zevio.c:(.init.text+0x16a): undefined reference to `iounmap'
s390-linux-ld: timer-zevio.c:(.init.text+0x17c): undefined reference to `of_iomap'
s390-linux-ld: timer-zevio.c:(.init.text+0x1ca): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/clocksource/bcm_kona_timer.o: in function `kona_timer_init':
bcm_kona_timer.c:(.init.text+0x134): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/ingenic-ost.o: in function `ingenic_ost_probe':
ingenic-ost.c:(.init.text+0x78): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/imx-mailbox.o: in function `imx_mu_probe':
imx-mailbox.c:(.text+0x5fe): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/rockchip-mailbox.o: in function `rockchip_mbox_probe':
rockchip-mailbox.c:(.text+0x7d0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/sun6i-msgbox.o: in function `sun6i_msgbox_probe':
sun6i-msgbox.c:(.text+0xa90): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/sprd-mailbox.o: in function `sprd_mbox_probe':
sprd-mailbox.c:(.text+0x5e2): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: sprd-mailbox.c:(.text+0x610): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/qcom-ipcc.o: in function `qcom_ipcc_probe':
qcom-ipcc.c:(.text+0x43e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/hwspinlock/qcom_hwspinlock.o: in function `qcom_hwspinlock_probe':
qcom_hwspinlock.c:(.text+0x310): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/hwspinlock/sprd_hwspinlock.o: in function `sprd_hwspinlock_probe':
sprd_hwspinlock.c:(.text+0x21e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/remoteproc/mtk_scp.o: in function `scp_probe':
mtk_scp.c:(.text+0x7ae): undefined reference to `devm_ioremap_resource'
s390-linux-ld: mtk_scp.c:(.text+0x868): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/remoteproc/mtk_scp_ipi.o: in function `scp_memcpy_aligned':
>> mtk_scp_ipi.c:(.text+0x100): undefined reference to `__iowrite32_copy'
s390-linux-ld: drivers/nvmem/stm32-romem.o: in function `stm32_romem_probe':
stm32-romem.c:(.text+0x370): undefined reference to `devm_ioremap_resource'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-next:master 201/5794] drivers/soc/aspeed/aspeed-xdma.c:453:39: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 92edc4aef86780a8ad01b092c6d6630bb3cb423d
commit: 86609baa421735ab27c3b08db5bf18a96cc2132f [201/5794] soc: aspeed: xdma: Add user interface
config: m68k-randconfig-s031-20201115 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 86609baa421735ab27c3b08db5bf18a96cc2132f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/soc/aspeed/aspeed-xdma.c:453:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *dst @@ got struct aspeed_xdma_cmd * @@
>> drivers/soc/aspeed/aspeed-xdma.c:453:39: sparse: expected void volatile [noderef] __iomem *dst
drivers/soc/aspeed/aspeed-xdma.c:453:39: sparse: got struct aspeed_xdma_cmd *
vim +453 drivers/soc/aspeed/aspeed-xdma.c
0f6a7063f38520 Eddie James 2020-05-05 422
0f6a7063f38520 Eddie James 2020-05-05 423 static int aspeed_xdma_start(struct aspeed_xdma *ctx, unsigned int num_cmds,
0f6a7063f38520 Eddie James 2020-05-05 424 struct aspeed_xdma_cmd cmds[2], bool upstream,
0f6a7063f38520 Eddie James 2020-05-05 425 struct aspeed_xdma_client *client)
0f6a7063f38520 Eddie James 2020-05-05 426 {
0f6a7063f38520 Eddie James 2020-05-05 427 unsigned int i;
0f6a7063f38520 Eddie James 2020-05-05 428 int rc = -EBUSY;
0f6a7063f38520 Eddie James 2020-05-05 429 unsigned long flags;
0f6a7063f38520 Eddie James 2020-05-05 430
0f6a7063f38520 Eddie James 2020-05-05 431 spin_lock_irqsave(&ctx->engine_lock, flags);
0f6a7063f38520 Eddie James 2020-05-05 432 if (ctx->in_reset)
0f6a7063f38520 Eddie James 2020-05-05 433 goto unlock;
0f6a7063f38520 Eddie James 2020-05-05 434
0f6a7063f38520 Eddie James 2020-05-05 435 spin_lock(&ctx->client_lock);
0f6a7063f38520 Eddie James 2020-05-05 436 if (ctx->current_client) {
0f6a7063f38520 Eddie James 2020-05-05 437 spin_unlock(&ctx->client_lock);
0f6a7063f38520 Eddie James 2020-05-05 438 goto unlock;
0f6a7063f38520 Eddie James 2020-05-05 439 }
0f6a7063f38520 Eddie James 2020-05-05 440
0f6a7063f38520 Eddie James 2020-05-05 441 client->error = false;
0f6a7063f38520 Eddie James 2020-05-05 442 client->in_progress = true;
0f6a7063f38520 Eddie James 2020-05-05 443 ctx->current_client = client;
0f6a7063f38520 Eddie James 2020-05-05 444 spin_unlock(&ctx->client_lock);
0f6a7063f38520 Eddie James 2020-05-05 445
0f6a7063f38520 Eddie James 2020-05-05 446 ctx->upstream = upstream;
0f6a7063f38520 Eddie James 2020-05-05 447 for (i = 0; i < num_cmds; ++i) {
0f6a7063f38520 Eddie James 2020-05-05 448 /*
0f6a7063f38520 Eddie James 2020-05-05 449 * Use memcpy_toio here to get some barriers before starting
0f6a7063f38520 Eddie James 2020-05-05 450 * the operation. The command(s) need to be in physical memory
0f6a7063f38520 Eddie James 2020-05-05 451 * before the XDMA engine starts.
0f6a7063f38520 Eddie James 2020-05-05 452 */
0f6a7063f38520 Eddie James 2020-05-05 @453 memcpy_toio(&ctx->cmdq[ctx->cmd_idx], &cmds[i],
0f6a7063f38520 Eddie James 2020-05-05 454 sizeof(struct aspeed_xdma_cmd));
0f6a7063f38520 Eddie James 2020-05-05 455 ctx->cmd_idx = (ctx->cmd_idx + 1) % XDMA_NUM_CMDS;
0f6a7063f38520 Eddie James 2020-05-05 456 }
0f6a7063f38520 Eddie James 2020-05-05 457
0f6a7063f38520 Eddie James 2020-05-05 458 aspeed_xdma_writel(ctx, ctx->chip->regs.bmc_cmdq_writep,
0f6a7063f38520 Eddie James 2020-05-05 459 ctx->cmd_idx * ctx->chip->queue_entry_size);
0f6a7063f38520 Eddie James 2020-05-05 460 rc = 0;
0f6a7063f38520 Eddie James 2020-05-05 461
0f6a7063f38520 Eddie James 2020-05-05 462 unlock:
0f6a7063f38520 Eddie James 2020-05-05 463 spin_unlock_irqrestore(&ctx->engine_lock, flags);
0f6a7063f38520 Eddie James 2020-05-05 464 return rc;
0f6a7063f38520 Eddie James 2020-05-05 465 }
0f6a7063f38520 Eddie James 2020-05-05 466
:::::: The code at line 453 was first introduced by commit
:::::: 0f6a7063f38520a50bd2c9ed02f00e3d8646c2ad soc: aspeed: Add XDMA Engine Driver
:::::: TO: Eddie James <eajames(a)linux.ibm.com>
:::::: CC: Joel Stanley <joel(a)jms.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months