Re: [PATCH v7 1/6] ACPI: Support Generic Initiator only domains
by kernel test robot
Hi Jonathan,
I love your patch! Yet something to improve:
[auto build test ERROR on pm/linux-next]
[also build test ERROR on tip/x86/core driver-core/driver-core-testing linus/master tip/x86/mm v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jonathan-Cameron/ACPI-Support-Ge...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>):
drivers/acpi/numa/srat.c: In function 'acpi_parse_gi_affinity':
>> drivers/acpi/numa/srat.c:386:9: error: too many arguments to function 'acpi_map_pxm_to_node'
386 | node = acpi_map_pxm_to_node(gi_affinity->proximity_domain, true);
| ^~~~~~~~~~~~~~~~~~~~
drivers/acpi/numa/srat.c:55:5: note: declared here
55 | int acpi_map_pxm_to_node(int pxm)
| ^~~~~~~~~~~~~~~~~~~~
vim +/acpi_map_pxm_to_node +386 drivers/acpi/numa/srat.c
370
371 static int __init
372 acpi_parse_gi_affinity(union acpi_subtable_headers *header,
373 const unsigned long end)
374 {
375 struct acpi_srat_generic_affinity *gi_affinity;
376 int node;
377
378 gi_affinity = (struct acpi_srat_generic_affinity *)header;
379 if (!gi_affinity)
380 return -EINVAL;
381 acpi_table_print_srat_entry(&header->common);
382
383 if (!(gi_affinity->flags & ACPI_SRAT_GENERIC_AFFINITY_ENABLED))
384 return -EINVAL;
385
> 386 node = acpi_map_pxm_to_node(gi_affinity->proximity_domain, true);
387 if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) {
388 pr_err("SRAT: Too many proximity domains.\n");
389 return -EINVAL;
390 }
391 node_set(node, numa_nodes_parsed);
392 node_set_state(node, N_GENERIC_INITIATOR);
393
394 return 0;
395 }
396
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH v2 2/3] USB: PHY: JZ4770: Add support for new Ingenic SoCs.
by kernel test robot
Hi "周琰杰,
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 robh/for-next v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Zhou-Yanjie/Add-USB-PHY-support-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
# 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/usb/phy/phy-jz4770.c:275:19: warning: cast to smaller integer type 'enum ingenic_usb_phy_version' from 'const void *' [-Wvoid-pointer-to-enum-cast]
priv->version = (enum ingenic_usb_phy_version)match->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +275 drivers/usb/phy/phy-jz4770.c
261
262 static int jz4770_phy_probe(struct platform_device *pdev)
263 {
264 struct device *dev = &pdev->dev;
265 struct jz4770_phy *priv;
266 const struct of_device_id *match;
267 int err;
268
269 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
270 if (!priv)
271 return -ENOMEM;
272
273 match = of_match_device(ingenic_usb_phy_of_matches, dev);
274 if (match)
> 275 priv->version = (enum ingenic_usb_phy_version)match->data;
276 else
277 return -ENODEV;
278
279 platform_set_drvdata(pdev, priv);
280 priv->dev = dev;
281 priv->phy.dev = dev;
282 priv->phy.otg = &priv->otg;
283 priv->phy.label = "ingenic-usb-phy";
284 priv->phy.init = jz4770_phy_init;
285 priv->phy.shutdown = jz4770_phy_shutdown;
286
287 priv->otg.state = OTG_STATE_UNDEFINED;
288 priv->otg.usb_phy = &priv->phy;
289 priv->otg.set_host = jz4770_phy_set_host;
290 priv->otg.set_peripheral = jz4770_phy_set_peripheral;
291
292 priv->base = devm_platform_ioremap_resource(pdev, 0);
293 if (IS_ERR(priv->base)) {
294 dev_err(dev, "Failed to map registers");
295 return PTR_ERR(priv->base);
296 }
297
298 priv->clk = devm_clk_get(dev, NULL);
299 if (IS_ERR(priv->clk)) {
300 err = PTR_ERR(priv->clk);
301 if (err != -EPROBE_DEFER)
302 dev_err(dev, "Failed to get clock");
303 return err;
304 }
305
306 priv->vcc_supply = devm_regulator_get(dev, "vcc");
307 if (IS_ERR(priv->vcc_supply)) {
308 err = PTR_ERR(priv->vcc_supply);
309 if (err != -EPROBE_DEFER)
310 dev_err(dev, "failed to get regulator");
311 return err;
312 }
313
314 err = usb_add_phy(&priv->phy, USB_PHY_TYPE_USB2);
315 if (err) {
316 if (err != -EPROBE_DEFER)
317 dev_err(dev, "Unable to register PHY");
318 return err;
319 }
320
321 return devm_add_action_or_reset(dev, jz4770_phy_remove, &priv->phy);
322 }
323
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 13/14] fscache: Temporarily disable fscache_invalidate()
by kernel test robot
Hi David,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tip/perf/core]
[cannot apply to nfs/linux-next ceph-client/for-linus cifs/for-next linus/master v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/David-Howells/fscache-Rewrite-1-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git c085fb8774671e83f6199a8e838fbc0e57094029
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 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 >>):
fs/fscache/cookie.c: In function '__fscache_invalidate':
>> fs/fscache/cookie.c:630:25: warning: variable 'object' set but not used [-Wunused-but-set-variable]
630 | struct fscache_object *object;
| ^~~~~~
vim +/object +630 fs/fscache/cookie.c
ccc4fc3d11e914 David Howells 2009-04-03 624
ef778e7ae67cd4 David Howells 2012-12-20 625 /*
ef778e7ae67cd4 David Howells 2012-12-20 626 * Invalidate an object. Callable with spinlocks held.
ef778e7ae67cd4 David Howells 2012-12-20 627 */
ef778e7ae67cd4 David Howells 2012-12-20 628 void __fscache_invalidate(struct fscache_cookie *cookie)
ef778e7ae67cd4 David Howells 2012-12-20 629 {
ef778e7ae67cd4 David Howells 2012-12-20 @630 struct fscache_object *object;
ef778e7ae67cd4 David Howells 2012-12-20 631
89f7b04612450d David Howells 2020-07-13 632 _enter("{%s}", cookie->type_name);
ef778e7ae67cd4 David Howells 2012-12-20 633
ef778e7ae67cd4 David Howells 2012-12-20 634 fscache_stat(&fscache_n_invalidates);
ef778e7ae67cd4 David Howells 2012-12-20 635
ef778e7ae67cd4 David Howells 2012-12-20 636 /* Only permit invalidation of data files. Invalidating an index will
ef778e7ae67cd4 David Howells 2012-12-20 637 * require the caller to release all its attachments to the tree rooted
ef778e7ae67cd4 David Howells 2012-12-20 638 * there, and if it's doing that, it may as well just retire the
ef778e7ae67cd4 David Howells 2012-12-20 639 * cookie.
ef778e7ae67cd4 David Howells 2012-12-20 640 */
402cb8dda949d9 David Howells 2018-04-04 641 ASSERTCMP(cookie->type, ==, FSCACHE_COOKIE_TYPE_DATAFILE);
ef778e7ae67cd4 David Howells 2012-12-20 642
ef778e7ae67cd4 David Howells 2012-12-20 643 /* If there's an object, we tell the object state machine to handle the
ef778e7ae67cd4 David Howells 2012-12-20 644 * invalidation on our behalf, otherwise there's nothing to do.
ef778e7ae67cd4 David Howells 2012-12-20 645 */
ef778e7ae67cd4 David Howells 2012-12-20 646 if (!hlist_empty(&cookie->backing_objects)) {
ef778e7ae67cd4 David Howells 2012-12-20 647 spin_lock(&cookie->lock);
ef778e7ae67cd4 David Howells 2012-12-20 648
94d30ae90a00ca David Howells 2013-09-21 649 if (fscache_cookie_enabled(cookie) &&
94d30ae90a00ca David Howells 2013-09-21 650 !hlist_empty(&cookie->backing_objects) &&
ef778e7ae67cd4 David Howells 2012-12-20 651 !test_and_set_bit(FSCACHE_COOKIE_INVALIDATING,
ef778e7ae67cd4 David Howells 2012-12-20 652 &cookie->flags)) {
ef778e7ae67cd4 David Howells 2012-12-20 653 object = hlist_entry(cookie->backing_objects.first,
ef778e7ae67cd4 David Howells 2012-12-20 654 struct fscache_object,
ef778e7ae67cd4 David Howells 2012-12-20 655 cookie_link);
584b5230d66e2c David Howells 2020-07-13 656 /* TODO: Do invalidation */
ef778e7ae67cd4 David Howells 2012-12-20 657 }
ef778e7ae67cd4 David Howells 2012-12-20 658
ef778e7ae67cd4 David Howells 2012-12-20 659 spin_unlock(&cookie->lock);
ef778e7ae67cd4 David Howells 2012-12-20 660 }
ef778e7ae67cd4 David Howells 2012-12-20 661
ef778e7ae67cd4 David Howells 2012-12-20 662 _leave("");
ef778e7ae67cd4 David Howells 2012-12-20 663 }
ef778e7ae67cd4 David Howells 2012-12-20 664 EXPORT_SYMBOL(__fscache_invalidate);
ef778e7ae67cd4 David Howells 2012-12-20 665
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 11ba468877bb23f28956a35e896356252d63c983
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date: 8 months ago
config: microblaze-randconfig-s031-20200713 (attached as .config)
compiler: microblaze-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.2-37-gc9676a3b-dirty
git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f
# 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=microblaze
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 >>)
./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: sparse: sparse: no newline at end of file
drivers/atm/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[usertype] tx_addr @@ got void [noderef] <asn:1> *iov_base @@
drivers/atm/horizon.c:1135:22: sparse: expected void *[usertype] tx_addr
drivers/atm/horizon.c:1135:22: sparse: got void [noderef] <asn:1> *iov_base
drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] data @@ got restricted __be32 [usertype] @@
drivers/atm/horizon.c:1173:49: sparse: expected unsigned int [usertype] data
drivers/atm/horizon.c:1173:49: sparse: got restricted __be32 [usertype]
drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] data @@ got restricted __be32 [usertype] @@
drivers/atm/horizon.c:1177:48: sparse: expected unsigned int [usertype] data
drivers/atm/horizon.c:1177:48: sparse: got restricted __be32 [usertype]
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:513:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:513:22: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:523:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:523:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:523:22: sparse: got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:513:22: sparse: sparse: too many warnings
vim +365 drivers/atm/horizon.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 363
^1da177e4c3f41 Linus Torvalds 2005-04-16 364 static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365 outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16 366 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 367
:::::: The code at line 365 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
ld.lld: error: section __ksymtab_strings virtual address range overlaps with .data
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: "Guilherme G. Piccoli" <gpiccoli(a)canonical.com>
CC: Andrew Morton <akpm(a)linux-foundation.org>
CC: Linux Memory Management List <linux-mm(a)kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 11ba468877bb23f28956a35e896356252d63c983
commit: f117955a2255721a6a0e9cecf6cad3a6eb43cbc3 kernel/watchdog.c: convert {soft/hard}lockup boot parameters to sysctl aliases
date: 5 weeks ago
config: arm-randconfig-r005-20200713 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git checkout f117955a2255721a6a0e9cecf6cad3a6eb43cbc3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
>> ld.lld: error: section __ksymtab_strings virtual address range overlaps with .data
>>> __ksymtab_strings range is [0xAFFE12E8, 0xB00080AE]
>>> .data range is [0xB0008000, 0xB03FCB27]
--
>> ld.lld: error: section .data virtual address range overlaps with __param
>>> .data range is [0xB0008000, 0xB03FCB27]
>>> __param range is [0xB00080B0, 0xB00095DB]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[lpieralisi-pci:pci/xilinx 2/2] drivers/pci/controller/pcie-xilinx-cpm.c:524:6: warning: no previous prototype for 'xilinx_cpm_free_interrupts'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git pci/xilinx
head: 655fc01c187c48c69a9dd172464da3200634ebfe
commit: 655fc01c187c48c69a9dd172464da3200634ebfe [2/2] PCI: xilinx-cpm: Add Versal CPM Root Port driver
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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
git checkout 655fc01c187c48c69a9dd172464da3200634ebfe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/pci/controller/pcie-xilinx-cpm.c:524:6: warning: no previous prototype for 'xilinx_cpm_free_interrupts' [-Wmissing-prototypes]
524 | void xilinx_cpm_free_interrupts(struct xilinx_cpm_pcie_port *port)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/pcie-xilinx-cpm.c: In function 'xilinx_cpm_pcie_probe':
>> drivers/pci/controller/pcie-xilinx-cpm.c:580:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
580 | bridge->ops = &pci_generic_ecam_ops.pci_ops;
| ^
vim +/xilinx_cpm_free_interrupts +524 drivers/pci/controller/pcie-xilinx-cpm.c
523
> 524 void xilinx_cpm_free_interrupts(struct xilinx_cpm_pcie_port *port)
525 {
526 irq_set_chained_handler_and_data(port->intx_irq, NULL, NULL);
527 irq_set_chained_handler_and_data(port->irq, NULL, NULL);
528 }
529
530 /**
531 * xilinx_cpm_pcie_probe - Probe function
532 * @pdev: Platform device pointer
533 *
534 * Return: '0' on success and error value on failure
535 */
536 static int xilinx_cpm_pcie_probe(struct platform_device *pdev)
537 {
538 struct xilinx_cpm_pcie_port *port;
539 struct device *dev = &pdev->dev;
540 struct pci_host_bridge *bridge;
541 struct resource *bus_range;
542 int err;
543
544 bridge = devm_pci_alloc_host_bridge(dev, sizeof(*port));
545 if (!bridge)
546 return -ENODEV;
547
548 port = pci_host_bridge_priv(bridge);
549
550 port->dev = dev;
551
552 err = pci_parse_request_of_pci_ranges(dev, &bridge->windows,
553 &bridge->dma_ranges, &bus_range);
554 if (err) {
555 dev_err(dev, "Getting bridge resources failed\n");
556 return err;
557 }
558
559 err = xilinx_cpm_pcie_init_irq_domain(port);
560 if (err)
561 return err;
562
563 err = xilinx_cpm_pcie_parse_dt(port, bus_range);
564 if (err) {
565 dev_err(dev, "Parsing DT failed\n");
566 goto err_parse_dt;
567 }
568
569 xilinx_cpm_pcie_init_port(port);
570
571 err = xilinx_cpm_setup_irq(port);
572 if (err) {
573 dev_err(dev, "Failed to set up interrupts\n");
574 goto err_setup_irq;
575 }
576
577 bridge->dev.parent = dev;
578 bridge->sysdata = port->cfg;
579 bridge->busnr = port->cfg->busr.start;
> 580 bridge->ops = &pci_generic_ecam_ops.pci_ops;
581 bridge->map_irq = of_irq_parse_and_map_pci;
582 bridge->swizzle_irq = pci_common_swizzle;
583
584 err = pci_host_probe(bridge);
585 if (err < 0)
586 goto err_host_bridge;
587
588 return 0;
589
590 err_host_bridge:
591 xilinx_cpm_free_interrupts(port);
592 err_setup_irq:
593 pci_ecam_free(port->cfg);
594 err_parse_dt:
595 xilinx_cpm_free_irq_domains(port);
596 return err;
597 }
598
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 2833/7824] drivers/net/wireless/microchip/wilc1000/cfg80211.c:49:42: warning: unused variable 'wowlan_support'
by kernel test robot
Hi Ajay,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: be978f8feb1d4678b941a3ccf181eea1039110e2
commit: 5625f965d7644b4dc6a71d74021cfe093ad34eea [2833/7824] wilc1000: move wilc driver out of staging
config: powerpc-randconfig-r015-20200713 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 5625f965d7644b4dc6a71d74021cfe093ad34eea
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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/microchip/wilc1000/cfg80211.c:49:42: warning: unused variable 'wowlan_support' [-Wunused-const-variable]
static const struct wiphy_wowlan_support wowlan_support = {
^
1 warning generated.
vim +/wowlan_support +49 drivers/net/wireless/microchip/wilc1000/cfg80211.c
15162fbc78a74a5 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c Arnd Bergmann 2015-11-16 48
73584a40d7484f1 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c Glen Lee 2016-01-25 @49 static const struct wiphy_wowlan_support wowlan_support = {
73584a40d7484f1 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c Glen Lee 2016-01-25 50 .flags = WIPHY_WOWLAN_ANY
73584a40d7484f1 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c Glen Lee 2016-01-25 51 };
73584a40d7484f1 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c Glen Lee 2016-01-25 52
:::::: The code at line 49 was first introduced by commit
:::::: 73584a40d7484f199a98893e97dcea8b2cbe4986 staging: wilc1000: add ops resuem/suspend/wakeup in cfg80211
:::::: TO: Glen Lee <glen.lee(a)atmel.com>
:::::: 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
2 years, 2 months
Re: [PATCH v1 4/4] scsi: ufs: Fix up and simplify error recovery mechanism
by kernel test robot
Hi Can,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on scsi/for-next]
[also build test ERROR on mkp-scsi/for-next v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Can-Guo/Fix-up-and-simplify-erro...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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 >>):
drivers/scsi/ufs/ufshcd.c: In function 'ufshcd_err_handler':
>> drivers/scsi/ufs/ufshcd.c:5755:10: error: 'struct request_queue' has no member named 'dev'
5755 | if (q->dev && (q->rpm_status == RPM_SUSPENDED ||
| ^~
>> drivers/scsi/ufs/ufshcd.c:5755:21: error: 'struct request_queue' has no member named 'rpm_status'
5755 | if (q->dev && (q->rpm_status == RPM_SUSPENDED ||
| ^~
drivers/scsi/ufs/ufshcd.c:5756:14: error: 'struct request_queue' has no member named 'rpm_status'
5756 | q->rpm_status == RPM_SUSPENDING))
| ^~
drivers/scsi/ufs/ufshcd.c:5757:25: error: 'struct request_queue' has no member named 'dev'
5757 | pm_request_resume(q->dev);
| ^~
vim +5755 drivers/scsi/ufs/ufshcd.c
5579
5580 /**
5581 * ufshcd_err_handler - handle UFS errors that require s/w attention
5582 * @work: pointer to work structure
5583 */
5584 static void ufshcd_err_handler(struct work_struct *work)
5585 {
5586 struct ufs_hba *hba;
5587 struct Scsi_Host *shost;
5588 struct scsi_device *sdev;
5589 unsigned long flags;
5590 u32 err_xfer = 0;
5591 u32 err_tm = 0;
5592 int reset_err = -1;
5593 int tag;
5594 bool needs_reset = false;
5595
5596 hba = container_of(work, struct ufs_hba, eh_work);
5597 shost = hba->host;
5598
5599 spin_lock_irqsave(hba->host->host_lock, flags);
5600 if ((hba->ufshcd_state == UFSHCD_STATE_ERROR) ||
5601 (!(hba->saved_err || hba->saved_uic_err || hba->force_reset) &&
5602 !ufshcd_is_link_broken(hba))) {
5603 if (hba->ufshcd_state != UFSHCD_STATE_ERROR)
5604 hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL;
5605 spin_unlock_irqrestore(hba->host->host_lock, flags);
5606 return;
5607 }
5608 ufshcd_set_eh_in_progress(hba);
5609 spin_unlock_irqrestore(hba->host->host_lock, flags);
5610 pm_runtime_get_sync(hba->dev);
5611 /*
5612 * Don't assume anything of pm_runtime_get_sync(), if resume fails,
5613 * irq and clocks can be OFF, and powers can be OFF or in LPM.
5614 */
5615 ufshcd_setup_vreg(hba, true);
5616 ufshcd_config_vreg_hpm(hba, hba->vreg_info.vccq);
5617 ufshcd_config_vreg_hpm(hba, hba->vreg_info.vccq2);
5618 ufshcd_setup_hba_vreg(hba, true);
5619 ufshcd_enable_irq(hba);
5620
5621 ufshcd_hold(hba, false);
5622 if (!ufshcd_is_clkgating_allowed(hba))
5623 ufshcd_setup_clocks(hba, true);
5624
5625 if (ufshcd_is_clkscaling_supported(hba)) {
5626 cancel_work_sync(&hba->clk_scaling.suspend_work);
5627 cancel_work_sync(&hba->clk_scaling.resume_work);
5628 ufshcd_suspend_clkscaling(hba);
5629 }
5630
5631 spin_lock_irqsave(hba->host->host_lock, flags);
5632 ufshcd_scsi_block_requests(hba);
5633 hba->ufshcd_state = UFSHCD_STATE_RESET;
5634
5635 /* Complete requests that have door-bell cleared by h/w */
5636 ufshcd_complete_requests(hba);
5637
5638 if (hba->dev_quirks & UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS) {
5639 bool ret;
5640
5641 spin_unlock_irqrestore(hba->host->host_lock, flags);
5642 /* release the lock as ufshcd_quirk_dl_nac_errors() may sleep */
5643 ret = ufshcd_quirk_dl_nac_errors(hba);
5644 spin_lock_irqsave(hba->host->host_lock, flags);
5645 if (!ret && !hba->force_reset && ufshcd_is_link_active(hba))
5646 goto skip_err_handling;
5647 }
5648
5649 if (hba->force_reset || ufshcd_is_link_broken(hba) ||
5650 ufshcd_is_saved_err_fatal(hba) ||
5651 ((hba->saved_err & UIC_ERROR) &&
5652 (hba->saved_uic_err & (UFSHCD_UIC_DL_NAC_RECEIVED_ERROR |
5653 UFSHCD_UIC_DL_TCx_REPLAY_ERROR))))
5654 needs_reset = true;
5655
5656 if (hba->saved_err & (INT_FATAL_ERRORS | UIC_ERROR |
5657 UFSHCD_UIC_HIBERN8_MASK)) {
5658 dev_err(hba->dev, "%s: saved_err 0x%x saved_uic_err 0x%x\n",
5659 __func__, hba->saved_err, hba->saved_uic_err);
5660 spin_unlock_irqrestore(hba->host->host_lock, flags);
5661 ufshcd_print_host_state(hba);
5662 ufshcd_print_pwr_info(hba);
5663 ufshcd_print_host_regs(hba);
5664 ufshcd_print_tmrs(hba, hba->outstanding_tasks);
5665 spin_lock_irqsave(hba->host->host_lock, flags);
5666 }
5667
5668 /*
5669 * if host reset is required then skip clearing the pending
5670 * transfers forcefully because they will get cleared during
5671 * host reset and restore
5672 */
5673 if (needs_reset)
5674 goto skip_pending_xfer_clear;
5675
5676 /* release lock as clear command might sleep */
5677 spin_unlock_irqrestore(hba->host->host_lock, flags);
5678 /* Clear pending transfer requests */
5679 for_each_set_bit(tag, &hba->outstanding_reqs, hba->nutrs) {
5680 if (ufshcd_clear_cmd(hba, tag)) {
5681 err_xfer = true;
5682 goto lock_skip_pending_xfer_clear;
5683 }
5684 }
5685
5686 /* Clear pending task management requests */
5687 for_each_set_bit(tag, &hba->outstanding_tasks, hba->nutmrs) {
5688 if (ufshcd_clear_tm_cmd(hba, tag)) {
5689 err_tm = true;
5690 goto lock_skip_pending_xfer_clear;
5691 }
5692 }
5693
5694 lock_skip_pending_xfer_clear:
5695 spin_lock_irqsave(hba->host->host_lock, flags);
5696
5697 /* Complete the requests that are cleared by s/w */
5698 ufshcd_complete_requests(hba);
5699
5700 if (err_xfer || err_tm)
5701 needs_reset = true;
5702
5703 skip_pending_xfer_clear:
5704 /* Fatal errors need reset */
5705 if (needs_reset) {
5706 unsigned long max_doorbells = (1UL << hba->nutrs) - 1;
5707
5708 /*
5709 * ufshcd_reset_and_restore() does the link reinitialization
5710 * which will need atleast one empty doorbell slot to send the
5711 * device management commands (NOP and query commands).
5712 * If there is no slot empty at this moment then free up last
5713 * slot forcefully.
5714 */
5715 if (hba->outstanding_reqs == max_doorbells)
5716 __ufshcd_transfer_req_compl(hba,
5717 (1UL << (hba->nutrs - 1)));
5718
5719 hba->force_reset = false;
5720 spin_unlock_irqrestore(hba->host->host_lock, flags);
5721 reset_err = ufshcd_reset_and_restore(hba);
5722 spin_lock_irqsave(hba->host->host_lock, flags);
5723 if (reset_err)
5724 dev_err(hba->dev, "%s: reset and restore failed\n",
5725 __func__);
5726 }
5727
5728 skip_err_handling:
5729 if (!needs_reset) {
5730 if (hba->ufshcd_state == UFSHCD_STATE_RESET)
5731 hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL;
5732 if (hba->saved_err || hba->saved_uic_err)
5733 dev_err_ratelimited(hba->dev, "%s: exit: saved_err 0x%x saved_uic_err 0x%x",
5734 __func__, hba->saved_err, hba->saved_uic_err);
5735 }
5736
5737 if (!reset_err) {
5738 int ret;
5739 struct request_queue *q;
5740
5741 spin_unlock_irqrestore(hba->host->host_lock, flags);
5742 /*
5743 * Set RPM status of hba device to RPM_ACTIVE,
5744 * this also clears its runtime error.
5745 */
5746 ret = pm_runtime_set_active(hba->dev);
5747 /*
5748 * If hba device had runtime error, explicitly resume
5749 * its scsi devices so that block layer can wake up
5750 * those waiting in blk_queue_enter().
5751 */
5752 if (!ret) {
5753 list_for_each_entry(sdev, &shost->__devices, siblings) {
5754 q = sdev->request_queue;
> 5755 if (q->dev && (q->rpm_status == RPM_SUSPENDED ||
5756 q->rpm_status == RPM_SUSPENDING))
5757 pm_request_resume(q->dev);
5758 }
5759 }
5760 spin_lock_irqsave(hba->host->host_lock, flags);
5761 }
5762
5763 /* If clk_gating is held by pm ops, release it */
5764 if (pm_runtime_active(hba->dev) && hba->clk_gating.held_by_pm) {
5765 hba->clk_gating.held_by_pm = false;
5766 __ufshcd_release(hba);
5767 }
5768
5769 ufshcd_clear_eh_in_progress(hba);
5770 spin_unlock_irqrestore(hba->host->host_lock, flags);
5771 ufshcd_scsi_unblock_requests(hba);
5772 ufshcd_release(hba);
5773 if (ufshcd_is_clkscaling_supported(hba))
5774 ufshcd_resume_clkscaling(hba);
5775 pm_runtime_put_noidle(hba->dev);
5776 }
5777
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 7683/7824] drivers/mailbox/bcm-pdc-mailbox.c:682:28: 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: be978f8feb1d4678b941a3ccf181eea1039110e2
commit: 05596e9daf61b0965d525ce889d9414b49727b40 [7683/7824] iomap: constify ioreadX() iomem argument (as in generic implementation)
config: x86_64-randconfig-s021-20200713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-37-gc9676a3b-dirty
git checkout 05596e9daf61b0965d525ce889d9414b49727b40
# 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/mailbox/bcm-pdc-mailbox.c:682:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got unsigned int * @@
>> drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: expected void const [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1296:23: sparse: sparse: cast removes address space '__iomem' of expression
drivers/mailbox/bcm-pdc-mailbox.c:1298:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/mailbox/bcm-pdc-mailbox.c:1301:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned int * @@
drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: expected void [noderef] __iomem *
drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: got unsigned int *
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrlow @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: expected unsigned int [usertype] addrlow
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrhigh @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: expected unsigned int [usertype] addrhigh
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl1 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: expected unsigned int [usertype] ctrl1
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl2 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: expected unsigned int [usertype] ctrl2
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrlow @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: expected unsigned int [usertype] addrlow
drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrhigh @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: expected unsigned int [usertype] addrhigh
drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl1 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: expected unsigned int [usertype] ctrl1
drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ctrl2 @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: expected unsigned int [usertype] ctrl2
drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: got restricted __le32 [usertype]
drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addrlow @@ got restricted __le32 [usertype] @@
drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse: expected unsigned int [usertype] addrlow
drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse: got restricted __le32 [usertype]
vim +682 drivers/mailbox/bcm-pdc-mailbox.c
e004c7e7d3b873 Rob Rice 2016-11-14 667
e004c7e7d3b873 Rob Rice 2016-11-14 668 /**
e004c7e7d3b873 Rob Rice 2016-11-14 669 * pdc_receive() - Process as many responses as are available in the rx ring.
e004c7e7d3b873 Rob Rice 2016-11-14 670 * @pdcs: PDC state
e004c7e7d3b873 Rob Rice 2016-11-14 671 *
e004c7e7d3b873 Rob Rice 2016-11-14 672 * Called within the hard IRQ.
e004c7e7d3b873 Rob Rice 2016-11-14 673 * Return:
e004c7e7d3b873 Rob Rice 2016-11-14 674 */
e004c7e7d3b873 Rob Rice 2016-11-14 675 static int
e004c7e7d3b873 Rob Rice 2016-11-14 676 pdc_receive(struct pdc_state *pdcs)
e004c7e7d3b873 Rob Rice 2016-11-14 677 {
e004c7e7d3b873 Rob Rice 2016-11-14 678 int rx_status;
e004c7e7d3b873 Rob Rice 2016-11-14 679
e004c7e7d3b873 Rob Rice 2016-11-14 680 /* read last_rx_curr from register once */
e004c7e7d3b873 Rob Rice 2016-11-14 681 pdcs->last_rx_curr =
cf17581340d730 Rob Rice 2016-11-14 @682 (ioread32(&pdcs->rxregs_64->status0) &
e004c7e7d3b873 Rob Rice 2016-11-14 683 CRYPTO_D64_RS0_CD_MASK) / RING_ENTRY_SIZE;
e004c7e7d3b873 Rob Rice 2016-11-14 684
e004c7e7d3b873 Rob Rice 2016-11-14 685 do {
e004c7e7d3b873 Rob Rice 2016-11-14 686 /* Could be many frames ready */
e004c7e7d3b873 Rob Rice 2016-11-14 687 rx_status = pdc_receive_one(pdcs);
e004c7e7d3b873 Rob Rice 2016-11-14 688 } while (rx_status == PDC_SUCCESS);
e004c7e7d3b873 Rob Rice 2016-11-14 689
e004c7e7d3b873 Rob Rice 2016-11-14 690 return 0;
a24532f8d17b72 Rob Rice 2016-06-30 691 }
a24532f8d17b72 Rob Rice 2016-06-30 692
:::::: The code at line 682 was first introduced by commit
:::::: cf17581340d730175f1f3f4ce6e90ae434154e37 mailbox: bcm-pdc: Remove unnecessary void* casts
:::::: TO: Rob Rice <rob.rice(a)broadcom.com>
:::::: CC: Jassi Brar <jaswinder.singh(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[rcu:rcu/test 64/65] arch/x86/kvm/mmu/page_track.c:232:2: error: expected expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test
head: e4d26431bafa60b212117ec5750833d39ce1b2aa
commit: f89bf7a94ffa9446a341fefc18153e8f9bebffbb [64/65] kvm: mmu: page_track: Fix RCU list API usage
config: x86_64-randconfig-a011-20200713 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
git checkout f89bf7a94ffa9446a341fefc18153e8f9bebffbb
# 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 errors (new ones prefixed by >>):
>> arch/x86/kvm/mmu/page_track.c:232:2: error: expected expression
hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
^
include/linux/rculist.h:727:30: note: expanded from macro 'hlist_for_each_entry_srcu'
for (__list_check_srcu(cond), \
^
arch/x86/kvm/mmu/page_track.c:258:2: error: expected expression
hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
^
include/linux/rculist.h:727:30: note: expanded from macro 'hlist_for_each_entry_srcu'
for (__list_check_srcu(cond), \
^
2 errors generated.
vim +232 arch/x86/kvm/mmu/page_track.c
211
212 /*
213 * Notify the node that write access is intercepted and write emulation is
214 * finished at this time.
215 *
216 * The node should figure out if the written page is the one that node is
217 * interested in by itself.
218 */
219 void kvm_page_track_write(struct kvm_vcpu *vcpu, gpa_t gpa, const u8 *new,
220 int bytes)
221 {
222 struct kvm_page_track_notifier_head *head;
223 struct kvm_page_track_notifier_node *n;
224 int idx;
225
226 head = &vcpu->kvm->arch.track_notifier_head;
227
228 if (hlist_empty(&head->track_notifier_list))
229 return;
230
231 idx = srcu_read_lock(&head->track_srcu);
> 232 hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
233 srcu_read_lock_held(&head->track_srcu))
234 if (n->track_write)
235 n->track_write(vcpu, gpa, new, bytes, n);
236 srcu_read_unlock(&head->track_srcu, idx);
237 }
238
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months