[fscrypt:fscrypt-dio-support 4/15] block/blk-crypto-fallback.c:225:28: error: use of undeclared identifier 'len'
by kernel test robot
tree: https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git fscrypt-dio-support
head: 7bf5b39672a543edac8dcce75e57758563a7ca6b
commit: 3ec1c215d23bd5c4381368a60deb057164a84230 [4/15] block: respect blk_crypto_bio_sectors_alignment() in blk-crypto-fallback
config: s390-randconfig-r001-20210211 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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/fs/fscrypt/fscrypt.git/commit/?id=3ec1c215...
git remote add fscrypt https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git
git fetch --no-tags fscrypt fscrypt-dio-support
git checkout 3ec1c215d23bd5c4381368a60deb057164a84230
# 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:19:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
^
In file included from block/blk-crypto-fallback.c:13:
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:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from block/blk-crypto-fallback.c:13:
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 block/blk-crypto-fallback.c:13:
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 block/blk-crypto-fallback.c:13:
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 block/blk-crypto-fallback.c:13:
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);
~~~~~~~~~~ ^
>> block/blk-crypto-fallback.c:225:28: error: use of undeclared identifier 'len'
num_sectors = round_down(len,
^
>> block/blk-crypto-fallback.c:225:28: error: use of undeclared identifier 'len'
20 warnings and 2 errors generated.
vim +/len +225 block/blk-crypto-fallback.c
208
209 static bool blk_crypto_split_bio_if_needed(struct bio **bio_ptr)
210 {
211 struct bio *bio = *bio_ptr;
212 unsigned int i = 0;
213 unsigned int num_sectors = 0;
214 struct bio_vec bv;
215 struct bvec_iter iter;
216
217 bio_for_each_segment(bv, bio, iter) {
218 num_sectors += bv.bv_len >> SECTOR_SHIFT;
219 if (++i == BIO_MAX_PAGES)
220 break;
221 }
222 if (num_sectors < bio_sectors(bio)) {
223 struct bio *split_bio;
224
> 225 num_sectors = round_down(len,
226 blk_crypto_bio_sectors_alignment(bio));
227 split_bio = bio_split(bio, num_sectors, GFP_NOIO, NULL);
228 if (!split_bio) {
229 bio->bi_status = BLK_STS_RESOURCE;
230 return false;
231 }
232 bio_chain(split_bio, bio);
233 submit_bio_noacct(bio);
234 *bio_ptr = split_bio;
235 }
236
237 return true;
238 }
239
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 10174/10581] include/linux/kern_levels.h:5:18: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 671176b0016c80b3943cb5387312c886aba3308d
commit: 1d881c0431850a197c9164c4b8009b48481b9263 [10174/10581] mm: cma: print region name on failure
config: microblaze-randconfig-r021-20210212 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/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 1d881c0431850a197c9164c4b8009b48481b9263
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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:7,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from ./arch/microblaze/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/memblock.h:13,
from mm/cma.c:24:
mm/cma.c: In function 'cma_alloc':
>> include/linux/kern_levels.h:5:18: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:343:9: note: in expansion of macro 'KERN_ERR'
343 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
mm/cma.c:503:3: note: in expansion of macro 'pr_err'
503 | pr_err("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n",
| ^~~~~~
mm/cma.c:503:45: note: format string is defined here
503 | pr_err("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n",
| ~~^
| |
| unsigned int
| %lu
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
ll_temac_main.c:undefined reference to `devm_platform_ioremap_resource_byname'
by kernel test robot
Hi Wang,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: bd69058f50d5ffa659423bcfa6fe6280ce9c760a net: ll_temac: Use devm_platform_ioremap_resource_byname()
date: 7 months ago
config: s390-randconfig-p001-20210212 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout bd69058f50d5ffa659423bcfa6fe6280ce9c760a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
coherent.c:(.text+0x410): undefined reference to `memremap'
s390-linux-ld: coherent.c:(.text+0x4e8): undefined reference to `memunmap'
s390-linux-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
coherent.c:(.text+0x64e): undefined reference to `memunmap'
s390-linux-ld: drivers/irqchip/irq-al-fic.o: in function `al_fic_init_dt':
irq-al-fic.c:(.init.text+0x4e): undefined reference to `of_iomap'
s390-linux-ld: irq-al-fic.c:(.init.text+0x2f2): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_detach':
main.c:(.text+0xa4): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0xf0): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_probe':
main.c:(.text+0x2cc): undefined reference to `ioremap'
s390-linux-ld: main.c:(.text+0x388): undefined reference to `ioremap'
s390-linux-ld: main.c:(.text+0x3dc): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x420): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_attach':
main.c:(.text+0x6e2): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x728): undefined reference to `iounmap'
s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
xillybus_of.c:(.text+0x196): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/net/arcnet/com90xx.o: in function `com90xx_exit':
com90xx.c:(.exit.text+0x62): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/com90xx.o: in function `check_mirror':
com90xx.c:(.init.text+0x60): undefined reference to `ioremap'
s390-linux-ld: com90xx.c:(.init.text+0x86): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/com90xx.o: in function `com90xx_probe':
com90xx.c:(.init.text+0x798): undefined reference to `ioremap'
s390-linux-ld: com90xx.c:(.init.text+0x936): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0xdcc): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0xec8): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0xffc): undefined reference to `ioremap'
s390-linux-ld: com90xx.c:(.init.text+0x10d6): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0x12b6): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_exit':
arc-rimi.c:(.exit.text+0x3e): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_init':
arc-rimi.c:(.init.text+0x264): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x2ec): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x46c): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x4fc): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x5d6): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `check_mirror':
arc-rimi.c:(.text.unlikely+0x60): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.text.unlikely+0x86): undefined reference to `iounmap'
s390-linux-ld: drivers/net/ethernet/altera/altera_tse_main.o: in function `request_and_map':
altera_tse_main.c:(.text+0x69a): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/net/ethernet/xilinx/ll_temac_main.o: in function `temac_probe':
>> ll_temac_main.c:(.text+0x1a74): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: ll_temac_main.c:(.text+0x1bf4): undefined reference to `devm_of_iomap'
s390-linux-ld: ll_temac_main.c:(.text+0x1d08): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/net/ethernet/xilinx/ll_temac_mdio.o: in function `temac_mdio_setup':
ll_temac_mdio.c:(.text+0x292): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/net/ethernet/xilinx/xilinx_axienet_main.o: in function `axienet_probe':
xilinx_axienet_main.c:(.text+0xc44): undefined reference to `devm_ioremap_resource'
s390-linux-ld: xilinx_axienet_main.c:(.text+0xe58): undefined reference to `of_address_to_resource'
s390-linux-ld: xilinx_axienet_main.c:(.text+0xe90): undefined reference to `devm_ioremap_resource'
s390-linux-ld: xilinx_axienet_main.c:(.text+0xefa): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0x3ae): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x3e8): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x416): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x428): undefined reference to `ioremap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0xefa): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/apbps2.o: in function `apbps2_of_probe':
apbps2.c:(.text+0x29e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/touchscreen/imx6ul_tsc.o: in function `imx6ul_tsc_probe':
imx6ul_tsc.c:(.text+0x25e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: imx6ul_tsc.c:(.text+0x29a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x4e): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x33a): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x426): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-microchip-pit64b.o: in function `mchp_pit64b_dt_init_timer':
timer-microchip-pit64b.c:(.init.text+0xa0): undefined reference to `of_iomap'
s390-linux-ld: timer-microchip-pit64b.c:(.init.text+0x526): undefined reference to `iounmap'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[peterz-queue:sched/cleanup 54/54] kernel/rcu/tree.c:1380:5: error: implicit declaration of function 'irq_work_queue_remote'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/cleanup
head: b1c1a5a4deb824bd5612b40a0a1fffb805dd9799
commit: b1c1a5a4deb824bd5612b40a0a1fffb805dd9799 [54/54] rcu/tree: Use irq_work_queue_remote()
config: x86_64-randconfig-r002-20210211 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/cleanup
git checkout b1c1a5a4deb824bd5612b40a0a1fffb805dd9799
# 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 >>):
>> kernel/rcu/tree.c:1380:5: error: implicit declaration of function 'irq_work_queue_remote' [-Werror,-Wimplicit-function-declaration]
irq_work_queue_remote(rdp->cpu, &rdp->rcu_iw);
^
kernel/rcu/tree.c:1380:5: note: did you mean 'irq_work_queue_on'?
include/linux/irq_work.h:52:6: note: 'irq_work_queue_on' declared here
bool irq_work_queue_on(struct irq_work *work, int cpu);
^
1 error generated.
vim +/irq_work_queue_remote +1380 kernel/rcu/tree.c
1255
1256 /*
1257 * Return true if the specified CPU has passed through a quiescent
1258 * state by virtue of being in or having passed through an dynticks
1259 * idle state since the last call to dyntick_save_progress_counter()
1260 * for this same CPU, or by virtue of having been offline.
1261 */
1262 static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
1263 {
1264 unsigned long jtsq;
1265 bool *rnhqp;
1266 bool *ruqp;
1267 struct rcu_node *rnp = rdp->mynode;
1268
1269 raw_lockdep_assert_held_rcu_node(rnp);
1270
1271 /*
1272 * If the CPU passed through or entered a dynticks idle phase with
1273 * no active irq/NMI handlers, then we can safely pretend that the CPU
1274 * already acknowledged the request to pass through a quiescent
1275 * state. Either way, that CPU cannot possibly be in an RCU
1276 * read-side critical section that started before the beginning
1277 * of the current RCU grace period.
1278 */
1279 if (rcu_dynticks_in_eqs_since(rdp, rdp->dynticks_snap)) {
1280 trace_rcu_fqs(rcu_state.name, rdp->gp_seq, rdp->cpu, TPS("dti"));
1281 rcu_gpnum_ovf(rnp, rdp);
1282 return 1;
1283 }
1284
1285 /*
1286 * Complain if a CPU that is considered to be offline from RCU's
1287 * perspective has not yet reported a quiescent state. After all,
1288 * the offline CPU should have reported a quiescent state during
1289 * the CPU-offline process, or, failing that, by rcu_gp_init()
1290 * if it ran concurrently with either the CPU going offline or the
1291 * last task on a leaf rcu_node structure exiting its RCU read-side
1292 * critical section while all CPUs corresponding to that structure
1293 * are offline. This added warning detects bugs in any of these
1294 * code paths.
1295 *
1296 * The rcu_node structure's ->lock is held here, which excludes
1297 * the relevant portions the CPU-hotplug code, the grace-period
1298 * initialization code, and the rcu_read_unlock() code paths.
1299 *
1300 * For more detail, please refer to the "Hotplug CPU" section
1301 * of RCU's Requirements documentation.
1302 */
1303 if (WARN_ON_ONCE(!(rdp->grpmask & rcu_rnp_online_cpus(rnp)))) {
1304 bool onl;
1305 struct rcu_node *rnp1;
1306
1307 pr_info("%s: grp: %d-%d level: %d ->gp_seq %ld ->completedqs %ld\n",
1308 __func__, rnp->grplo, rnp->grphi, rnp->level,
1309 (long)rnp->gp_seq, (long)rnp->completedqs);
1310 for (rnp1 = rnp; rnp1; rnp1 = rnp1->parent)
1311 pr_info("%s: %d:%d ->qsmask %#lx ->qsmaskinit %#lx ->qsmaskinitnext %#lx ->rcu_gp_init_mask %#lx\n",
1312 __func__, rnp1->grplo, rnp1->grphi, rnp1->qsmask, rnp1->qsmaskinit, rnp1->qsmaskinitnext, rnp1->rcu_gp_init_mask);
1313 onl = !!(rdp->grpmask & rcu_rnp_online_cpus(rnp));
1314 pr_info("%s %d: %c online: %ld(%d) offline: %ld(%d)\n",
1315 __func__, rdp->cpu, ".o"[onl],
1316 (long)rdp->rcu_onl_gp_seq, rdp->rcu_onl_gp_flags,
1317 (long)rdp->rcu_ofl_gp_seq, rdp->rcu_ofl_gp_flags);
1318 return 1; /* Break things loose after complaining. */
1319 }
1320
1321 /*
1322 * A CPU running for an extended time within the kernel can
1323 * delay RCU grace periods: (1) At age jiffies_to_sched_qs,
1324 * set .rcu_urgent_qs, (2) At age 2*jiffies_to_sched_qs, set
1325 * both .rcu_need_heavy_qs and .rcu_urgent_qs. Note that the
1326 * unsynchronized assignments to the per-CPU rcu_need_heavy_qs
1327 * variable are safe because the assignments are repeated if this
1328 * CPU failed to pass through a quiescent state. This code
1329 * also checks .jiffies_resched in case jiffies_to_sched_qs
1330 * is set way high.
1331 */
1332 jtsq = READ_ONCE(jiffies_to_sched_qs);
1333 ruqp = per_cpu_ptr(&rcu_data.rcu_urgent_qs, rdp->cpu);
1334 rnhqp = &per_cpu(rcu_data.rcu_need_heavy_qs, rdp->cpu);
1335 if (!READ_ONCE(*rnhqp) &&
1336 (time_after(jiffies, rcu_state.gp_start + jtsq * 2) ||
1337 time_after(jiffies, rcu_state.jiffies_resched) ||
1338 rcu_state.cbovld)) {
1339 WRITE_ONCE(*rnhqp, true);
1340 /* Store rcu_need_heavy_qs before rcu_urgent_qs. */
1341 smp_store_release(ruqp, true);
1342 } else if (time_after(jiffies, rcu_state.gp_start + jtsq)) {
1343 WRITE_ONCE(*ruqp, true);
1344 }
1345
1346 /*
1347 * NO_HZ_FULL CPUs can run in-kernel without rcu_sched_clock_irq!
1348 * The above code handles this, but only for straight cond_resched().
1349 * And some in-kernel loops check need_resched() before calling
1350 * cond_resched(), which defeats the above code for CPUs that are
1351 * running in-kernel with scheduling-clock interrupts disabled.
1352 * So hit them over the head with the resched_cpu() hammer!
1353 */
1354 if (tick_nohz_full_cpu(rdp->cpu) &&
1355 (time_after(jiffies, READ_ONCE(rdp->last_fqs_resched) + jtsq * 3) ||
1356 rcu_state.cbovld)) {
1357 WRITE_ONCE(*ruqp, true);
1358 resched_cpu(rdp->cpu);
1359 WRITE_ONCE(rdp->last_fqs_resched, jiffies);
1360 }
1361
1362 /*
1363 * If more than halfway to RCU CPU stall-warning time, invoke
1364 * resched_cpu() more frequently to try to loosen things up a bit.
1365 * Also check to see if the CPU is getting hammered with interrupts,
1366 * but only once per grace period, just to keep the IPIs down to
1367 * a dull roar.
1368 */
1369 if (time_after(jiffies, rcu_state.jiffies_resched)) {
1370 if (time_after(jiffies,
1371 READ_ONCE(rdp->last_fqs_resched) + jtsq)) {
1372 resched_cpu(rdp->cpu);
1373 WRITE_ONCE(rdp->last_fqs_resched, jiffies);
1374 }
1375 if (!rdp->rcu_iw_pending && rdp->rcu_iw_gp_seq != rnp->gp_seq &&
1376 (rnp->ffmask & rdp->grpmask)) {
1377 rdp->rcu_iw_gp_seq = rnp->gp_seq;
1378 if (likely(rdp->cpu != smp_processor_id())) {
1379 rdp->rcu_iw_pending = true;
> 1380 irq_work_queue_remote(rdp->cpu, &rdp->rcu_iw);
1381 }
1382 }
1383 }
1384
1385 return 0;
1386 }
1387
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH v4] printk: Userspace format enumeration support
by kernel test robot
Hi Chris,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on jeyu/modules-next]
[also build test ERROR on linux/master soc/for-next openrisc/for-next powerpc/next uml/linux-next asm-generic/master linus/master v5.11-rc7 next-20210211]
[cannot apply to tip/x86/core pmladek/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Chris-Down/printk-Userspace-form...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git modules-next
config: ia64-randconfig-r016-20210209 (attached as .config)
compiler: ia64-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/bff4c8b4b0b9bcc31917d3b0f1a01a757...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Chris-Down/printk-Userspace-format-enumeration-support/20210212-233240
git checkout bff4c8b4b0b9bcc31917d3b0f1a01a7573a1f473
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/ia64/include/asm/bug.h:17,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/printk.h:219:5: error: static declaration of '_printk' follows non-static declaration
219 | int _printk(const char *s, ...)
| ^~~~~~~
In file included from arch/ia64/include/uapi/asm/intrinsics.h:22,
from arch/ia64/include/asm/intrinsics.h:11,
from arch/ia64/include/asm/bitops.h:19,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/ia64/include/asm/bug.h:17,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/ia64/include/uapi/asm/cmpxchg.h:142:14: note: previous declaration of '_printk' was here
142 | extern int _printk(const char *fmt, ...); \
| ^~~~~~~
arch/ia64/include/asm/bitops.h:309:3: note: in expansion of macro 'CMPXCHG_BUGCHECK'
309 | CMPXCHG_BUGCHECK(m);
| ^~~~~~~~~~~~~~~~
--
In file included from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/ia64/include/asm/bug.h:17,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/printk.h:219:5: error: static declaration of '_printk' follows non-static declaration
219 | int _printk(const char *s, ...)
| ^~~~~~~
In file included from arch/ia64/include/uapi/asm/intrinsics.h:22,
from arch/ia64/include/asm/intrinsics.h:11,
from arch/ia64/include/asm/bitops.h:19,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/ia64/include/asm/bug.h:17,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/ia64/include/uapi/asm/cmpxchg.h:142:14: note: previous declaration of '_printk' was here
142 | extern int _printk(const char *fmt, ...); \
| ^~~~~~~
arch/ia64/include/asm/bitops.h:309:3: note: in expansion of macro 'CMPXCHG_BUGCHECK'
309 | CMPXCHG_BUGCHECK(m);
| ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/_printk +219 include/linux/printk.h
201
202 char *log_buf_addr_get(void);
203 u32 log_buf_len_get(void);
204 void log_buf_vmcoreinfo_setup(void);
205 void __init setup_log_buf(int early);
206 __printf(1, 2) void dump_stack_set_arch_desc(const char *fmt, ...);
207 void dump_stack_print_info(const char *log_lvl);
208 void show_regs_print_info(const char *log_lvl);
209 extern asmlinkage void dump_stack(void) __cold;
210 extern void printk_safe_flush(void);
211 extern void printk_safe_flush_on_panic(void);
212 #else
213 static inline __printf(1, 0)
214 int vprintk(const char *s, va_list args)
215 {
216 return 0;
217 }
218 static inline __printf(1, 2) __cold
> 219 int _printk(const char *s, ...)
220 {
221 return 0;
222 }
223 static inline __printf(1, 2) __cold
224 int _printk_deferred(const char *s, ...)
225 {
226 return 0;
227 }
228 static inline int printk_ratelimit(void)
229 {
230 return 0;
231 }
232 static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies,
233 unsigned int interval_msec)
234 {
235 return false;
236 }
237
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices
by kernel test robot
Hi Srinivasan,
I love your patch! Yet something to improve:
[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on wireless-drivers/master net-next/master net/master linus/master sparc-next/master v5.11-rc7 next-20210211]
[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/Srinivasan-Raju/wireless-Initial...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-ne... master
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/5d8fb5ce1f136940c10fd16bc96856d2f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Srinivasan-Raju/wireless-Initial-driver-submission-for-pureLiFi-STA-devices/20210212-195451
git checkout 5d8fb5ce1f136940c10fd16bc96856d2f6ad2741
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 include/linux/kernel.h:10,
from drivers/net/wireless/purelifi/plfxlc/usb.c:6:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/net/wireless/purelifi/plfxlc/usb.c: At top level:
>> drivers/net/wireless/purelifi/plfxlc/usb.c:962:20: error: 'suspend' undeclared here (not in a function)
962 | .suspend = suspend,
| ^~~~~~~
>> drivers/net/wireless/purelifi/plfxlc/usb.c:963:20: error: 'resume' undeclared here (not in a function); did you mean 'resource'?
963 | .resume = resume,
| ^~~~~~
| resource
drivers/net/wireless/purelifi/plfxlc/usb.c:909:29: warning: 'get_purelifi_usb' defined but not used [-Wunused-function]
909 | static struct purelifi_usb *get_purelifi_usb(struct usb_interface *intf)
| ^~~~~~~~~~~~~~~~
vim +/suspend +962 drivers/net/wireless/purelifi/plfxlc/usb.c
954
955 static struct usb_driver driver = {
956 .name = KBUILD_MODNAME,
957 .id_table = usb_ids,
958 .probe = probe,
959 .disconnect = disconnect,
960 .pre_reset = pre_reset,
961 .post_reset = post_reset,
> 962 .suspend = suspend,
> 963 .resume = resume,
964 .disable_hub_initiated_lpm = 1,
965 };
966
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH net-next 2/2] net: mvneta: Implement mqprio support
by kernel test robot
Hi Maxime,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Maxime-Chevallier/net-mvneta-Imp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git e4b62cf7559f2ef9a022de235e5a09a8d7ded520
config: powerpc-randconfig-r023-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# https://github.com/0day-ci/linux/commit/0cfab93df7365f1378834302d2c3b28b4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Maxime-Chevallier/net-mvneta-Implement-basic-MQPrio-support/20210212-231937
git checkout 0cfab93df7365f1378834302d2c3b28b425b64fd
# 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 >>):
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/net/ethernet/marvell/mvneta.c:16:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:64:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/net/ethernet/marvell/mvneta.c:16:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:66:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/net/ethernet/marvell/mvneta.c:16:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:68:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/net/ethernet/marvell/mvneta.c:16:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:70:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/net/ethernet/marvell/mvneta.c:16:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:72:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/net/ethernet/marvell/mvneta.c:4963:12: warning: address of array 'qopt->prio_tc_map' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (qopt->prio_tc_map) {
~~ ~~~~~~^~~~~~~~~~~
7 warnings generated.
vim +4963 drivers/net/ethernet/marvell/mvneta.c
4943
4944 static int mvneta_setup_mqprio(struct net_device *dev,
4945 struct tc_mqprio_qopt *qopt)
4946 {
4947 struct mvneta_port *pp = netdev_priv(dev);
4948 u8 num_tc;
4949 int i;
4950
4951 qopt->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
4952 num_tc = qopt->num_tc;
4953
4954 if (num_tc > rxq_number)
4955 return -EINVAL;
4956
4957 if (!num_tc) {
4958 mvneta_clear_rx_prio_map(pp);
4959 netdev_reset_tc(dev);
4960 return 0;
4961 }
4962
> 4963 if (qopt->prio_tc_map) {
4964 memcpy(pp->prio_tc_map, qopt->prio_tc_map,
4965 sizeof(pp->prio_tc_map));
4966
4967 mvneta_setup_rx_prio_map(pp);
4968
4969 netdev_set_num_tc(dev, qopt->num_tc);
4970 for (i = 0; i < qopt->num_tc; i++)
4971 netdev_set_tc_queue(dev, i, qopt->count[i],
4972 qopt->offset[i]);
4973 }
4974
4975 return 0;
4976 }
4977
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[fscrypt:fscrypt-dio-support 4/15] block/blk-crypto-fallback.c:225:28: error: 'len' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git fscrypt-dio-support
head: 7bf5b39672a543edac8dcce75e57758563a7ca6b
commit: 3ec1c215d23bd5c4381368a60deb057164a84230 [4/15] block: respect blk_crypto_bio_sectors_alignment() in blk-crypto-fallback
config: h8300-randconfig-r003-20210211 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git/commit/?id=3ec1c215...
git remote add fscrypt https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git
git fetch --no-tags fscrypt fscrypt-dio-support
git checkout 3ec1c215d23bd5c4381368a60deb057164a84230
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 include/linux/kernel.h:13,
from include/linux/crypto.h:16,
from include/crypto/skcipher.h:11,
from block/blk-crypto-fallback.c:12:
block/blk-crypto-fallback.c: In function 'blk_crypto_split_bio_if_needed':
>> block/blk-crypto-fallback.c:225:28: error: 'len' undeclared (first use in this function)
225 | num_sectors = round_down(len,
| ^~~
include/linux/math.h:34:28: note: in definition of macro 'round_down'
34 | #define round_down(x, y) ((x) & ~__round_mask(x, y))
| ^
block/blk-crypto-fallback.c:225:28: note: each undeclared identifier is reported only once for each function it appears in
225 | num_sectors = round_down(len,
| ^~~
include/linux/math.h:34:28: note: in definition of macro 'round_down'
34 | #define round_down(x, y) ((x) & ~__round_mask(x, y))
| ^
vim +/len +225 block/blk-crypto-fallback.c
208
209 static bool blk_crypto_split_bio_if_needed(struct bio **bio_ptr)
210 {
211 struct bio *bio = *bio_ptr;
212 unsigned int i = 0;
213 unsigned int num_sectors = 0;
214 struct bio_vec bv;
215 struct bvec_iter iter;
216
217 bio_for_each_segment(bv, bio, iter) {
218 num_sectors += bv.bv_len >> SECTOR_SHIFT;
219 if (++i == BIO_MAX_PAGES)
220 break;
221 }
222 if (num_sectors < bio_sectors(bio)) {
223 struct bio *split_bio;
224
> 225 num_sectors = round_down(len,
226 blk_crypto_bio_sectors_alignment(bio));
227 split_bio = bio_split(bio, num_sectors, GFP_NOIO, NULL);
228 if (!split_bio) {
229 bio->bi_status = BLK_STS_RESOURCE;
230 return false;
231 }
232 bio_chain(split_bio, bio);
233 submit_bio_noacct(bio);
234 *bio_ptr = split_bio;
235 }
236
237 return true;
238 }
239
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 2008/10581] include/linux/unaligned/be_byteshift.h:41:19: error: redefinition of 'get_unaligned_be16'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 671176b0016c80b3943cb5387312c886aba3308d
commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 [2008/10581] iio: magnetometer: Add driver for Yamaha YAS530
config: h8300-allyesconfig (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/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 de8860b1ed4701ea7e6f760f02d79ca6a3b656a1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/iio/magnetometer/yamaha-yas530.c:22:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:93:50: warning: ordered comparison of pointer with null pointer [-Wextra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
include/linux/unaligned/be_byteshift.h: At top level:
>> include/linux/unaligned/be_byteshift.h:41:19: error: redefinition of 'get_unaligned_be16'
41 | static inline u16 get_unaligned_be16(const void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/unaligned.h:26,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from include/asm-generic/uaccess.h:13,
from ./arch/h8300/include/generated/asm/uaccess.h:1,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/iio/magnetometer/yamaha-yas530.c:33:
include/linux/unaligned/be_struct.h:7:19: note: previous definition of 'get_unaligned_be16' was here
7 | static inline u16 get_unaligned_be16(const void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'
46 | static inline u32 get_unaligned_be32(const void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/unaligned.h:26,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from include/asm-generic/uaccess.h:13,
from ./arch/h8300/include/generated/asm/uaccess.h:1,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/iio/magnetometer/yamaha-yas530.c:33:
include/linux/unaligned/be_struct.h:12:19: note: previous definition of 'get_unaligned_be32' was here
12 | static inline u32 get_unaligned_be32(const void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
include/linux/unaligned/be_byteshift.h:51:19: error: redefinition of 'get_unaligned_be64'
51 | static inline u64 get_unaligned_be64(const void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/unaligned.h:26,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from include/asm-generic/uaccess.h:13,
from ./arch/h8300/include/generated/asm/uaccess.h:1,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/iio/magnetometer/yamaha-yas530.c:33:
include/linux/unaligned/be_struct.h:17:19: note: previous definition of 'get_unaligned_be64' was here
17 | static inline u64 get_unaligned_be64(const void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
>> include/linux/unaligned/be_byteshift.h:56:20: error: redefinition of 'put_unaligned_be16'
56 | static inline void put_unaligned_be16(u16 val, void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/unaligned.h:26,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from include/asm-generic/uaccess.h:13,
from ./arch/h8300/include/generated/asm/uaccess.h:1,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/iio/magnetometer/yamaha-yas530.c:33:
include/linux/unaligned/be_struct.h:22:20: note: previous definition of 'put_unaligned_be16' was here
22 | static inline void put_unaligned_be16(u16 val, void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
include/linux/unaligned/be_byteshift.h:61:20: error: redefinition of 'put_unaligned_be32'
61 | static inline void put_unaligned_be32(u32 val, void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/unaligned.h:26,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from include/asm-generic/uaccess.h:13,
from ./arch/h8300/include/generated/asm/uaccess.h:1,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/iio/magnetometer/yamaha-yas530.c:33:
include/linux/unaligned/be_struct.h:27:20: note: previous definition of 'put_unaligned_be32' was here
27 | static inline void put_unaligned_be32(u32 val, void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/iio/magnetometer/yamaha-yas530.c:35:
include/linux/unaligned/be_byteshift.h:66:20: error: redefinition of 'put_unaligned_be64'
66 | static inline void put_unaligned_be64(u64 val, void *p)
| ^~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/unaligned.h:26,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from include/asm-generic/uaccess.h:13,
from ./arch/h8300/include/generated/asm/uaccess.h:1,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/iio/magnetometer/yamaha-yas530.c:33:
include/linux/unaligned/be_struct.h:32:20: note: previous definition of 'put_unaligned_be64' was here
32 | static inline void put_unaligned_be64(u64 val, void *p)
| ^~~~~~~~~~~~~~~~~~
vim +/get_unaligned_be16 +41 include/linux/unaligned/be_byteshift.h
064106a91be5e76 Harvey Harrison 2008-04-29 40
064106a91be5e76 Harvey Harrison 2008-04-29 @41 static inline u16 get_unaligned_be16(const void *p)
064106a91be5e76 Harvey Harrison 2008-04-29 42 {
19f747f7370fcf4 Bart Van Assche 2020-03-13 43 return __get_unaligned_be16(p);
064106a91be5e76 Harvey Harrison 2008-04-29 44 }
064106a91be5e76 Harvey Harrison 2008-04-29 45
064106a91be5e76 Harvey Harrison 2008-04-29 46 static inline u32 get_unaligned_be32(const void *p)
064106a91be5e76 Harvey Harrison 2008-04-29 47 {
19f747f7370fcf4 Bart Van Assche 2020-03-13 48 return __get_unaligned_be32(p);
064106a91be5e76 Harvey Harrison 2008-04-29 49 }
064106a91be5e76 Harvey Harrison 2008-04-29 50
064106a91be5e76 Harvey Harrison 2008-04-29 51 static inline u64 get_unaligned_be64(const void *p)
064106a91be5e76 Harvey Harrison 2008-04-29 52 {
19f747f7370fcf4 Bart Van Assche 2020-03-13 53 return __get_unaligned_be64(p);
064106a91be5e76 Harvey Harrison 2008-04-29 54 }
064106a91be5e76 Harvey Harrison 2008-04-29 55
064106a91be5e76 Harvey Harrison 2008-04-29 @56 static inline void put_unaligned_be16(u16 val, void *p)
064106a91be5e76 Harvey Harrison 2008-04-29 57 {
064106a91be5e76 Harvey Harrison 2008-04-29 58 __put_unaligned_be16(val, p);
064106a91be5e76 Harvey Harrison 2008-04-29 59 }
064106a91be5e76 Harvey Harrison 2008-04-29 60
:::::: The code at line 41 was first introduced by commit
:::::: 064106a91be5e76cb42c1ddf5d3871e3a1bd2a23 kernel: add common infrastructure for unaligned access
:::::: TO: Harvey Harrison <harvey.harrison(a)gmail.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months