drivers/block/loop.c:1729:1: warning: the frame size of 1096 bytes is larger than 1024 bytes
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0fa8ee0d9ab95c9350b8b84574824d9a384a9f7d
commit: 3448914e8cc550ba792d4ccc74471d1ca4293aae loop: Add LOOP_CONFIGURE ioctl
date: 6 months ago
config: arm-randconfig-r012-20201118 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3448914e8cc550ba792d4ccc74471d1ca4293aae
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 warnings (new ones prefixed by >>):
drivers/block/loop.c: In function 'lo_ioctl':
>> drivers/block/loop.c:1729:1: warning: the frame size of 1096 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1729 | }
| ^
vim +1729 drivers/block/loop.c
a13165441d58b21 Jan Kara 2018-11-08 1667
a13165441d58b21 Jan Kara 2018-11-08 1668 static int lo_ioctl(struct block_device *bdev, fmode_t mode,
a13165441d58b21 Jan Kara 2018-11-08 1669 unsigned int cmd, unsigned long arg)
a13165441d58b21 Jan Kara 2018-11-08 1670 {
a13165441d58b21 Jan Kara 2018-11-08 1671 struct loop_device *lo = bdev->bd_disk->private_data;
571fae6e290d64a Martijn Coenen 2020-05-13 1672 void __user *argp = (void __user *) arg;
a13165441d58b21 Jan Kara 2018-11-08 1673 int err;
3148ffbdb9162ba Omar Sandoval 2018-03-26 1674
^1da177e4c3f415 Linus Torvalds 2005-04-16 1675 switch (cmd) {
3448914e8cc550b Martijn Coenen 2020-05-13 1676 case LOOP_SET_FD: {
3448914e8cc550b Martijn Coenen 2020-05-13 1677 /*
3448914e8cc550b Martijn Coenen 2020-05-13 1678 * Legacy case - pass in a zeroed out struct loop_config with
3448914e8cc550b Martijn Coenen 2020-05-13 1679 * only the file descriptor set , which corresponds with the
3448914e8cc550b Martijn Coenen 2020-05-13 1680 * default parameters we'd have used otherwise.
3448914e8cc550b Martijn Coenen 2020-05-13 1681 */
3448914e8cc550b Martijn Coenen 2020-05-13 1682 struct loop_config config;
3448914e8cc550b Martijn Coenen 2020-05-13 1683
3448914e8cc550b Martijn Coenen 2020-05-13 1684 memset(&config, 0, sizeof(config));
3448914e8cc550b Martijn Coenen 2020-05-13 1685 config.fd = arg;
3448914e8cc550b Martijn Coenen 2020-05-13 1686
3448914e8cc550b Martijn Coenen 2020-05-13 1687 return loop_configure(lo, mode, bdev, &config);
3448914e8cc550b Martijn Coenen 2020-05-13 1688 }
3448914e8cc550b Martijn Coenen 2020-05-13 1689 case LOOP_CONFIGURE: {
3448914e8cc550b Martijn Coenen 2020-05-13 1690 struct loop_config config;
3448914e8cc550b Martijn Coenen 2020-05-13 1691
3448914e8cc550b Martijn Coenen 2020-05-13 1692 if (copy_from_user(&config, argp, sizeof(config)))
3448914e8cc550b Martijn Coenen 2020-05-13 1693 return -EFAULT;
3448914e8cc550b Martijn Coenen 2020-05-13 1694
3448914e8cc550b Martijn Coenen 2020-05-13 1695 return loop_configure(lo, mode, bdev, &config);
3448914e8cc550b Martijn Coenen 2020-05-13 1696 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 1697 case LOOP_CHANGE_FD:
c371077000f4138 Jan Kara 2018-11-08 1698 return loop_change_fd(lo, bdev, arg);
^1da177e4c3f415 Linus Torvalds 2005-04-16 1699 case LOOP_CLR_FD:
7ccd0791d98531d Jan Kara 2018-11-08 1700 return loop_clr_fd(lo);
^1da177e4c3f415 Linus Torvalds 2005-04-16 1701 case LOOP_SET_STATUS:
7035b5df3c071cc Dmitry Monakhov 2011-11-16 1702 err = -EPERM;
a13165441d58b21 Jan Kara 2018-11-08 1703 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) {
571fae6e290d64a Martijn Coenen 2020-05-13 1704 err = loop_set_status_old(lo, argp);
a13165441d58b21 Jan Kara 2018-11-08 1705 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 1706 break;
^1da177e4c3f415 Linus Torvalds 2005-04-16 1707 case LOOP_GET_STATUS:
571fae6e290d64a Martijn Coenen 2020-05-13 1708 return loop_get_status_old(lo, argp);
^1da177e4c3f415 Linus Torvalds 2005-04-16 1709 case LOOP_SET_STATUS64:
7035b5df3c071cc Dmitry Monakhov 2011-11-16 1710 err = -EPERM;
a13165441d58b21 Jan Kara 2018-11-08 1711 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) {
571fae6e290d64a Martijn Coenen 2020-05-13 1712 err = loop_set_status64(lo, argp);
a13165441d58b21 Jan Kara 2018-11-08 1713 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 1714 break;
^1da177e4c3f415 Linus Torvalds 2005-04-16 1715 case LOOP_GET_STATUS64:
571fae6e290d64a Martijn Coenen 2020-05-13 1716 return loop_get_status64(lo, argp);
a13165441d58b21 Jan Kara 2018-11-08 1717 case LOOP_SET_CAPACITY:
ab1cb278bc70276 Ming Lei 2015-08-17 1718 case LOOP_SET_DIRECT_IO:
89e4fdecb51cf55 Omar Sandoval 2017-08-24 1719 case LOOP_SET_BLOCK_SIZE:
a13165441d58b21 Jan Kara 2018-11-08 1720 if (!(mode & FMODE_WRITE) && !capable(CAP_SYS_ADMIN))
a13165441d58b21 Jan Kara 2018-11-08 1721 return -EPERM;
a13165441d58b21 Jan Kara 2018-11-08 1722 /* Fall through */
^1da177e4c3f415 Linus Torvalds 2005-04-16 1723 default:
a13165441d58b21 Jan Kara 2018-11-08 1724 err = lo_simple_ioctl(lo, cmd, arg);
a13165441d58b21 Jan Kara 2018-11-08 1725 break;
^1da177e4c3f415 Linus Torvalds 2005-04-16 1726 }
f028f3b2f987ebc Nikanth Karthikesan 2009-03-24 1727
^1da177e4c3f415 Linus Torvalds 2005-04-16 1728 return err;
^1da177e4c3f415 Linus Torvalds 2005-04-16 @1729 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 1730
:::::: The code at line 1729 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
1 year, 10 months
[dhowells-fs:fscache-iter 48/76] fs/fscache/cache_init.c:84:8: error: implicit declaration of function 'fscache_proc_caching_init'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
head: b2ed4f38582ce2576655c0fbcac1a66211daf349
commit: 35dc4764d38ade3b9b89cb7d9a6e8e178c3e4c57 [48/76] fscache: Always create /proc/fs/fscache/stats if configured
config: s390-randconfig-r013-20201116 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-iter
git checkout 35dc4764d38ade3b9b89cb7d9a6e8e178c3e4c57
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from fs/fscache/cache_init.c:16:
In file included from fs/fscache/internal.h:28:
In file included from include/linux/fscache-cache.h:17:
In file included from include/linux/fscache.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:26:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from fs/fscache/cache_init.c:16:
In file included from fs/fscache/internal.h:28:
In file included from include/linux/fscache-cache.h:17:
In file included from include/linux/fscache.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:26:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from fs/fscache/cache_init.c:16:
In file included from fs/fscache/internal.h:28:
In file included from include/linux/fscache-cache.h:17:
In file included from include/linux/fscache.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:26:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from fs/fscache/cache_init.c:16:
In file included from fs/fscache/internal.h:28:
In file included from include/linux/fscache-cache.h:17:
In file included from include/linux/fscache.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:26:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> fs/fscache/cache_init.c:84:8: error: implicit declaration of function 'fscache_proc_caching_init' [-Werror,-Wimplicit-function-declaration]
ret = fscache_proc_caching_init();
^
20 warnings and 1 error generated.
vim +/fscache_proc_caching_init +84 fs/fscache/cache_init.c
62
63 /*
64 * Initialise the caching code.
65 */
66 int __init fscache_init_caching(void)
67 {
68 int ret;
69
70 fscache_op_max_active =
71 clamp_val(fscache_object_max_active / 2,
72 fscache_op_max_active, WQ_UNBOUND_MAX_ACTIVE);
73
74 ret = -ENOMEM;
75 fscache_op_wq = alloc_workqueue("fscache_operation", WQ_UNBOUND,
76 fscache_op_max_active);
77 if (!fscache_op_wq)
78 goto error_op_wq;
79
80 ret = fscache_init_dispatchers();
81 if (ret < 0)
82 goto error_dispatchers;
83
> 84 ret = fscache_proc_caching_init();
85 if (ret < 0)
86 goto error_proc;
87
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 9/9] misc: xilinx-ai-engine: Add support for servicing error interrupts
by kernel test robot
Hi Wendy,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on robh/for-next soc/for-next linus/master v5.10-rc4 next-20201118]
[cannot apply to xlnx/master]
[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/Wendy-Liang/Xilinx-AI-engine-ker...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 93c69b2d17372463ae33b79b3002c22a208945b3
config: nds32-randconfig-r032-20201118 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/2eb5a0f27fd7de45134177e5869e31b9a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wendy-Liang/Xilinx-AI-engine-kernel-driver/20201118-160902
git checkout 2eb5a0f27fd7de45134177e5869e31b9a8ccfff3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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 >>):
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_pll_frac_data':
include/linux/firmware/xlnx-zynqmp.h:431:10: error: 'ENODEV' undeclared (first use in this function)
431 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_sd_tapdelay':
include/linux/firmware/xlnx-zynqmp.h:435:10: error: 'ENODEV' undeclared (first use in this function)
435 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_sd_dll_reset':
include/linux/firmware/xlnx-zynqmp.h:439:10: error: 'ENODEV' undeclared (first use in this function)
439 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_reset_assert':
include/linux/firmware/xlnx-zynqmp.h:444:10: error: 'ENODEV' undeclared (first use in this function)
444 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_reset_get_status':
include/linux/firmware/xlnx-zynqmp.h:449:10: error: 'ENODEV' undeclared (first use in this function)
449 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_init_finalize':
include/linux/firmware/xlnx-zynqmp.h:453:10: error: 'ENODEV' undeclared (first use in this function)
453 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_suspend_mode':
include/linux/firmware/xlnx-zynqmp.h:457:10: error: 'ENODEV' undeclared (first use in this function)
457 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_request_node':
include/linux/firmware/xlnx-zynqmp.h:463:10: error: 'ENODEV' undeclared (first use in this function)
463 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_release_node':
include/linux/firmware/xlnx-zynqmp.h:467:10: error: 'ENODEV' undeclared (first use in this function)
467 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_requirement':
include/linux/firmware/xlnx-zynqmp.h:474:10: error: 'ENODEV' undeclared (first use in this function)
474 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_aes_engine':
include/linux/firmware/xlnx-zynqmp.h:478:10: error: 'ENODEV' undeclared (first use in this function)
478 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_fpga_load':
include/linux/firmware/xlnx-zynqmp.h:483:10: error: 'ENODEV' undeclared (first use in this function)
483 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_fpga_get_status':
include/linux/firmware/xlnx-zynqmp.h:487:10: error: 'ENODEV' undeclared (first use in this function)
487 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_write_ggs':
include/linux/firmware/xlnx-zynqmp.h:491:10: error: 'ENODEV' undeclared (first use in this function)
491 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_read_ggs':
include/linux/firmware/xlnx-zynqmp.h:495:10: error: 'ENODEV' undeclared (first use in this function)
495 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_write_pggs':
include/linux/firmware/xlnx-zynqmp.h:499:10: error: 'ENODEV' undeclared (first use in this function)
499 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_read_pggs':
include/linux/firmware/xlnx-zynqmp.h:503:10: error: 'ENODEV' undeclared (first use in this function)
503 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_system_shutdown':
include/linux/firmware/xlnx-zynqmp.h:507:10: error: 'ENODEV' undeclared (first use in this function)
507 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_boot_health_status':
include/linux/firmware/xlnx-zynqmp.h:511:10: error: 'ENODEV' undeclared (first use in this function)
511 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clear_aie_npi_isr':
include/linux/firmware/xlnx-zynqmp.h:516:10: error: 'ENODEV' undeclared (first use in this function)
516 | return -ENODEV;
| ^~~~~~
In file included from include/linux/rwsem.h:18,
from include/linux/mm_types.h:11,
from include/linux/mmzone.h:21,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:13,
from ./arch/nds32/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/misc/xilinx-ai-engine/ai-engine-interrupt.c:9:
include/linux/err.h: At top level:
include/linux/err.h:24:35: error: conflicting types for 'ERR_PTR'
24 | static inline void * __must_check ERR_PTR(long error)
| ^~~~~~~
In file included from drivers/misc/xilinx-ai-engine/ai-engine-interrupt.c:8:
include/linux/firmware/xlnx-zynqmp.h:366:9: note: previous implicit declaration of 'ERR_PTR' was here
366 | return ERR_PTR(-ENODEV);
| ^~~~~~~
drivers/misc/xilinx-ai-engine/ai-engine-interrupt.c: In function 'aie_l2_backtrack':
>> drivers/misc/xilinx-ai-engine/ai-engine-interrupt.c:497:7: warning: variable 'notify' set but not used [-Wunused-but-set-variable]
497 | bool notify = false, sched_work = false;
| ^~~~~~
In file included from drivers/misc/xilinx-ai-engine/ai-engine-interrupt.c:8:
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clear_aie_npi_isr':
include/linux/firmware/xlnx-zynqmp.h:517:1: error: control reaches end of non-void function [-Werror=return-type]
517 | }
| ^
cc1: some warnings being treated as errors
vim +/notify +497 drivers/misc/xilinx-ai-engine/ai-engine-interrupt.c
484
485 /**
486 * aie_l2_backtrack() - iterate through each level 2 interrupt controller
487 * in a given partition and backtrack its
488 * corresponding level 1 interrupt controller.
489 * @apart: AIE partition pointer
490 */
491 static void aie_l2_backtrack(struct aie_partition *apart)
492 {
493 struct aie_location loc;
494 unsigned long l2_mask = 0;
495 u32 n, ttype, l2_bitmap_offset = 0;
496 int ret;
> 497 bool notify = false, sched_work = false;
498
499 ret = mutex_lock_interruptible(&apart->mlock);
500 if (ret) {
501 dev_err_ratelimited(&apart->dev,
502 "Failed to acquire lock. Process was interrupted by fatal signals\n");
503 return;
504 }
505
506 for (loc.col = apart->range.start.col, loc.row = 0;
507 loc.col < apart->range.start.col + apart->range.size.col;
508 loc.col++) {
509 ttype = apart->adev->ops->get_tile_type(&loc);
510 if (ttype != AIE_TILE_TYPE_SHIMNOC)
511 continue;
512
513 aie_resource_cpy_to_arr32(&apart->l2_mask, l2_bitmap_offset *
514 32, (u32 *)&l2_mask, 32);
515 l2_bitmap_offset++;
516
517 for_each_set_bit(n, &l2_mask,
518 apart->adev->l2_ctrl->num_broadcasts) {
519 if (aie_l1_backtrack(apart, loc, n))
520 notify = true;
521 }
522
523 aie_enable_l2_ctrl(apart, &loc, l2_mask);
524 }
525
526 /*
527 * Level 2 interrupt registers are edge-triggered. As a result,
528 * re-enabling level 2 won't trigger an interrupt for the already
529 * latched interrupts at level 1 controller.
530 */
531 for (loc.col = apart->range.start.col, loc.row = 0;
532 loc.col < apart->range.start.col + apart->range.size.col;
533 loc.col++) {
534 if (aie_get_l1_status(apart, &loc, AIE_SHIM_SWITCH_A) ||
535 aie_get_l1_status(apart, &loc, AIE_SHIM_SWITCH_B)) {
536 mutex_unlock(&apart->mlock);
537 sched_work = true;
538 schedule_work(&apart->adev->backtrack);
539 break;
540 }
541 }
542
543 if (!sched_work)
544 mutex_unlock(&apart->mlock);
545 }
546
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-stable-rc:linux-4.19.y 7521/9999] drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:321:39: sparse: sparse: cast to restricted __le16
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 2c00f819a72150708b9f9e0a2b031a8fdafa7b15 [7521/9999] iwlwifi: Don't ignore the cap field upon mcc update
config: x86_64-randconfig-s022-20201118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-113-g90be5636-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 2c00f819a72150708b9f9e0a2b031a8fdafa7b15
# 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/net/wireless/intel/iwlwifi/mvm/mac80211.c: note: in included file (through drivers/net/wireless/intel/iwlwifi/mvm/..//fw/img.h, drivers/net/wireless/intel/iwlwifi/mvm/..//iwl-trans.h, ...):
drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:286:19: sparse: sparse: mixed bitwiseness
drivers/net/wireless/intel/iwlwifi/mvm/..//fw/file.h:405:19: sparse: sparse: mixed bitwiseness
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:321:39: sparse: sparse: cast to restricted __le16
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c: In function '__iwl_mvm_assign_vif_chanctx':
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3754:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
3754 | if (switching_chanctx) {
| ^
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3758:2: note: here
3758 | case NL80211_IFTYPE_ADHOC:
| ^~~~
In file included from drivers/net/wireless/intel/iwlwifi/mvm/../iwl-trans.h:76,
from drivers/net/wireless/intel/iwlwifi/mvm/../iwl-devtrace.h:32,
from drivers/net/wireless/intel/iwlwifi/mvm/../iwl-io.h:32,
from drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:82:
At top level:
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-config.h:472:36: warning: 'iwl_csr_v2' defined but not used [-Wunused-const-variable=]
472 | static const struct iwl_csr_params iwl_csr_v2 = {
| ^~~~~~~~~~
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-config.h:457:36: warning: 'iwl_csr_v1' defined but not used [-Wunused-const-variable=]
457 | static const struct iwl_csr_params iwl_csr_v1 = {
| ^~~~~~~~~~
vim +321 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
287
288 struct ieee80211_regdomain *iwl_mvm_get_regdomain(struct wiphy *wiphy,
289 const char *alpha2,
290 enum iwl_mcc_source src_id,
291 bool *changed)
292 {
293 struct ieee80211_regdomain *regd = NULL;
294 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
295 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
296 struct iwl_mcc_update_resp *resp;
297
298 IWL_DEBUG_LAR(mvm, "Getting regdomain data for %s from FW\n", alpha2);
299
300 lockdep_assert_held(&mvm->mutex);
301
302 resp = iwl_mvm_update_mcc(mvm, alpha2, src_id);
303 if (IS_ERR_OR_NULL(resp)) {
304 IWL_DEBUG_LAR(mvm, "Could not get update from FW %d\n",
305 PTR_ERR_OR_ZERO(resp));
306 goto out;
307 }
308
309 if (changed) {
310 u32 status = le32_to_cpu(resp->status);
311
312 *changed = (status == MCC_RESP_NEW_CHAN_PROFILE ||
313 status == MCC_RESP_ILLEGAL);
314 }
315
316 regd = iwl_parse_nvm_mcc_info(mvm->trans->dev, mvm->cfg,
317 __le32_to_cpu(resp->n_channels),
318 resp->channels,
319 __le16_to_cpu(resp->mcc),
320 __le16_to_cpu(resp->geo_info),
> 321 __le16_to_cpu(resp->cap));
322 /* Store the return source id */
323 src_id = resp->source_id;
324 kfree(resp);
325 if (IS_ERR_OR_NULL(regd)) {
326 IWL_DEBUG_LAR(mvm, "Could not get parse update from FW %d\n",
327 PTR_ERR_OR_ZERO(regd));
328 goto out;
329 }
330
331 IWL_DEBUG_LAR(mvm, "setting alpha2 from FW to %s (0x%x, 0x%x) src=%d\n",
332 regd->alpha2, regd->alpha2[0], regd->alpha2[1], src_id);
333 mvm->lar_regdom_set = true;
334 mvm->mcc_src = src_id;
335
336 out:
337 return regd;
338 }
339
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH 3/9] misc: xilinx-ai-engine: Implement AI engine cleanup sequence
by kernel test robot
Hi Wendy,
I love your patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on robh/for-next soc/for-next linus/master v5.10-rc4 next-20201118]
[cannot apply to xlnx/master]
[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/Wendy-Liang/Xilinx-AI-engine-ker...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 93c69b2d17372463ae33b79b3002c22a208945b3
config: nds32-randconfig-r032-20201118 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/8345de0ce72a657e48ededa0fed6db62a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wendy-Liang/Xilinx-AI-engine-kernel-driver/20201118-160902
git checkout 8345de0ce72a657e48ededa0fed6db62a28cf84a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/misc/xilinx-ai-engine/ai-engine-aie.c:9:
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_eemi_ops':
>> include/linux/firmware/xlnx-zynqmp.h:363:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
363 | return ERR_PTR(-ENODEV);
| ^~~~~~~
>> include/linux/firmware/xlnx-zynqmp.h:363:18: error: 'ENODEV' undeclared (first use in this function)
363 | return ERR_PTR(-ENODEV);
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h:363:18: note: each undeclared identifier is reported only once for each function it appears in
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_api_version':
include/linux/firmware/xlnx-zynqmp.h:367:10: error: 'ENODEV' undeclared (first use in this function)
367 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_chipid':
include/linux/firmware/xlnx-zynqmp.h:371:10: error: 'ENODEV' undeclared (first use in this function)
371 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_query_data':
include/linux/firmware/xlnx-zynqmp.h:376:10: error: 'ENODEV' undeclared (first use in this function)
376 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_enable':
include/linux/firmware/xlnx-zynqmp.h:380:10: error: 'ENODEV' undeclared (first use in this function)
380 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_disable':
include/linux/firmware/xlnx-zynqmp.h:384:10: error: 'ENODEV' undeclared (first use in this function)
384 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_getstate':
include/linux/firmware/xlnx-zynqmp.h:388:10: error: 'ENODEV' undeclared (first use in this function)
388 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_setdivider':
include/linux/firmware/xlnx-zynqmp.h:392:10: error: 'ENODEV' undeclared (first use in this function)
392 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_getdivider':
include/linux/firmware/xlnx-zynqmp.h:396:10: error: 'ENODEV' undeclared (first use in this function)
396 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_setrate':
include/linux/firmware/xlnx-zynqmp.h:400:10: error: 'ENODEV' undeclared (first use in this function)
400 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_getrate':
include/linux/firmware/xlnx-zynqmp.h:404:10: error: 'ENODEV' undeclared (first use in this function)
404 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_setparent':
include/linux/firmware/xlnx-zynqmp.h:408:10: error: 'ENODEV' undeclared (first use in this function)
408 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_clock_getparent':
include/linux/firmware/xlnx-zynqmp.h:412:10: error: 'ENODEV' undeclared (first use in this function)
412 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_pll_frac_mode':
include/linux/firmware/xlnx-zynqmp.h:416:10: error: 'ENODEV' undeclared (first use in this function)
416 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_pll_frac_mode':
include/linux/firmware/xlnx-zynqmp.h:420:10: error: 'ENODEV' undeclared (first use in this function)
420 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_pll_frac_data':
include/linux/firmware/xlnx-zynqmp.h:424:10: error: 'ENODEV' undeclared (first use in this function)
424 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_pll_frac_data':
include/linux/firmware/xlnx-zynqmp.h:428:10: error: 'ENODEV' undeclared (first use in this function)
428 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_sd_tapdelay':
include/linux/firmware/xlnx-zynqmp.h:432:10: error: 'ENODEV' undeclared (first use in this function)
432 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_sd_dll_reset':
include/linux/firmware/xlnx-zynqmp.h:436:10: error: 'ENODEV' undeclared (first use in this function)
436 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_reset_assert':
include/linux/firmware/xlnx-zynqmp.h:441:10: error: 'ENODEV' undeclared (first use in this function)
441 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_reset_get_status':
include/linux/firmware/xlnx-zynqmp.h:446:10: error: 'ENODEV' undeclared (first use in this function)
446 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_init_finalize':
include/linux/firmware/xlnx-zynqmp.h:450:10: error: 'ENODEV' undeclared (first use in this function)
450 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_suspend_mode':
include/linux/firmware/xlnx-zynqmp.h:454:10: error: 'ENODEV' undeclared (first use in this function)
454 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_request_node':
include/linux/firmware/xlnx-zynqmp.h:460:10: error: 'ENODEV' undeclared (first use in this function)
460 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_release_node':
include/linux/firmware/xlnx-zynqmp.h:464:10: error: 'ENODEV' undeclared (first use in this function)
464 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_requirement':
include/linux/firmware/xlnx-zynqmp.h:471:10: error: 'ENODEV' undeclared (first use in this function)
471 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_aes_engine':
include/linux/firmware/xlnx-zynqmp.h:475:10: error: 'ENODEV' undeclared (first use in this function)
475 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_fpga_load':
include/linux/firmware/xlnx-zynqmp.h:480:10: error: 'ENODEV' undeclared (first use in this function)
480 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_fpga_get_status':
include/linux/firmware/xlnx-zynqmp.h:484:10: error: 'ENODEV' undeclared (first use in this function)
484 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_write_ggs':
include/linux/firmware/xlnx-zynqmp.h:488:10: error: 'ENODEV' undeclared (first use in this function)
488 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_read_ggs':
include/linux/firmware/xlnx-zynqmp.h:492:10: error: 'ENODEV' undeclared (first use in this function)
492 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_write_pggs':
include/linux/firmware/xlnx-zynqmp.h:496:10: error: 'ENODEV' undeclared (first use in this function)
496 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_read_pggs':
include/linux/firmware/xlnx-zynqmp.h:500:10: error: 'ENODEV' undeclared (first use in this function)
500 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_system_shutdown':
include/linux/firmware/xlnx-zynqmp.h:504:10: error: 'ENODEV' undeclared (first use in this function)
504 | return -ENODEV;
| ^~~~~~
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_set_boot_health_status':
include/linux/firmware/xlnx-zynqmp.h:508:10: error: 'ENODEV' undeclared (first use in this function)
508 | return -ENODEV;
| ^~~~~~
In file included from include/linux/io.h:12,
from drivers/misc/xilinx-ai-engine/ai-engine-aie.c:10:
include/linux/err.h: At top level:
>> include/linux/err.h:24:35: error: conflicting types for 'ERR_PTR'
24 | static inline void * __must_check ERR_PTR(long error)
| ^~~~~~~
In file included from drivers/misc/xilinx-ai-engine/ai-engine-aie.c:9:
include/linux/firmware/xlnx-zynqmp.h:363:9: note: previous implicit declaration of 'ERR_PTR' was here
363 | return ERR_PTR(-ENODEV);
| ^~~~~~~
In file included from drivers/misc/xilinx-ai-engine/ai-engine-aie.c:9:
include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_reset_assert':
include/linux/firmware/xlnx-zynqmp.h:442:1: error: control reaches end of non-void function [-Werror=return-type]
442 | }
| ^
cc1: some warnings being treated as errors
vim +/ERR_PTR +363 include/linux/firmware/xlnx-zynqmp.h
59ecdd778879f17 Rajan Vaja 2018-09-12 316
76582671eb5d006 Rajan Vaja 2018-09-12 317
e178df31cf41ba7 Jolly Shah 2019-01-29 318 int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1,
e178df31cf41ba7 Jolly Shah 2019-01-29 319 u32 arg2, u32 arg3, u32 *ret_payload);
e178df31cf41ba7 Jolly Shah 2019-01-29 320
dceeb0f0e61071b Tejas Patel 2020-01-09 321 #if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE)
b9b3a8be28b31a3 Rajan Vaja 2020-04-24 322 int zynqmp_pm_get_api_version(u32 *version);
21cd93bab92b281 Rajan Vaja 2020-04-24 323 int zynqmp_pm_get_chipid(u32 *idcode, u32 *version);
6366c1bac3149c6 Rajan Vaja 2020-04-24 324 int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out);
3637e84cd2e910f Rajan Vaja 2020-04-24 325 int zynqmp_pm_clock_enable(u32 clock_id);
f5ccd54b67b3f02 Rajan Vaja 2020-04-24 326 int zynqmp_pm_clock_disable(u32 clock_id);
5e76731dd370ca3 Rajan Vaja 2020-04-24 327 int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state);
fc9fb8fb985c092 Rajan Vaja 2020-04-24 328 int zynqmp_pm_clock_setdivider(u32 clock_id, u32 divider);
0667a8d144bc830 Rajan Vaja 2020-04-24 329 int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider);
7a1e10621a215da Rajan Vaja 2020-04-24 330 int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate);
7a1e10621a215da Rajan Vaja 2020-04-24 331 int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate);
70c0d36462ca5be Rajan Vaja 2020-04-24 332 int zynqmp_pm_clock_setparent(u32 clock_id, u32 parent_id);
70c0d36462ca5be Rajan Vaja 2020-04-24 333 int zynqmp_pm_clock_getparent(u32 clock_id, u32 *parent_id);
426c8d85df7a7b8 Rajan Vaja 2020-04-24 334 int zynqmp_pm_set_pll_frac_mode(u32 clk_id, u32 mode);
426c8d85df7a7b8 Rajan Vaja 2020-04-24 335 int zynqmp_pm_get_pll_frac_mode(u32 clk_id, u32 *mode);
426c8d85df7a7b8 Rajan Vaja 2020-04-24 336 int zynqmp_pm_set_pll_frac_data(u32 clk_id, u32 data);
426c8d85df7a7b8 Rajan Vaja 2020-04-24 337 int zynqmp_pm_get_pll_frac_data(u32 clk_id, u32 *data);
426c8d85df7a7b8 Rajan Vaja 2020-04-24 338 int zynqmp_pm_set_sd_tapdelay(u32 node_id, u32 type, u32 value);
426c8d85df7a7b8 Rajan Vaja 2020-04-24 339 int zynqmp_pm_sd_dll_reset(u32 node_id, u32 type);
cf23ec353146237 Rajan Vaja 2020-04-24 340 int zynqmp_pm_reset_assert(const enum zynqmp_pm_reset reset,
cf23ec353146237 Rajan Vaja 2020-04-24 341 const enum zynqmp_pm_reset_action assert_flag);
1b413581fe26404 Rajan Vaja 2020-04-24 342 int zynqmp_pm_reset_get_status(const enum zynqmp_pm_reset reset, u32 *status);
9474da950d1e39f Rajan Vaja 2020-04-24 343 int zynqmp_pm_init_finalize(void);
951d0a97e41caff Rajan Vaja 2020-04-24 344 int zynqmp_pm_set_suspend_mode(u32 mode);
bf8b27ed2324b51 Rajan Vaja 2020-04-24 345 int zynqmp_pm_request_node(const u32 node, const u32 capabilities,
bf8b27ed2324b51 Rajan Vaja 2020-04-24 346 const u32 qos, const enum zynqmp_pm_request_ack ack);
07fb1a4619fcb35 Rajan Vaja 2020-04-24 347 int zynqmp_pm_release_node(const u32 node);
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 348 int zynqmp_pm_set_requirement(const u32 node, const u32 capabilities,
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 349 const u32 qos,
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 350 const enum zynqmp_pm_request_ack ack);
bc86f9c546160af Rajan Vaja 2020-04-24 351 int zynqmp_pm_aes_engine(const u64 address, u32 *out);
4db8180ffe7c07b Rajan Vaja 2020-04-24 352 int zynqmp_pm_fpga_load(const u64 address, const u32 size, const u32 flags);
4db8180ffe7c07b Rajan Vaja 2020-04-24 353 int zynqmp_pm_fpga_get_status(u32 *value);
4f680b72ea07a3e Rajan Vaja 2020-04-24 354 int zynqmp_pm_write_ggs(u32 index, u32 value);
4f680b72ea07a3e Rajan Vaja 2020-04-24 355 int zynqmp_pm_read_ggs(u32 index, u32 *value);
4f680b72ea07a3e Rajan Vaja 2020-04-24 356 int zynqmp_pm_write_pggs(u32 index, u32 value);
4f680b72ea07a3e Rajan Vaja 2020-04-24 357 int zynqmp_pm_read_pggs(u32 index, u32 *value);
fdd2ed88ca97137 Rajan Vaja 2020-04-24 358 int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype);
a2cc220a9a9227b Rajan Vaja 2020-04-24 359 int zynqmp_pm_set_boot_health_status(u32 value);
76582671eb5d006 Rajan Vaja 2018-09-12 360 #else
76582671eb5d006 Rajan Vaja 2018-09-12 361 static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)
76582671eb5d006 Rajan Vaja 2018-09-12 362 {
3d0313786470acb Rajan Vaja 2019-03-04 @363 return ERR_PTR(-ENODEV);
76582671eb5d006 Rajan Vaja 2018-09-12 364 }
b9b3a8be28b31a3 Rajan Vaja 2020-04-24 365 static inline int zynqmp_pm_get_api_version(u32 *version)
b9b3a8be28b31a3 Rajan Vaja 2020-04-24 366 {
b9b3a8be28b31a3 Rajan Vaja 2020-04-24 367 return -ENODEV;
b9b3a8be28b31a3 Rajan Vaja 2020-04-24 368 }
21cd93bab92b281 Rajan Vaja 2020-04-24 369 static inline int zynqmp_pm_get_chipid(u32 *idcode, u32 *version)
21cd93bab92b281 Rajan Vaja 2020-04-24 370 {
21cd93bab92b281 Rajan Vaja 2020-04-24 371 return -ENODEV;
21cd93bab92b281 Rajan Vaja 2020-04-24 372 }
6366c1bac3149c6 Rajan Vaja 2020-04-24 373 static inline int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata,
6366c1bac3149c6 Rajan Vaja 2020-04-24 374 u32 *out)
6366c1bac3149c6 Rajan Vaja 2020-04-24 375 {
6366c1bac3149c6 Rajan Vaja 2020-04-24 376 return -ENODEV;
6366c1bac3149c6 Rajan Vaja 2020-04-24 377 }
3637e84cd2e910f Rajan Vaja 2020-04-24 378 static inline int zynqmp_pm_clock_enable(u32 clock_id)
3637e84cd2e910f Rajan Vaja 2020-04-24 379 {
3637e84cd2e910f Rajan Vaja 2020-04-24 380 return -ENODEV;
3637e84cd2e910f Rajan Vaja 2020-04-24 381 }
f5ccd54b67b3f02 Rajan Vaja 2020-04-24 382 static inline int zynqmp_pm_clock_disable(u32 clock_id)
f5ccd54b67b3f02 Rajan Vaja 2020-04-24 383 {
f5ccd54b67b3f02 Rajan Vaja 2020-04-24 384 return -ENODEV;
f5ccd54b67b3f02 Rajan Vaja 2020-04-24 385 }
5e76731dd370ca3 Rajan Vaja 2020-04-24 386 static inline int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state)
5e76731dd370ca3 Rajan Vaja 2020-04-24 387 {
5e76731dd370ca3 Rajan Vaja 2020-04-24 388 return -ENODEV;
5e76731dd370ca3 Rajan Vaja 2020-04-24 389 }
fc9fb8fb985c092 Rajan Vaja 2020-04-24 390 static inline int zynqmp_pm_clock_setdivider(u32 clock_id, u32 divider)
fc9fb8fb985c092 Rajan Vaja 2020-04-24 391 {
fc9fb8fb985c092 Rajan Vaja 2020-04-24 392 return -ENODEV;
fc9fb8fb985c092 Rajan Vaja 2020-04-24 393 }
0667a8d144bc830 Rajan Vaja 2020-04-24 394 static inline int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider)
0667a8d144bc830 Rajan Vaja 2020-04-24 395 {
0667a8d144bc830 Rajan Vaja 2020-04-24 396 return -ENODEV;
0667a8d144bc830 Rajan Vaja 2020-04-24 397 }
7a1e10621a215da Rajan Vaja 2020-04-24 398 static inline int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate)
7a1e10621a215da Rajan Vaja 2020-04-24 399 {
7a1e10621a215da Rajan Vaja 2020-04-24 400 return -ENODEV;
7a1e10621a215da Rajan Vaja 2020-04-24 401 }
7a1e10621a215da Rajan Vaja 2020-04-24 402 static inline int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate)
7a1e10621a215da Rajan Vaja 2020-04-24 403 {
7a1e10621a215da Rajan Vaja 2020-04-24 404 return -ENODEV;
7a1e10621a215da Rajan Vaja 2020-04-24 405 }
70c0d36462ca5be Rajan Vaja 2020-04-24 406 static inline int zynqmp_pm_clock_setparent(u32 clock_id, u32 parent_id)
70c0d36462ca5be Rajan Vaja 2020-04-24 407 {
70c0d36462ca5be Rajan Vaja 2020-04-24 408 return -ENODEV;
70c0d36462ca5be Rajan Vaja 2020-04-24 409 }
70c0d36462ca5be Rajan Vaja 2020-04-24 410 static inline int zynqmp_pm_clock_getparent(u32 clock_id, u32 *parent_id)
70c0d36462ca5be Rajan Vaja 2020-04-24 411 {
70c0d36462ca5be Rajan Vaja 2020-04-24 412 return -ENODEV;
70c0d36462ca5be Rajan Vaja 2020-04-24 413 }
426c8d85df7a7b8 Rajan Vaja 2020-04-24 414 static inline int zynqmp_pm_set_pll_frac_mode(u32 clk_id, u32 mode)
426c8d85df7a7b8 Rajan Vaja 2020-04-24 415 {
426c8d85df7a7b8 Rajan Vaja 2020-04-24 416 return -ENODEV;
426c8d85df7a7b8 Rajan Vaja 2020-04-24 417 }
426c8d85df7a7b8 Rajan Vaja 2020-04-24 418 static inline int zynqmp_pm_get_pll_frac_mode(u32 clk_id, u32 *mode)
426c8d85df7a7b8 Rajan Vaja 2020-04-24 419 {
426c8d85df7a7b8 Rajan Vaja 2020-04-24 420 return -ENODEV;
426c8d85df7a7b8 Rajan Vaja 2020-04-24 421 }
426c8d85df7a7b8 Rajan Vaja 2020-04-24 422 static inline int zynqmp_pm_set_pll_frac_data(u32 clk_id, u32 data)
426c8d85df7a7b8 Rajan Vaja 2020-04-24 423 {
426c8d85df7a7b8 Rajan Vaja 2020-04-24 424 return -ENODEV;
426c8d85df7a7b8 Rajan Vaja 2020-04-24 425 }
426c8d85df7a7b8 Rajan Vaja 2020-04-24 426 static inline int zynqmp_pm_get_pll_frac_data(u32 clk_id, u32 *data)
426c8d85df7a7b8 Rajan Vaja 2020-04-24 427 {
426c8d85df7a7b8 Rajan Vaja 2020-04-24 428 return -ENODEV;
426c8d85df7a7b8 Rajan Vaja 2020-04-24 429 }
426c8d85df7a7b8 Rajan Vaja 2020-04-24 430 static inline int zynqmp_pm_set_sd_tapdelay(u32 node_id, u32 type, u32 value)
426c8d85df7a7b8 Rajan Vaja 2020-04-24 431 {
426c8d85df7a7b8 Rajan Vaja 2020-04-24 432 return -ENODEV;
426c8d85df7a7b8 Rajan Vaja 2020-04-24 433 }
426c8d85df7a7b8 Rajan Vaja 2020-04-24 434 static inline int zynqmp_pm_sd_dll_reset(u32 node_id, u32 type)
426c8d85df7a7b8 Rajan Vaja 2020-04-24 435 {
426c8d85df7a7b8 Rajan Vaja 2020-04-24 436 return -ENODEV;
426c8d85df7a7b8 Rajan Vaja 2020-04-24 437 }
cf23ec353146237 Rajan Vaja 2020-04-24 438 static inline int zynqmp_pm_reset_assert(const enum zynqmp_pm_reset reset,
cf23ec353146237 Rajan Vaja 2020-04-24 439 const enum zynqmp_pm_reset_action assert_flag)
cf23ec353146237 Rajan Vaja 2020-04-24 440 {
cf23ec353146237 Rajan Vaja 2020-04-24 441 return -ENODEV;
cf23ec353146237 Rajan Vaja 2020-04-24 442 }
1b413581fe26404 Rajan Vaja 2020-04-24 443 static inline int zynqmp_pm_reset_get_status(const enum zynqmp_pm_reset reset,
1b413581fe26404 Rajan Vaja 2020-04-24 444 u32 *status)
1b413581fe26404 Rajan Vaja 2020-04-24 445 {
1b413581fe26404 Rajan Vaja 2020-04-24 446 return -ENODEV;
1b413581fe26404 Rajan Vaja 2020-04-24 447 }
9474da950d1e39f Rajan Vaja 2020-04-24 448 static inline int zynqmp_pm_init_finalize(void)
9474da950d1e39f Rajan Vaja 2020-04-24 449 {
9474da950d1e39f Rajan Vaja 2020-04-24 450 return -ENODEV;
9474da950d1e39f Rajan Vaja 2020-04-24 451 }
951d0a97e41caff Rajan Vaja 2020-04-24 452 static inline int zynqmp_pm_set_suspend_mode(u32 mode)
951d0a97e41caff Rajan Vaja 2020-04-24 453 {
951d0a97e41caff Rajan Vaja 2020-04-24 454 return -ENODEV;
951d0a97e41caff Rajan Vaja 2020-04-24 455 }
bf8b27ed2324b51 Rajan Vaja 2020-04-24 456 static inline int zynqmp_pm_request_node(const u32 node, const u32 capabilities,
bf8b27ed2324b51 Rajan Vaja 2020-04-24 457 const u32 qos,
bf8b27ed2324b51 Rajan Vaja 2020-04-24 458 const enum zynqmp_pm_request_ack ack)
bf8b27ed2324b51 Rajan Vaja 2020-04-24 459 {
bf8b27ed2324b51 Rajan Vaja 2020-04-24 460 return -ENODEV;
bf8b27ed2324b51 Rajan Vaja 2020-04-24 461 }
07fb1a4619fcb35 Rajan Vaja 2020-04-24 462 static inline int zynqmp_pm_release_node(const u32 node)
07fb1a4619fcb35 Rajan Vaja 2020-04-24 463 {
07fb1a4619fcb35 Rajan Vaja 2020-04-24 464 return -ENODEV;
07fb1a4619fcb35 Rajan Vaja 2020-04-24 465 }
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 466 static inline int zynqmp_pm_set_requirement(const u32 node,
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 467 const u32 capabilities,
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 468 const u32 qos,
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 469 const enum zynqmp_pm_request_ack ack)
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 470 {
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 471 return -ENODEV;
cbbbda71fe37fe7 Rajan Vaja 2020-04-24 472 }
bc86f9c546160af Rajan Vaja 2020-04-24 473 static inline int zynqmp_pm_aes_engine(const u64 address, u32 *out)
bc86f9c546160af Rajan Vaja 2020-04-24 474 {
bc86f9c546160af Rajan Vaja 2020-04-24 475 return -ENODEV;
bc86f9c546160af Rajan Vaja 2020-04-24 476 }
4db8180ffe7c07b Rajan Vaja 2020-04-24 477 static inline int zynqmp_pm_fpga_load(const u64 address, const u32 size,
4db8180ffe7c07b Rajan Vaja 2020-04-24 478 const u32 flags)
4db8180ffe7c07b Rajan Vaja 2020-04-24 479 {
4db8180ffe7c07b Rajan Vaja 2020-04-24 480 return -ENODEV;
4db8180ffe7c07b Rajan Vaja 2020-04-24 481 }
4db8180ffe7c07b Rajan Vaja 2020-04-24 482 static inline int zynqmp_pm_fpga_get_status(u32 *value)
4db8180ffe7c07b Rajan Vaja 2020-04-24 483 {
4db8180ffe7c07b Rajan Vaja 2020-04-24 484 return -ENODEV;
4db8180ffe7c07b Rajan Vaja 2020-04-24 485 }
4f680b72ea07a3e Rajan Vaja 2020-04-24 486 static inline int zynqmp_pm_write_ggs(u32 index, u32 value)
4f680b72ea07a3e Rajan Vaja 2020-04-24 487 {
4f680b72ea07a3e Rajan Vaja 2020-04-24 488 return -ENODEV;
4f680b72ea07a3e Rajan Vaja 2020-04-24 489 }
4f680b72ea07a3e Rajan Vaja 2020-04-24 490 static inline int zynqmp_pm_read_ggs(u32 index, u32 *value)
4f680b72ea07a3e Rajan Vaja 2020-04-24 491 {
4f680b72ea07a3e Rajan Vaja 2020-04-24 492 return -ENODEV;
4f680b72ea07a3e Rajan Vaja 2020-04-24 493 }
4f680b72ea07a3e Rajan Vaja 2020-04-24 494 static inline int zynqmp_pm_write_pggs(u32 index, u32 value)
4f680b72ea07a3e Rajan Vaja 2020-04-24 495 {
4f680b72ea07a3e Rajan Vaja 2020-04-24 496 return -ENODEV;
4f680b72ea07a3e Rajan Vaja 2020-04-24 497 }
4f680b72ea07a3e Rajan Vaja 2020-04-24 498 static inline int zynqmp_pm_read_pggs(u32 index, u32 *value)
4f680b72ea07a3e Rajan Vaja 2020-04-24 499 {
4f680b72ea07a3e Rajan Vaja 2020-04-24 500 return -ENODEV;
4f680b72ea07a3e Rajan Vaja 2020-04-24 501 }
fdd2ed88ca97137 Rajan Vaja 2020-04-24 502 static inline int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype)
fdd2ed88ca97137 Rajan Vaja 2020-04-24 503 {
fdd2ed88ca97137 Rajan Vaja 2020-04-24 504 return -ENODEV;
fdd2ed88ca97137 Rajan Vaja 2020-04-24 505 }
a2cc220a9a9227b Rajan Vaja 2020-04-24 506 static inline int zynqmp_pm_set_boot_health_status(u32 value)
a2cc220a9a9227b Rajan Vaja 2020-04-24 507 {
a2cc220a9a9227b Rajan Vaja 2020-04-24 508 return -ENODEV;
a2cc220a9a9227b Rajan Vaja 2020-04-24 509 }
76582671eb5d006 Rajan Vaja 2018-09-12 510 #endif
76582671eb5d006 Rajan Vaja 2018-09-12 511
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [v4,2/3] PCI: mediatek: Add new generation controller support
by kernel test robot
Hi Jianjun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on v5.10-rc4 next-20201118]
[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/Jianjun-Wang/PCI-mediatek-Add-ne...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/4b8f2b90a9127b0c70b6949026559172a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jianjun-Wang/PCI-mediatek-Add-new-generation-controller-support/20201118-163418
git checkout 4b8f2b90a9127b0c70b6949026559172a2f5e707
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
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 include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/linux/clk.h:13,
from drivers/pci/controller/pcie-mediatek-gen3.c:9:
drivers/pci/controller/pcie-mediatek-gen3.c: In function 'mtk_pcie_startup_port':
>> drivers/pci/controller/pcie-mediatek-gen3.c:304:22: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call'
129 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call'
161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:23: note: in expansion of macro 'dev_fmt'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/pci/controller/pcie-mediatek-gen3.c:304:3: note: in expansion of macro 'dev_dbg'
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ^~~~~~~
drivers/pci/controller/pcie-mediatek-gen3.c:304:63: note: format string is defined here
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ~~~~^
| |
| long long unsigned int
| %#x
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/linux/clk.h:13,
from drivers/pci/controller/pcie-mediatek-gen3.c:9:
drivers/pci/controller/pcie-mediatek-gen3.c:304:22: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call'
129 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call'
161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:23: note: in expansion of macro 'dev_fmt'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/pci/controller/pcie-mediatek-gen3.c:304:3: note: in expansion of macro 'dev_dbg'
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ^~~~~~~
drivers/pci/controller/pcie-mediatek-gen3.c:304:81: note: format string is defined here
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ~~~~^
| |
| long long unsigned int
| %#x
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/linux/clk.h:13,
from drivers/pci/controller/pcie-mediatek-gen3.c:9:
drivers/pci/controller/pcie-mediatek-gen3.c:304:22: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call'
129 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call'
161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:23: note: in expansion of macro 'dev_fmt'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/pci/controller/pcie-mediatek-gen3.c:304:3: note: in expansion of macro 'dev_dbg'
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ^~~~~~~
drivers/pci/controller/pcie-mediatek-gen3.c:304:95: note: format string is defined here
304 | dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
| ~~~~^
| |
| long long unsigned int
| %#x
vim +304 drivers/pci/controller/pcie-mediatek-gen3.c
241
242 static int mtk_pcie_startup_port(struct mtk_pcie_port *port)
243 {
244 struct resource_entry *entry;
245 struct pci_host_bridge *host = pci_host_bridge_from_priv(port);
246 unsigned int table_index = 0;
247 int err;
248 u32 val;
249
250 /* Set as RC mode */
251 val = readl(port->base + PCIE_SETTING_REG);
252 val |= PCIE_RC_MODE;
253 writel(val, port->base + PCIE_SETTING_REG);
254
255 /* Set class code */
256 val = readl(port->base + PCIE_PCI_IDS_1);
257 val &= ~GENMASK(31, 8);
258 val |= PCI_CLASS(PCI_CLASS_BRIDGE_PCI << 8);
259 writel(val, port->base + PCIE_PCI_IDS_1);
260
261 /* Assert all reset signals */
262 val = readl(port->base + PCIE_RST_CTRL_REG);
263 val |= PCIE_MAC_RSTB | PCIE_PHY_RSTB | PCIE_BRG_RSTB | PCIE_PE_RSTB;
264 writel(val, port->base + PCIE_RST_CTRL_REG);
265
266 /* De-assert reset signals*/
267 val &= ~(PCIE_MAC_RSTB | PCIE_PHY_RSTB | PCIE_BRG_RSTB);
268 writel(val, port->base + PCIE_RST_CTRL_REG);
269
270 /* Delay 100ms to wait the reference clocks become stable */
271 usleep_range(100 * 1000, 120 * 1000);
272
273 /* De-assert pe reset*/
274 val &= ~PCIE_PE_RSTB;
275 writel(val, port->base + PCIE_RST_CTRL_REG);
276
277 /* Check if the link is up or not */
278 err = readl_poll_timeout(port->base + PCIE_LINK_STATUS_REG, val,
279 !!(val & PCIE_PORT_LINKUP), 20,
280 50 * USEC_PER_MSEC);
281 if (err) {
282 val = readl(port->base + PCIE_LTSSM_STATUS_REG);
283 dev_dbg(port->dev, "ltssm reg val: %#x\n", val);
284 return err;
285 }
286
287 /* Set PCIe translation windows */
288 resource_list_for_each_entry(entry, &host->windows) {
289 unsigned long type = resource_type(entry->res);
290 struct resource *res = NULL;
291 resource_size_t cpu_addr;
292 resource_size_t pci_addr;
293
294 if (!(type & (IORESOURCE_MEM | IORESOURCE_IO)))
295 continue;
296
297 res = entry->res;
298 cpu_addr = res->start;
299 pci_addr = res->start - entry->offset;
300 mtk_pcie_set_trans_table(port->base + PCIE_TRANS_TABLE_BASE_REG,
301 cpu_addr, pci_addr, resource_size(res),
302 table_index);
303
> 304 dev_dbg(port->dev, "Set %s trans window[%d]: cpu_addr = %#llx, pci_addr = %#llx, size = %#llx\n",
305 (!!(type & IORESOURCE_MEM) ? "MEM" : "IO"), table_index,
306 cpu_addr, pci_addr, resource_size(res));
307
308 table_index++;
309 }
310
311 return 0;
312 }
313
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-next:master 4229/6773] pwm-hibvt.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2052923327794192c5d884623b5ee5fec1867bda
commit: a60a8beb0d6c222ad086467ecdd69a821f53f338 [4229/6773] pwm: hibvt: Convert to devm_platform_ioremap_resource()
config: s390-randconfig-r033-20201117 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a60a8beb0d6c222ad086467ecdd69a821f53f338
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390x-linux-gnu-ld: drivers/irqchip/irq-renesas-intc-irqpin.o: in function `intc_irqpin_probe':
irq-renesas-intc-irqpin.c:(.text+0x1f2): undefined reference to `devm_ioremap'
s390x-linux-gnu-ld: drivers/irqchip/irq-renesas-irqc.o: in function `irqc_probe':
irq-renesas-irqc.c:(.text+0xd8): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/irqchip/irq-imx-intmux.o: in function `imx_intmux_probe':
irq-imx-intmux.c:(.text+0xbe): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/phy/hisilicon/phy-histb-combphy.o: in function `histb_combphy_probe':
phy-histb-combphy.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/phy/st/phy-stm32-usbphyc.o: in function `stm32_usbphyc_probe':
phy-stm32-usbphyc.c:(.text+0x66): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-bcm-iproc.o: in function `iproc_pwmc_probe':
pwm-bcm-iproc.c:(.text+0x82): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-hibvt.o: in function `hibvt_pwm_probe':
>> pwm-hibvt.c:(.text+0xc6): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-pxa.o: in function `pwm_probe':
pwm-pxa.c:(.text+0xcc): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-tegra.o: in function `tegra_pwm_probe':
pwm-tegra.c:(.text+0x54): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-tiecap.o: in function `ecap_pwm_probe':
pwm-tiecap.c:(.text+0xf0): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-tiehrpwm.o:pwm-tiehrpwm.c:(.text+0xf2): more undefined references to `devm_platform_ioremap_resource' follow
s390x-linux-gnu-ld: drivers/clk/clk-fsl-sai.o: in function `fsl_sai_clk_probe':
clk-fsl-sai.c:(.text+0x60): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/clk-gemini.o: in function `gemini_clk_probe':
clk-gemini.c:(.text+0x66): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/clk-plldig.o: in function `plldig_clk_probe':
clk-plldig.c:(.text+0x48): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/actions/owl-common.o: in function `owl_clk_regmap_init':
owl-common.c:(.text+0x3e): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6765.o: in function `clk_mt6765_apmixed_probe':
clk-mt6765.c:(.text+0x5c): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6765.o: in function `clk_mt6765_top_probe':
clk-mt6765.c:(.text+0x19c): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6765.o: in function `clk_mt6765_ifr_probe':
clk-mt6765.c:(.text+0x2dc): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6779.o: in function `clk_mt6779_top_probe':
clk-mt6779.c:(.text+0xc6): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2701.o: in function `mtk_topckgen_init':
clk-mt2701.c:(.text+0x5c): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2701.o: in function `mtk_pericfg_init':
clk-mt2701.c:(.text+0x2dc): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2712.o: in function `clk_mt2712_top_probe':
clk-mt2712.c:(.text+0xa6): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2712.o: in function `clk_mt2712_mcu_probe':
clk-mt2712.c:(.text+0x320): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt7629.o: in function `mtk_topckgen_init':
clk-mt7629.c:(.text+0x1e0): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt7629.o: in function `mtk_pericfg_init':
clk-mt7629.c:(.text+0x346): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sifive/fu540-prci.o: in function `sifive_fu540_prci_probe':
fu540-prci.c:(.text+0x8a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sprd/common.o: in function `sprd_clk_regmap_init':
common.c:(.text+0x28): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun50i-a100.o: in function `sun50i_a100_ccu_probe':
ccu-sun50i-a100.c:(.text+0x24): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun50i-a100-r.o: in function `sun50i_a100_r_ccu_probe':
ccu-sun50i-a100-r.c:(.text+0x24): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun8i-a83t.o: in function `sun8i_a83t_ccu_probe':
ccu-sun8i-a83t.c:(.text+0x36): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun8i-r40.o: in function `sun8i_r40_ccu_probe':
ccu-sun8i-r40.c:(.text+0x3a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun9i-a80.o: in function `sun9i_a80_ccu_probe':
ccu-sun9i-a80.c:(.text+0x36): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun9i-a80-de.o: in function `sun9i_a80_de_clk_probe':
ccu-sun9i-a80-de.c:(.text+0x3a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.o: in function `sun9i_a80_usb_clk_probe':
ccu-sun9i-a80-usb.c:(.text+0x3a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/soc/amlogic/meson-clk-measure.o:meson-clk-measure.c:(.text+0x8e): more undefined references to `devm_ioremap_resource' follow
s390x-linux-gnu-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0x48): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/reset/reset-qcom-pdc.o: in function `qcom_pdc_reset_probe':
reset-qcom-pdc.c:(.text+0x5a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0x49e): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x2d0): undefined reference to `devm_ioremap'
s390x-linux-gnu-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_probe':
sun4i-ps2.c:(.text+0xca): undefined reference to `ioremap'
s390x-linux-gnu-ld: sun4i-ps2.c:(.text+0x2f2): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_remove':
sun4i-ps2.c:(.text+0x38a): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/power/reset/ocelot-reset.o: in function `ocelot_reset_probe':
ocelot-reset.c:(.text+0x5a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/thermal/broadcom/sr-thermal.o: in function `sr_thermal_probe':
sr-thermal.c:(.text+0x74): undefined reference to `devm_memremap'
s390x-linux-gnu-ld: drivers/thermal/zx2967_thermal.o: in function `zx2967_thermal_probe':
zx2967_thermal.c:(.text+0x5a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/s3c2410_wdt.o: in function `s3c2410wdt_probe':
s3c2410_wdt.c:(.text+0xe2): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/imx2_wdt.o: in function `imx2_wdt_probe':
imx2_wdt.c:(.init.text+0x6e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/moxart_wdt.o: in function `moxart_wdt_probe':
moxart_wdt.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/sirfsoc_wdt.o: in function `sirfsoc_wdt_probe':
sirfsoc_wdt.c:(.text+0x24): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/bcm_kona_wdt.o: in function `bcm_kona_wdt_probe':
bcm_kona_wdt.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/renesas_wdt.o:renesas_wdt.c:(.text+0x48): more undefined references to `devm_platform_ioremap_resource' follow
s390x-linux-gnu-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
atmel-aes.c:(.text+0x16a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/crypto/atmel-sha.o: in function `atmel_sha_probe':
atmel-sha.c:(.text+0x3a8a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0x16a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x48): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x166): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x28a): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/clocksource/ingenic-ost.o: in function `ingenic_ost_probe':
ingenic-ost.c:(.init.text+0x86): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/mailbox/mtk-cmdq-mailbox.o: in function `cmdq_probe':
mtk-cmdq-mailbox.c:(.text+0x7a): undefined reference to `devm_ioremap_resource'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
drivers/net/ethernet/renesas/sh_eth.c:885:37: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0fa8ee0d9ab95c9350b8b84574824d9a384a9f7d
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation)
date: 3 months ago
config: ia64-randconfig-s031-20201118 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8f28ca6bd8211214faf717677bbffe375c2a6072
# 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=ia64
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/net/ethernet/renesas/sh_eth.c:885:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@
>> drivers/net/ethernet/renesas/sh_eth.c:885:37: sparse: expected void const [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:885:37: sparse: got void *
drivers/net/ethernet/renesas/sh_eth.c:886:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@
drivers/net/ethernet/renesas/sh_eth.c:886:37: sparse: expected void const [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:886:37: sparse: got void *
drivers/net/ethernet/renesas/sh_eth.c:893:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/net/ethernet/renesas/sh_eth.c:893:37: sparse: expected void [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:893:37: sparse: got void *
drivers/net/ethernet/renesas/sh_eth.c:894:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/net/ethernet/renesas/sh_eth.c:894:37: sparse: expected void [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:894:37: sparse: got void *
>> drivers/net/ethernet/renesas/sh_eth.c:1167:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void *addr @@
drivers/net/ethernet/renesas/sh_eth.c:1167:31: sparse: expected void const [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:1167:31: sparse: got void *addr
drivers/net/ethernet/renesas/sh_eth.c:1172:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void *addr @@
drivers/net/ethernet/renesas/sh_eth.c:1172:31: sparse: expected void [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:1172:31: sparse: got void *addr
drivers/net/ethernet/renesas/sh_eth.c:1195:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void *addr @@
drivers/net/ethernet/renesas/sh_eth.c:1195:33: sparse: expected void const [noderef] __iomem *
drivers/net/ethernet/renesas/sh_eth.c:1195:33: sparse: got void *addr
drivers/net/ethernet/renesas/sh_eth.c:1225:43: sparse: sparse: restricted __le32 degrades to integer
drivers/net/ethernet/renesas/sh_eth.c:1230:17: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1235:25: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1235:25: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1243:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] status @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1243:32: sparse: expected unsigned int [usertype] status
drivers/net/ethernet/renesas/sh_eth.c:1243:32: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1245:40: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:1245:40: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:1245:40: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1249:49: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1266:33: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1342:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1342:29: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/renesas/sh_eth.c:1342:29: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1343:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1343:30: sparse: expected unsigned int [usertype] addr
drivers/net/ethernet/renesas/sh_eth.c:1343:30: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1344:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] status @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1344:32: sparse: expected unsigned int [usertype] status
drivers/net/ethernet/renesas/sh_eth.c:1344:32: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1358:32: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:1358:32: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:1358:32: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1366:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] status @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1366:32: sparse: expected unsigned int [usertype] status
drivers/net/ethernet/renesas/sh_eth.c:1366:32: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1367:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1367:29: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/renesas/sh_eth.c:1367:29: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1376:24: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:1376:24: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:1376:24: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1528:40: sparse: sparse: invalid assignment: &=
drivers/net/ethernet/renesas/sh_eth.c:1528:40: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:1528:40: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1585:35: sparse: sparse: restricted __le32 degrades to integer
drivers/net/ethernet/renesas/sh_eth.c:1588:31: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1589:27: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1627:36: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1658:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1658:29: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/renesas/sh_eth.c:1658:29: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1674:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:1674:38: sparse: expected unsigned int [usertype] addr
drivers/net/ethernet/renesas/sh_eth.c:1674:38: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:1678:40: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:1678:40: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:1678:40: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:1681:40: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:1681:40: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:1681:40: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:2458:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] status @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:2458:32: sparse: expected unsigned int [usertype] status
drivers/net/ethernet/renesas/sh_eth.c:2458:32: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:2459:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:2459:30: sparse: expected unsigned int [usertype] addr
drivers/net/ethernet/renesas/sh_eth.c:2459:30: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:2510:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:2510:22: sparse: expected unsigned int [usertype] addr
drivers/net/ethernet/renesas/sh_eth.c:2510:22: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:2511:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] len @@ got restricted __le32 [usertype] @@
drivers/net/ethernet/renesas/sh_eth.c:2511:22: sparse: expected unsigned int [usertype] len
drivers/net/ethernet/renesas/sh_eth.c:2511:22: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/renesas/sh_eth.c:2515:32: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:2515:32: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:2515:32: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:2517:32: sparse: sparse: invalid assignment: |=
drivers/net/ethernet/renesas/sh_eth.c:2517:32: sparse: left side has type unsigned int
drivers/net/ethernet/renesas/sh_eth.c:2517:32: sparse: right side has type restricted __le32
drivers/net/ethernet/renesas/sh_eth.c:3042:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/net/ethernet/renesas/sh_eth.c:3042:23: sparse: expected void *addr
drivers/net/ethernet/renesas/sh_eth.c:3042:23: sparse: got void [noderef] __iomem *
vim +885 drivers/net/ethernet/renesas/sh_eth.c
65ac8851490ec97 drivers/net/sh_eth.c Yoshihiro Shimoda 2009-05-24 874
e403d295817cf9f drivers/net/ethernet/renesas/sh_eth.c David S. Miller 2013-06-07 875 #define SH_GIGA_ETH_BASE 0xfee00000UL
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 876 #define GIGA_MALR(port) (SH_GIGA_ETH_BASE + 0x800 * (port) + 0x05c8)
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 877 #define GIGA_MAHR(port) (SH_GIGA_ETH_BASE + 0x800 * (port) + 0x05c0)
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 878 static void sh_eth_chip_reset_giga(struct net_device *ndev)
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 879 {
0799c2d6f42db2b drivers/net/ethernet/renesas/sh_eth.c Geert Uytterhoeven 2015-01-15 880 u32 mahr[2], malr[2];
7927092253da598 drivers/net/ethernet/renesas/sh_eth.c Sergei Shtylyov 2016-05-08 881 int i;
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 882
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 883 /* save MAHR and MALR */
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 884 for (i = 0; i < 2; i++) {
ae70644df780c0e drivers/net/ethernet/renesas/sh_eth.c Yoshihiro Shimoda 2011-09-27 @885 malr[i] = ioread32((void *)GIGA_MALR(i));
ae70644df780c0e drivers/net/ethernet/renesas/sh_eth.c Yoshihiro Shimoda 2011-09-27 886 mahr[i] = ioread32((void *)GIGA_MAHR(i));
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 887 }
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 888
c66b2581123cd15 drivers/net/ethernet/renesas/sh_eth.c Sergei Shtylyov 2016-05-07 889 sh_eth_chip_reset(ndev);
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 890
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 891 /* restore MAHR and MALR */
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 892 for (i = 0; i < 2; i++) {
ae70644df780c0e drivers/net/ethernet/renesas/sh_eth.c Yoshihiro Shimoda 2011-09-27 893 iowrite32(malr[i], (void *)GIGA_MALR(i));
ae70644df780c0e drivers/net/ethernet/renesas/sh_eth.c Yoshihiro Shimoda 2011-09-27 894 iowrite32(mahr[i], (void *)GIGA_MAHR(i));
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 895 }
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 896 }
8fcd496151b4354 drivers/net/sh_eth.c Yoshihiro Shimoda 2011-03-07 897
:::::: The code at line 885 was first introduced by commit
:::::: ae70644df780c0e87f1705fda932e7cb1bdb2074 net: sh_eth: use ioremap()
:::::: TO: Yoshihiro Shimoda <yoshihiro.shimoda.uh(a)renesas.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months