[frank-w-bpi-r2-4.14:5.14-hdmilarb2 26/48] drivers/media/platform/mtk-mdp/mtk_mdp_comp.c:124:4: warning: cast to smaller integer type 'enum mtk_mdp_comp_type' from 'const void *'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb2
head: 77b4c96140f9bec5bb54fc804b401af1c9a6b4b5
commit: 6051a6601c1dc0460b99b601cc95fd7eac4c1bfd [26/48] mtk-mdp: add driver to probe mdp components
config: x86_64-randconfig-a013-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/frank-w/BPI-R2-4.14/commit/6051a6601c1dc0460b99b601cc9...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-hdmilarb2
git checkout 6051a6601c1dc0460b99b601cc95fd7eac4c1bfd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/media/platform/mtk-mdp/mtk_mdp_comp.c:62:18: error: no member named 'dev' in 'struct mtk_mdp_comp'
dev_err(comp->dev,
~~~~ ^
include/linux/dev_printk.h:112:11: note: expanded from macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~
>> drivers/media/platform/mtk-mdp/mtk_mdp_comp.c:124:4: warning: cast to smaller integer type 'enum mtk_mdp_comp_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
(enum mtk_mdp_comp_type)of_device_get_match_data(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +124 drivers/media/platform/mtk-mdp/mtk_mdp_comp.c
115
116 int mtk_mdp_comp_init(struct mtk_mdp_comp *comp, struct device *dev)
117 {
118 struct device_node *larb_node;
119 struct platform_device *larb_pdev;
120 int ret;
121 int i;
122 struct device_node *node = dev->of_node;
123 enum mtk_mdp_comp_type comp_type =
> 124 (enum mtk_mdp_comp_type)of_device_get_match_data(dev);
125
126 INIT_LIST_HEAD(&comp->node);
127
128 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) {
129 comp->clk[i] = of_clk_get(node, i);
130 if (IS_ERR(comp->clk[i])) {
131 if (PTR_ERR(comp->clk[i]) != -EPROBE_DEFER)
132 dev_err(dev, "Failed to get clock\n");
133 ret = PTR_ERR(comp->clk[i]);
134 goto err;
135 }
136
137 /* Only RDMA needs two clocks */
138 if (comp_type != MTK_MDP_RDMA)
139 break;
140 }
141
142 /* Only DMA capable components need the LARB property */
143 comp->larb_dev = NULL;
144 if (comp_type != MTK_MDP_RDMA &&
145 comp_type != MTK_MDP_WDMA &&
146 comp_type != MTK_MDP_WROT)
147 return 0;
148
149 larb_node = of_parse_phandle(node, "mediatek,larb", 0);
150 if (!larb_node) {
151 dev_err(dev,
152 "Missing mediadek,larb phandle in %pOF node\n", node);
153 ret = -EINVAL;
154 goto err;
155 }
156
157 larb_pdev = of_find_device_by_node(larb_node);
158 if (!larb_pdev) {
159 dev_warn(dev, "Waiting for larb device %pOF\n", larb_node);
160 of_node_put(larb_node);
161 ret = -EPROBE_DEFER;
162 goto err;
163 }
164 of_node_put(larb_node);
165
166 comp->larb_dev = &larb_pdev->dev;
167
168 return 0;
169
170 err:
171 return ret;
172 }
173
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-5.12 83/491] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:293: warning: expecting prototype for are of(). Prototype was for amdgpu_dm_verify_lut_sizes() instead
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.12
head: 733edc1059fd125f1156b8baf5f182e4284fce40
commit: ddd43d539e12f673ed95c4f58cb32fc1e763c747 [83/491] drm/amd/display: Verify Gamma & Degamma LUT sizes in amdgpu_dm_atomic_check
config: x86_64-randconfig-a011-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.12
git checkout ddd43d539e12f673ed95c4f58cb32fc1e763c747
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:293: warning: Function parameter or member 'crtc_state' not described in 'amdgpu_dm_verify_lut_sizes'
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:293: warning: expecting prototype for are of(). Prototype was for amdgpu_dm_verify_lut_sizes() instead
vim +293 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c
286
287 /**
288 * Verifies that the Degamma and Gamma LUTs attached to the |crtc_state| are of
289 * the expected size.
290 * Returns 0 on success.
291 */
292 int amdgpu_dm_verify_lut_sizes(const struct drm_crtc_state *crtc_state)
> 293 {
294 const struct drm_color_lut *lut = NULL;
295 uint32_t size = 0;
296
297 lut = __extract_blob_lut(crtc_state->degamma_lut, &size);
298 if (lut && size != MAX_COLOR_LUT_ENTRIES) {
299 DRM_DEBUG_DRIVER(
300 "Invalid Degamma LUT size. Should be %u but got %u.\n",
301 MAX_COLOR_LUT_ENTRIES, size);
302 return -EINVAL;
303 }
304
305 lut = __extract_blob_lut(crtc_state->gamma_lut, &size);
306 if (lut && size != MAX_COLOR_LUT_ENTRIES &&
307 size != MAX_COLOR_LEGACY_LUT_ENTRIES) {
308 DRM_DEBUG_DRIVER(
309 "Invalid Gamma LUT size. Should be %u (or %u for legacy) but got %u.\n",
310 MAX_COLOR_LUT_ENTRIES, MAX_COLOR_LEGACY_LUT_ENTRIES,
311 size);
312 return -EINVAL;
313 }
314
315 return 0;
316 }
317
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[nbd168-wireless:mt76 10/26] drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:3407:22: warning: use of logical '&&' with constant operand
by kernel test robot
tree: https://github.com/nbd168/wireless mt76
head: 322ec254cac2f270cd917c5e6bdf8c838ee0a2fc
commit: bb99c31e5dd3c90300c540541d727d956862e30b [10/26] mt76: mt7915: fix potential overflow of eeprom page index
config: mips-randconfig-r032-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/nbd168/wireless/commit/bb99c31e5dd3c90300c540541d727d9...
git remote add nbd168-wireless https://github.com/nbd168/wireless
git fetch --no-tags nbd168-wireless mt76
git checkout bb99c31e5dd3c90300c540541d727d956862e30b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:114:10: warning: implicit conversion from enumeration type 'enum mt76_cipher_type' to different enumeration type 'enum mcu_cipher_type' [-Wenum-conversion]
return MT_CIPHER_NONE;
~~~~~~ ^~~~~~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:3407:22: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
if (i == total - 1 && MT7915_EEPROM_SIZE % PER_PAGE_SIZE)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:3407:22: note: use '&' for a bitwise operation
if (i == total - 1 && MT7915_EEPROM_SIZE % PER_PAGE_SIZE)
^~
&
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:3407:22: note: remove constant to silence this warning
if (i == total - 1 && MT7915_EEPROM_SIZE % PER_PAGE_SIZE)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +3407 drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3391
3392 static int mt7915_mcu_set_eeprom_flash(struct mt7915_dev *dev)
3393 {
3394 #define MAX_PAGE_IDX_MASK GENMASK(7, 5)
3395 #define PAGE_IDX_MASK GENMASK(4, 2)
3396 #define PER_PAGE_SIZE 0x400
3397 struct mt7915_mcu_eeprom req = { .buffer_mode = EE_MODE_BUFFER };
3398 u8 total = DIV_ROUND_UP(MT7915_EEPROM_SIZE, PER_PAGE_SIZE);
3399 u8 *eep = (u8 *)dev->mt76.eeprom.data;
3400 int eep_len;
3401 int i;
3402
3403 for (i = 0; i < total; i++, eep += eep_len) {
3404 struct sk_buff *skb;
3405 int ret;
3406
> 3407 if (i == total - 1 && MT7915_EEPROM_SIZE % PER_PAGE_SIZE)
3408 eep_len = MT7915_EEPROM_SIZE % PER_PAGE_SIZE;
3409 else
3410 eep_len = PER_PAGE_SIZE;
3411
3412 skb = mt76_mcu_msg_alloc(&dev->mt76, NULL,
3413 sizeof(req) + eep_len);
3414 if (!skb)
3415 return -ENOMEM;
3416
3417 req.format = FIELD_PREP(MAX_PAGE_IDX_MASK, total - 1) |
3418 FIELD_PREP(PAGE_IDX_MASK, i) | EE_FORMAT_WHOLE;
3419 req.len = cpu_to_le16(eep_len);
3420
3421 skb_put_data(skb, &req, sizeof(req));
3422 skb_put_data(skb, eep, eep_len);
3423
3424 ret = mt76_mcu_skb_send_msg(&dev->mt76, skb,
3425 MCU_EXT_CMD(EFUSE_BUFFER_MODE), true);
3426 if (ret)
3427 return ret;
3428 }
3429
3430 return 0;
3431 }
3432
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase_i2_drm 80/349] include/linux/device/driver.h:288:20: warning: passing argument 1 of '__platform_driver_register' discards 'const' qualifier from pointer target type
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase_i2_drm
head: 93dfb2364436067bf34c6d4ddcd282496182cc0f
commit: 2c26aea472dc85f461af5a2e8a89894fc1e623a0 [80/349] clk: mstar: pll common
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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://github.com/linux-chenxing/linux/commit/2c26aea472dc85f461af5a2e8a...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase_i2_drm
git checkout 2c26aea472dc85f461af5a2e8a89894fc1e623a0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.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 warnings (new ones prefixed by >>):
In file included from drivers/clk/mstar/clk-msc313-upll.c:6:
drivers/clk/mstar/clk-msc313-upll.c: In function 'msc313_upll_driver_init':
>> include/linux/device/driver.h:288:20: warning: passing argument 1 of '__platform_driver_register' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
288 | return __register(&(__driver) , ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/platform_device.h:224:29: note: in definition of macro 'platform_driver_register'
224 | __platform_driver_register(drv, THIS_MODULE)
| ^~~
include/linux/platform_device.h:264:2: note: in expansion of macro 'builtin_driver'
264 | builtin_driver(__platform_driver, platform_driver_register)
| ^~~~~~~~~~~~~~
drivers/clk/mstar/clk-msc313-upll.c:88:1: note: in expansion of macro 'builtin_platform_driver'
88 | builtin_platform_driver(msc313_upll_driver);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/platform_device.h:225:39: note: expected 'struct platform_driver *' but argument is of type 'const struct platform_driver *'
225 | extern int __platform_driver_register(struct platform_driver *,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +288 include/linux/device/driver.h
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 269
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 270 /**
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 271 * builtin_driver() - Helper macro for drivers that don't do anything
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 272 * special in init and have no exit. This eliminates some boilerplate.
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 273 * Each driver may only use this macro once, and calling it replaces
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 274 * device_initcall (or in some cases, the legacy __initcall). This is
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 275 * meant to be a direct parallel of module_driver() above but without
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 276 * the __exit stuff that is not used for builtin cases.
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 277 *
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 278 * @__driver: driver name
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 279 * @__register: register function for this driver type
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 280 * @...: Additional arguments to be passed to __register
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 281 *
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 282 * Use this macro to construct bus specific macros for registering
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 283 * drivers, and do not use it on its own.
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 284 */
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 285 #define builtin_driver(__driver, __register, ...) \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 286 static int __init __driver##_init(void) \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 287 { \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 @288 return __register(&(__driver) , ##__VA_ARGS__); \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 289 } \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 290 device_initcall(__driver##_init);
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 291
:::::: The code at line 288 was first introduced by commit
:::::: 4c002c978b7f2f2306d53de051c054504af920a9 device.h: move 'struct driver' stuff out to device/driver.h
:::::: TO: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[frank-w-bpi-r2-4.14:5.14-hdmilarb2 37/48] include/linux/iommu.h:576:51: warning: cast to smaller integer type 'unsigned int' from 'struct iommu_fwspec *'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb2
head: 77b4c96140f9bec5bb54fc804b401af1c9a6b4b5
commit: f94886349fc7e9a28901486218351f8e31fe950f [37/48] add debug in fwspec_set
config: x86_64-randconfig-r013-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/frank-w/BPI-R2-4.14/commit/f94886349fc7e9a289014862183...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-hdmilarb2
git checkout f94886349fc7e9a28901486218351f8e31fe950f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/exynos/exynos_drm_dma.c:9:
>> include/linux/iommu.h:576:51: warning: cast to smaller integer type 'unsigned int' from 'struct iommu_fwspec *' [-Wpointer-to-int-cast]
dev_err(dev,"%s:%d 0x%08x",__FUNCTION__,__LINE__,(unsigned int)fwspec);
^~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:112:32: note: expanded from macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/gpu/drm/exynos/exynos_drm_dma.c:121:19: warning: variable 'mapping' is uninitialized when used here [-Wuninitialized]
priv->mapping = mapping;
^~~~~~~
drivers/gpu/drm/exynos/exynos_drm_dma.c:111:16: note: initialize the variable 'mapping' to silence this warning
void *mapping;
^
= NULL
2 warnings generated.
vim +576 include/linux/iommu.h
571
572 static inline void dev_iommu_fwspec_set(struct device *dev,
573 struct iommu_fwspec *fwspec)
574 {
575 dev->iommu->fwspec = fwspec;
> 576 dev_err(dev,"%s:%d 0x%08x",__FUNCTION__,__LINE__,(unsigned int)fwspec);
577 dump_stack();
578 }
579
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[peterz-queue:master 5/8] include/linux/atomic/atomic-instrumented.h:1881:43: error: invalid type argument of unary '*' (have 'int')
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 5cc6b2c3c0139891e38a2fcce98e03ff705b0941
commit: 58e685f00c0ae01b37c564e0d64bb738a1aa2539 [5/8] Merge branch 'locking/core'
config: um-allmodconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout 58e685f00c0ae01b37c564e0d64bb738a1aa2539
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/dma/idxd/perfmon.c:131:5: error: 'struct hw_perf_event' has no member named 'event_base'
131 | hwc->event_base = ioread64(CNTRCFG_REG(idxd, idx));
| ^~
drivers/dma/idxd/perfmon.c: In function 'perfmon_validate_group':
drivers/dma/idxd/perfmon.c:157:35: error: 'struct perf_event' has no member named 'group_leader'
157 | struct perf_event *leader = event->group_leader;
| ^~
drivers/dma/idxd/perfmon.c: In function 'perfmon_pmu_event_init':
drivers/dma/idxd/perfmon.c:204:7: error: 'struct perf_event' has no member named 'hw'
204 | event->hw.idx = -1;
| ^~
drivers/dma/idxd/perfmon.c:206:11: error: 'struct perf_event' has no member named 'attr'
206 | if (event->attr.type != event->pmu->type)
| ^~
drivers/dma/idxd/perfmon.c:206:31: error: 'struct perf_event' has no member named 'pmu'
206 | if (event->attr.type != event->pmu->type)
| ^~
drivers/dma/idxd/perfmon.c:210:11: error: 'struct perf_event' has no member named 'attr'
210 | if (event->attr.sample_period)
| ^~
drivers/dma/idxd/perfmon.c:213:11: error: 'struct perf_event' has no member named 'cpu'
213 | if (event->cpu < 0)
| ^~
drivers/dma/idxd/perfmon.c:216:11: error: 'struct perf_event' has no member named 'pmu'
216 | if (event->pmu != &idxd->idxd_pmu->pmu)
| ^~
drivers/dma/idxd/perfmon.c:219:7: error: 'struct perf_event' has no member named 'hw'
219 | event->hw.event_base = ioread64(PERFMON_TABLE_OFFSET(idxd));
| ^~
drivers/dma/idxd/perfmon.c:220:7: error: 'struct perf_event' has no member named 'cpu'
220 | event->cpu = idxd->idxd_pmu->cpu;
| ^~
drivers/dma/idxd/perfmon.c:221:7: error: 'struct perf_event' has no member named 'hw'
221 | event->hw.config = event->attr.config;
| ^~
drivers/dma/idxd/perfmon.c:221:26: error: 'struct perf_event' has no member named 'attr'
221 | event->hw.config = event->attr.config;
| ^~
drivers/dma/idxd/perfmon.c:223:11: error: 'struct perf_event' has no member named 'group_leader'
223 | if (event->group_leader != event)
| ^~
drivers/dma/idxd/perfmon.c: In function 'perfmon_pmu_read_counter':
drivers/dma/idxd/perfmon.c:232:36: error: 'struct perf_event' has no member named 'hw'
232 | struct hw_perf_event *hwc = &event->hw;
| ^~
drivers/dma/idxd/perfmon.c:234:16: error: 'struct hw_perf_event' has no member named 'idx'
234 | int cntr = hwc->idx;
| ^~
drivers/dma/idxd/perfmon.c: In function 'perfmon_pmu_event_update':
drivers/dma/idxd/perfmon.c:246:36: error: 'struct perf_event' has no member named 'hw'
246 | struct hw_perf_event *hwc = &event->hw;
| ^~
In file included from include/asm-generic/local64.h:22,
from ./arch/x86/include/generated/asm/local64.h:1,
from include/linux/u64_stats_sync.h:75,
from include/linux/cgroup-defs.h:20,
from include/linux/cgroup.h:28,
from include/linux/perf_event.h:57,
from drivers/dma/idxd/idxd.h:13,
from drivers/dma/idxd/perfmon.c:6:
drivers/dma/idxd/perfmon.c:249:37: error: 'struct hw_perf_event' has no member named 'prev_count'
249 | prev_raw_count = local64_read(&hwc->prev_count);
| ^~
arch/x86/include/asm/local.h:16:42: note: in definition of macro 'local_read'
16 | #define local_read(l) atomic_long_read(&(l)->a)
| ^
drivers/dma/idxd/perfmon.c:249:20: note: in expansion of macro 'local64_read'
249 | prev_raw_count = local64_read(&hwc->prev_count);
| ^~~~~~~~~~~~
In file included from include/linux/atomic.h:82,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/sched/task.h:10,
from drivers/dma/idxd/perfmon.c:4:
drivers/dma/idxd/perfmon.c:251:31: error: 'struct hw_perf_event' has no member named 'prev_count'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~
include/linux/atomic/atomic-instrumented.h:1880:9: note: in definition of macro 'cmpxchg_local'
1880 | typeof(ptr) __ai_ptr = (ptr); \
| ^~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:31: error: 'struct hw_perf_event' has no member named 'prev_count'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~
include/linux/atomic/atomic-instrumented.h:1880:26: note: in definition of macro 'cmpxchg_local'
1880 | typeof(ptr) __ai_ptr = (ptr); \
| ^~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
>> include/linux/atomic/atomic-instrumented.h:1881:43: error: invalid type argument of unary '*' (have 'int')
1881 | instrument_atomic_write(__ai_ptr, sizeof(*__ai_ptr)); \
| ^~~~~~~~~
arch/x86/include/asm/local.h:124:3: note: in expansion of macro 'cmpxchg_local'
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
>> include/linux/atomic/atomic-instrumented.h:1881:26: warning: passing argument 1 of 'instrument_atomic_write' makes pointer from integer without a cast [-Wint-conversion]
1881 | instrument_atomic_write(__ai_ptr, sizeof(*__ai_ptr)); \
| ^~~~~~~~
| |
| int
arch/x86/include/asm/local.h:124:3: note: in expansion of macro 'cmpxchg_local'
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
In file included from include/asm-generic/bitops/instrumented-atomic.h:14,
from arch/x86/include/asm/bitops.h:391,
from include/linux/bitops.h:32,
from include/linux/thread_info.h:27,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/sched/task.h:10,
from drivers/dma/idxd/perfmon.c:4:
include/linux/instrumented.h:84:74: note: expected 'const volatile void *' but argument is of type 'int'
84 | static __always_inline void instrument_atomic_write(const volatile void *v, size_t size)
| ~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/x86/include/asm/atomic.h:8,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/sched/task.h:10,
from drivers/dma/idxd/perfmon.c:4:
arch/x86/include/asm/cmpxchg.h:87:13: error: invalid type argument of unary '*' (have 'int')
87 | __typeof__(*(ptr)) __ret; \
| ^~~~~~
arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro '__raw_cmpxchg'
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro '__cmpxchg_local'
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:1882:2: note: in expansion of macro 'arch_cmpxchg_local'
1882 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
arch/x86/include/asm/local.h:124:3: note: in expansion of macro 'cmpxchg_local'
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/cmpxchg.h:88:13: error: invalid type argument of unary '*' (have 'int')
88 | __typeof__(*(ptr)) __old = (old); \
| ^~~~~~
arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro '__raw_cmpxchg'
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro '__cmpxchg_local'
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:1882:2: note: in expansion of macro 'arch_cmpxchg_local'
1882 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
arch/x86/include/asm/local.h:124:3: note: in expansion of macro 'cmpxchg_local'
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/cmpxchg.h:89:13: error: invalid type argument of unary '*' (have 'int')
89 | __typeof__(*(ptr)) __new = (new); \
| ^~~~~~
arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro '__raw_cmpxchg'
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro '__cmpxchg_local'
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:1882:2: note: in expansion of macro 'arch_cmpxchg_local'
1882 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
arch/x86/include/asm/local.h:124:3: note: in expansion of macro 'cmpxchg_local'
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
include/asm-generic/local64.h:45:34: note: in expansion of macro 'local_cmpxchg'
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
drivers/dma/idxd/perfmon.c:251:11: note: in expansion of macro 'local64_cmpxchg'
251 | } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/cmpxchg.h:155:40: error: invalid type argument of unary '*' (have 'int')
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~
arch/x86/include/asm/cmpxchg.h:90:10: note: in definition of macro '__raw_cmpxchg'
vim +1881 include/linux/atomic/atomic-instrumented.h
29f006fdefe6f8 include/asm-generic/atomic-instrumented.h Peter Zijlstra 2020-08-29 1877
aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1878 #define cmpxchg_local(ptr, ...) \
b06ed71a624ba0 include/asm-generic/atomic-instrumented.h Dmitry Vyukov 2018-01-29 1879 ({ \
df79ed2c064363 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-07-16 1880 typeof(ptr) __ai_ptr = (ptr); \
ed8af2e4d2a71b include/asm-generic/atomic-instrumented.h Marco Elver 2020-01-21 @1881 instrument_atomic_write(__ai_ptr, sizeof(*__ai_ptr)); \
aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1882 arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
b06ed71a624ba0 include/asm-generic/atomic-instrumented.h Dmitry Vyukov 2018-01-29 1883 })
b06ed71a624ba0 include/asm-generic/atomic-instrumented.h Dmitry Vyukov 2018-01-29 1884
:::::: The code at line 1881 was first introduced by commit
:::::: ed8af2e4d2a71bd58f5776b7e5a477d136e32be4 asm-generic, atomic-instrumented: Use generic instrumented.h
:::::: TO: Marco Elver <elver(a)google.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[peterz-queue:master 63/117] arch/x86/include/asm/pgtable_64_types.h:22:34: error: conflicting types for 'pmd_t'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 5cc6b2c3c0139891e38a2fcce98e03ff705b0941
commit: 7a3a77fc49a679bc41c237cc01dce34c6fc8e1b1 [63/117] x86/mm/pae: Make pmd_t similar to pte_t
config: um-allmodconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout 7a3a77fc49a679bc41c237cc01dce34c6fc8e1b1
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/dma/idxd/ drivers/media/pci/ivtv/
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 >>):
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable.h:77: note: this is the location of the previous definition
77 | #define __P110 PAGE_COPY
|
In file included from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:239: warning: "__P111" redefined
239 | #define __P111 PAGE_COPY_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable.h:78: note: this is the location of the previous definition
78 | #define __P111 PAGE_COPY
|
In file included from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:245: warning: "__S100" redefined
245 | #define __S100 PAGE_READONLY_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable.h:84: note: this is the location of the previous definition
84 | #define __S100 PAGE_READONLY
|
In file included from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:246: warning: "__S101" redefined
246 | #define __S101 PAGE_READONLY_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable.h:85: note: this is the location of the previous definition
85 | #define __S101 PAGE_READONLY
|
In file included from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:247: warning: "__S110" redefined
247 | #define __S110 PAGE_SHARED_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable.h:86: note: this is the location of the previous definition
86 | #define __S110 PAGE_SHARED
|
In file included from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:248: warning: "__S111" redefined
248 | #define __S111 PAGE_SHARED_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable.h:87: note: this is the location of the previous definition
87 | #define __S111 PAGE_SHARED
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:21:34: error: conflicting types for 'pte_t'
21 | typedef struct { pteval_t pte; } pte_t;
| ^~~~~
In file included from include/linux/mm_types_task.h:16,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/media/pci/ivtv/ivtv-driver.h:40,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/page.h:57:39: note: previous declaration of 'pte_t' was here
57 | typedef struct { unsigned long pte; } pte_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
>> arch/x86/include/asm/pgtable_64_types.h:22:34: error: conflicting types for 'pmd_t'
22 | typedef struct { pmdval_t pmd; } pmd_t;
| ^~~~~
In file included from include/linux/mm_types_task.h:16,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/media/pci/ivtv/ivtv-driver.h:40,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/page.h:61:39: note: previous declaration of 'pmd_t' was here
61 | typedef struct { unsigned long pmd; } pmd_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:75: warning: "PGDIR_SHIFT" redefined
75 | #define PGDIR_SHIFT 39
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable-3level.h:15: note: this is the location of the previous definition
15 | #define PGDIR_SHIFT 30
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:77: warning: "MAX_PTRS_PER_P4D" redefined
77 | #define MAX_PTRS_PER_P4D 1
|
In file included from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
include/linux/pgtable.h:1653: note: this is the location of the previous definition
1653 | #define MAX_PTRS_PER_P4D PTRS_PER_P4D
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:84: warning: "PUD_SHIFT" redefined
84 | #define PUD_SHIFT 30
|
In file included from arch/um/include/asm/pgtable-3level.h:10,
from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
include/asm-generic/pgtable-nopud.h:18: note: this is the location of the previous definition
18 | #define PUD_SHIFT P4D_SHIFT
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:85: warning: "PTRS_PER_PUD" redefined
85 | #define PTRS_PER_PUD 512
|
In file included from arch/um/include/asm/pgtable-3level.h:10,
from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
include/asm-generic/pgtable-nopud.h:19: note: this is the location of the previous definition
19 | #define PTRS_PER_PUD 1
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:99: warning: "PMD_SIZE" redefined
99 | #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable-3level.h:27: note: this is the location of the previous definition
27 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:100: warning: "PMD_MASK" redefined
vim +/pmd_t +22 arch/x86/include/asm/pgtable_64_types.h
20
21 typedef struct { pteval_t pte; } pte_t;
> 22 typedef struct { pmdval_t pmd; } pmd_t;
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v2 03/12] KVM: x86: Expose TSC offset controls to userspace
by kernel test robot
Hi Oliver,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on kvm/queue]
[also build test WARNING on vhost/linux-next v5.14-rc1 next-20210716]
[cannot apply to kvmarm/next]
[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/Oliver-Upton/KVM-Add-idempotent-...
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
config: i386-randconfig-a013-20210718 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/1e9a9a8e956c70659f72ad66a7d8176ff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Oliver-Upton/KVM-Add-idempotent-controls-for-migrating-system-counter-state/20210718-103407
git checkout 1e9a9a8e956c70659f72ad66a7d8176ff4756061
# 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 warnings (new ones prefixed by >>):
arch/x86/kvm/x86.c: In function 'get_kvmclock_and_realtime':
arch/x86/kvm/x86.c:2844:7: error: implicit declaration of function 'kvm_get_walltime_and_clockread' [-Werror=implicit-function-declaration]
2844 | if (kvm_get_walltime_and_clockread(&ts, &tsc_val)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/x86.c: In function 'kvm_arch_tsc_get_attr':
>> arch/x86/kvm/x86.c:4945:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
4945 | void __user *uaddr = (void __user *)attr->addr;
| ^
arch/x86/kvm/x86.c: In function 'kvm_arch_tsc_set_attr':
arch/x86/kvm/x86.c:4969:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
4969 | void __user *uaddr = (void __user *)attr->addr;
| ^
arch/x86/kvm/x86.c: In function 'kvm_arch_tsc_get_attr':
arch/x86/kvm/x86.c:4949:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
4949 | case KVM_VCPU_TSC_OFFSET: {
| ^
arch/x86/kvm/x86.c:4959:2: note: here
4959 | default:
| ^~~~~~~
cc1: some warnings being treated as errors
vim +4945 arch/x86/kvm/x86.c
4941
4942 static int kvm_arch_tsc_get_attr(struct kvm_vcpu *vcpu,
4943 struct kvm_device_attr *attr)
4944 {
> 4945 void __user *uaddr = (void __user *)attr->addr;
4946 int r;
4947
4948 switch (attr->attr) {
4949 case KVM_VCPU_TSC_OFFSET: {
4950 u64 offset;
4951
4952 offset = kvm_vcpu_read_tsc_offset(vcpu);
4953 r = -EFAULT;
4954 if (copy_to_user(uaddr, &offset, sizeof(offset)))
4955 break;
4956
4957 r = 0;
4958 }
4959 default:
4960 r = -ENXIO;
4961 }
4962
4963 return r;
4964 }
4965
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months