Re: [PATCH net-next v4 01/10] netdevice: priv_flags extend to 64bit
by kernel test robot
Hi Xuan,
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/Xuan-Zhuo/virtio-net-support-xdp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 8ef7adc6beb2ef0bce83513dc9e4505e7b21e8c2
config: x86_64-randconfig-a014-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/32403bd72dd27e9d773cfce22af2e46ae...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xuan-Zhuo/virtio-net-support-xdp-socket-zero-copy-xmit/20210413-111831
git checkout 32403bd72dd27e9d773cfce22af2e46aeec0a3b1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> net/8021q/vlanproc.c:257:30: warning: format specifies type 'unsigned short' but the argument has type 'netdev_priv_flags_t' (aka 'unsigned long long') [-Wformat]
(int)(vlan->flags & 1), vlandev->priv_flags);
^~~~~~~~~~~~~~~~~~~
net/8021q/vlanproc.c:284:22: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
mp->priority, ((mp->vlan_qos >> 13) & 0x7));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +257 net/8021q/vlanproc.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 240
^1da177e4c3f41 Linus Torvalds 2005-04-16 241 static int vlandev_seq_show(struct seq_file *seq, void *offset)
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 243 struct net_device *vlandev = (struct net_device *) seq->private;
7da82c06ded105 Jiri Pirko 2011-12-08 244 const struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev);
28172739f0a276 Eric Dumazet 2010-07-07 245 struct rtnl_link_stats64 temp;
be1f3c2c027cc5 Ben Hutchings 2010-06-08 246 const struct rtnl_link_stats64 *stats;
be1f3c2c027cc5 Ben Hutchings 2010-06-08 247 static const char fmt64[] = "%30s %12llu\n";
^1da177e4c3f41 Linus Torvalds 2005-04-16 248 int i;
^1da177e4c3f41 Linus Torvalds 2005-04-16 249
26a25239d7a660 Joonwoo Park 2008-07-08 250 if (!is_vlan_dev(vlandev))
^1da177e4c3f41 Linus Torvalds 2005-04-16 251 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 252
28172739f0a276 Eric Dumazet 2010-07-07 253 stats = dev_get_stats(vlandev, &temp);
2029cc2c84fb11 Patrick McHardy 2008-01-21 254 seq_printf(seq,
2029cc2c84fb11 Patrick McHardy 2008-01-21 255 "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n",
7da82c06ded105 Jiri Pirko 2011-12-08 256 vlandev->name, vlan->vlan_id,
7da82c06ded105 Jiri Pirko 2011-12-08 @257 (int)(vlan->flags & 1), vlandev->priv_flags);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-for-next 30/37] drivers/staging/rts5208/rtsx.c:137:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-for-next
head: 47b28e8732867c0cef71c6fdde6afbc886d488ac
commit: 49cbab92c64076c9137917d56c317650038e4900 [30/37] Introduce struct scsi_status
config: riscv-randconfig-r024-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/bvanassche/linux/commit/49cbab92c64076c9137917d56c3176...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-for-next
git checkout 49cbab92c64076c9137917d56c317650038e4900
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/staging/rts5208/rtsx.c:137:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = DID_NO_CONNECT << 16;
^ ~~~~~~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:380:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_ABORT << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:391:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_ERROR << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:401:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_BAD_TARGET << 16;
^ ~~~~~~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:408:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_BAD_TARGET << 16;
^ ~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/rts5208/rtsx.c:425:30: error: invalid operands to binary expression ('struct scsi_status' and 'int')
else if (chip->srb->result != DID_ABORT << 16) {
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/staging/rts5208/rtsx.c:425:30: error: invalid operands to binary expression ('struct scsi_status' and 'int')
else if (chip->srb->result != DID_ABORT << 16) {
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/staging/rts5208/rtsx.c:425:30: error: invalid operands to binary expression ('struct scsi_status' and 'int')
else if (chip->srb->result != DID_ABORT << 16) {
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/staging/rts5208/rtsx.c:636:21: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_NO_CONNECT << 16;
^ ~~~~~~~~~~~~~~~~~~~~
9 errors generated.
--
>> drivers/staging/rts5208/rtsx_transport.c:163:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = DID_ABORT << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx_transport.c:170:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = DID_ERROR << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx_transport.c:174:14: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = SAM_STAT_GOOD;
^ ~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx_transport.c:183:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = SAM_STAT_CHECK_CONDITION;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
vim +137 drivers/staging/rts5208/rtsx.c
fa590c222fbaa4 Micky Ching 2013-11-12 106
fa590c222fbaa4 Micky Ching 2013-11-12 107 /***********************************************************************
fa590c222fbaa4 Micky Ching 2013-11-12 108 * /proc/scsi/ functions
fa590c222fbaa4 Micky Ching 2013-11-12 109 ***********************************************************************/
fa590c222fbaa4 Micky Ching 2013-11-12 110
fa590c222fbaa4 Micky Ching 2013-11-12 111 /* we use this macro to help us write into the buffer */
fa590c222fbaa4 Micky Ching 2013-11-12 112 #undef SPRINTF
fa590c222fbaa4 Micky Ching 2013-11-12 113 #define SPRINTF(args...) \
7e0ea476edb59f Wayne Porter 2016-10-11 114 do { \
7e0ea476edb59f Wayne Porter 2016-10-11 115 if (pos < buffer + length) \
7e0ea476edb59f Wayne Porter 2016-10-11 116 pos += sprintf(pos, ## args); \
7e0ea476edb59f Wayne Porter 2016-10-11 117 } while (0)
fa590c222fbaa4 Micky Ching 2013-11-12 118
fa590c222fbaa4 Micky Ching 2013-11-12 119 /* queue a command */
fa590c222fbaa4 Micky Ching 2013-11-12 120 /* This is always called with scsi_lock(host) held */
fa590c222fbaa4 Micky Ching 2013-11-12 121 static int queuecommand_lck(struct scsi_cmnd *srb,
fa590c222fbaa4 Micky Ching 2013-11-12 122 void (*done)(struct scsi_cmnd *))
fa590c222fbaa4 Micky Ching 2013-11-12 123 {
fa590c222fbaa4 Micky Ching 2013-11-12 124 struct rtsx_dev *dev = host_to_rtsx(srb->device->host);
fa590c222fbaa4 Micky Ching 2013-11-12 125 struct rtsx_chip *chip = dev->chip;
fa590c222fbaa4 Micky Ching 2013-11-12 126
fa590c222fbaa4 Micky Ching 2013-11-12 127 /* check for state-transition errors */
8bee668de51b7c Sandhya Bankar 2016-09-19 128 if (chip->srb) {
651cd163ba0380 Haneen Mohammed 2015-03-06 129 dev_err(&dev->pci->dev, "Error: chip->srb = %p\n",
651cd163ba0380 Haneen Mohammed 2015-03-06 130 chip->srb);
fa590c222fbaa4 Micky Ching 2013-11-12 131 return SCSI_MLQUEUE_HOST_BUSY;
fa590c222fbaa4 Micky Ching 2013-11-12 132 }
fa590c222fbaa4 Micky Ching 2013-11-12 133
fa590c222fbaa4 Micky Ching 2013-11-12 134 /* fail the command if we are disconnecting */
fa590c222fbaa4 Micky Ching 2013-11-12 135 if (rtsx_chk_stat(chip, RTSX_STAT_DISCONNECT)) {
fa590c222fbaa4 Micky Ching 2013-11-12 136 dev_info(&dev->pci->dev, "Fail command during disconnect\n");
fa590c222fbaa4 Micky Ching 2013-11-12 @137 srb->result = DID_NO_CONNECT << 16;
fa590c222fbaa4 Micky Ching 2013-11-12 138 done(srb);
fa590c222fbaa4 Micky Ching 2013-11-12 139 return 0;
fa590c222fbaa4 Micky Ching 2013-11-12 140 }
fa590c222fbaa4 Micky Ching 2013-11-12 141
fa590c222fbaa4 Micky Ching 2013-11-12 142 /* enqueue the command and wake up the control thread */
fa590c222fbaa4 Micky Ching 2013-11-12 143 srb->scsi_done = done;
fa590c222fbaa4 Micky Ching 2013-11-12 144 chip->srb = srb;
fa590c222fbaa4 Micky Ching 2013-11-12 145 complete(&dev->cmnd_ready);
fa590c222fbaa4 Micky Ching 2013-11-12 146
fa590c222fbaa4 Micky Ching 2013-11-12 147 return 0;
fa590c222fbaa4 Micky Ching 2013-11-12 148 }
fa590c222fbaa4 Micky Ching 2013-11-12 149
:::::: The code at line 137 was first introduced by commit
:::::: fa590c222fbaa428edb2ce2194638906cea1400a staging: rts5208: add support for rts5208 and rts5288
:::::: TO: Micky Ching <micky_ching(a)realsil.com.cn>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
arch/mips/n64/init.c:57:38: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89698becf06d341a700913c3d89ce2a914af69a2
commit: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type
date: 3 months ago
config: mips-randconfig-s032-20210413 (attached as .config)
compiler: mips64-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-280-g2cd6d34e-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 baec970aa5ba11099ad7a91773350c91fb2113f0
# 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=mips
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 >>)
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> arch/mips/n64/init.c:57:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
arch/mips/n64/init.c:57:38: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/n64/init.c:57:38: sparse: got unsigned int [usertype] *
vim +57 arch/mips/n64/init.c
54
55 static void __init n64rdp_write_reg(const u8 reg, const u32 value)
56 {
> 57 __raw_writel(value, REG_BASE + reg);
58 }
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[RFC PATCH] delayacct: delayacct_stats[] can be static
by kernel test robot
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
delayacct.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/delayacct.c b/kernel/delayacct.c
index b8d719fbfc404..2505aa9f87f61 100644
--- a/kernel/delayacct.c
+++ b/kernel/delayacct.c
@@ -32,7 +32,7 @@ struct delayacct_stat {
unsigned int idx;
};
-struct delayacct_stat delayacct_stats[] = {
+static struct delayacct_stat delayacct_stats[] = {
{"blkio", DELAYACCT_BLKIO},
{"swapin", DELAYACCT_SWAPIN},
{"pagecache_thrashing", DELAYACCT_THRASHING},
1 year, 5 months
/usr/bin/ld: ll_temac_main.c:undefined reference to `devm_of_iomap'
by kernel test robot
Hi Andre,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89698becf06d341a700913c3d89ce2a914af69a2
commit: e8b6c54f6d57822e228027d41a1edb317034a08c net: xilinx: temac: Relax Kconfig dependencies
date: 1 year, 1 month ago
config: um-randconfig-r026-20210413 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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 e8b6c54f6d57822e228027d41a1edb317034a08c
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
/usr/bin/ld: drivers/net/ethernet/xilinx/ll_temac_main.o: in function `temac_probe':
ll_temac_main.c:(.text+0xe9d): undefined reference to `devm_ioremap'
>> /usr/bin/ld: ll_temac_main.c:(.text+0xf90): undefined reference to `devm_of_iomap'
/usr/bin/ld: ll_temac_main.c:(.text+0x1159): undefined reference to `devm_ioremap'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x8): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x15): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x22): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x2f): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x3c): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/misc/altera-stapl/altera-lpt.o:(.altinstructions+0x49): undefined reference to `X86_FEATURE_XMM'
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[arm-integrator:kernel-in-vmalloc-v5.12-rc1 6/6] arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.12-rc1
head: 7b99ca2d1494c9431f36164db472b70852ad9bf6
commit: 7b99ca2d1494c9431f36164db472b70852ad9bf6 [6/6] ARM: kernel in vmalloc
config: arm-randconfig-r015-20210413 (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/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.12-rc1
git checkout 7b99ca2d1494c9431f36164db472b70852ad9bf6
# 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 errors (new ones prefixed by >>):
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:58,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared (first use in this function)
338 | (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SIZE))) {
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h:338:41: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm/include/asm/memory.h:340:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
340 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
--
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:58,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:338:41: error: 'KERNEL_SIZE' undeclared (first use in this function)
338 | (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SIZE))) {
| ^~~~~~~~~~~
arch/arm/include/asm/memory.h:338:41: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm/include/asm/memory.h:340:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
340 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
make[2]: *** [scripts/Makefile.build:116: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1233: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/KERNEL_SIZE +338 arch/arm/include/asm/memory.h
330
331 static inline unsigned long virt_to_pfn(const void *kaddr)
332 {
333 if (!IS_ENABLED(CONFIG_ARM_KERNEL_IN_VMALLOC)) {
334 return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
335 PHYS_PFN_OFFSET);
336 } else {
337 if ((kaddr >= (void *)KERNEL_OFFSET) &&
> 338 (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SIZE))) {
339 return ((((unsigned long)(kaddr) - KERNEL_OFFSET) >> PAGE_SHIFT) +
> 340 KERNEL_PFN_OFFSET);
341 } else {
342 return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
343 PHYS_PFN_OFFSET);
344 }
345 }
346 }
347
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH net-next v4 01/10] netdevice: priv_flags extend to 64bit
by kernel test robot
Hi Xuan,
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/Xuan-Zhuo/virtio-net-support-xdp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 8ef7adc6beb2ef0bce83513dc9e4505e7b21e8c2
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/32403bd72dd27e9d773cfce22af2e46ae...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xuan-Zhuo/virtio-net-support-xdp-socket-zero-copy-xmit/20210413-111831
git checkout 32403bd72dd27e9d773cfce22af2e46aeec0a3b1
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
net/8021q/vlanproc.c: In function 'vlandev_seq_show':
>> net/8021q/vlanproc.c:255:56: warning: format '%hx' expects argument of type 'int', but argument 6 has type 'netdev_priv_flags_t' {aka 'long long unsigned int'} [-Wformat=]
255 | "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n",
| ~~^
| |
| int
| %llx
256 | vlandev->name, vlan->vlan_id,
257 | (int)(vlan->flags & 1), vlandev->priv_flags);
| ~~~~~~~~~~~~~~~~~~~
| |
| netdev_priv_flags_t {aka long long unsigned int}
vim +255 net/8021q/vlanproc.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 240
^1da177e4c3f41 Linus Torvalds 2005-04-16 241 static int vlandev_seq_show(struct seq_file *seq, void *offset)
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 243 struct net_device *vlandev = (struct net_device *) seq->private;
7da82c06ded105 Jiri Pirko 2011-12-08 244 const struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev);
28172739f0a276 Eric Dumazet 2010-07-07 245 struct rtnl_link_stats64 temp;
be1f3c2c027cc5 Ben Hutchings 2010-06-08 246 const struct rtnl_link_stats64 *stats;
be1f3c2c027cc5 Ben Hutchings 2010-06-08 247 static const char fmt64[] = "%30s %12llu\n";
^1da177e4c3f41 Linus Torvalds 2005-04-16 248 int i;
^1da177e4c3f41 Linus Torvalds 2005-04-16 249
26a25239d7a660 Joonwoo Park 2008-07-08 250 if (!is_vlan_dev(vlandev))
^1da177e4c3f41 Linus Torvalds 2005-04-16 251 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 252
28172739f0a276 Eric Dumazet 2010-07-07 253 stats = dev_get_stats(vlandev, &temp);
2029cc2c84fb11 Patrick McHardy 2008-01-21 254 seq_printf(seq,
2029cc2c84fb11 Patrick McHardy 2008-01-21 @255 "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n",
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
drivers/net/virtio_net.c:1437:24: error: use of undeclared identifier 'vq'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210413-061144/Emil-Renn...
head: 605f1ff4679b8c43aabb447cdca20cbe9c39542b
commit: 605f1ff4679b8c43aabb447cdca20cbe9c39542b virtio-net: suppress bad irq warning for tx napi
date: 7 hours ago
config: x86_64-randconfig-a014-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/605f1ff4679b8c43aabb447cdca20cbe9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210413-061144/Emil-Renner-Berthing/drivers-net-update-tasklet_init-callers/20210131-080932
git checkout 605f1ff4679b8c43aabb447cdca20cbe9c39542b
# 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 >>):
>> drivers/net/virtio_net.c:1437:24: error: use of undeclared identifier 'vq'
virtqueue_disable_cb(vq);
^
1 error generated.
vim +/vq +1437 drivers/net/virtio_net.c
1425
1426 static void virtnet_poll_cleantx(struct receive_queue *rq)
1427 {
1428 struct virtnet_info *vi = rq->vq->vdev->priv;
1429 unsigned int index = vq2rxq(rq->vq);
1430 struct send_queue *sq = &vi->sq[index];
1431 struct netdev_queue *txq = netdev_get_tx_queue(vi->dev, index);
1432
1433 if (!sq->napi.weight || is_xdp_raw_buffer_queue(vi, index))
1434 return;
1435
1436 if (__netif_tx_trylock(txq)) {
> 1437 virtqueue_disable_cb(vq);
1438 free_old_xmit_skbs(sq, true);
1439 __netif_tx_unlock(txq);
1440 }
1441
1442 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS)
1443 netif_tx_wake_queue(txq);
1444 }
1445
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months