{standard input}:162: Error: found '(', expected: ')'
by kernel test robot
Hi Paul,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 60e720931556fc1034d0981460164dcf02697679
commit: 21e3134b3ec09e722cbcda69788f206adc8db1f4 MIPS: barrier: Clean up rmb() & wmb() definitions
date: 12 months ago
config: mips-randconfig-r001-20200930 (attached as .config)
compiler: mipsel-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 21e3134b3ec09e722cbcda69788f206adc8db1f4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
| ^~
lib/iomap.c:346:2: note: in expansion of macro 'IO_COND'
346 | IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count));
| ^~~~~~~
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:346:2: note: in expansion of macro 'IO_COND'
346 | IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count));
| ^~~~~~~
lib/iomap.c: In function 'iowrite16_rep':
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:350:2: note: in expansion of macro 'IO_COND'
350 | IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count));
| ^~~~~~~
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:350:2: note: in expansion of macro 'IO_COND'
350 | IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count));
| ^~~~~~~
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:350:2: note: in expansion of macro 'IO_COND'
350 | IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count));
| ^~~~~~~
lib/iomap.c: In function 'iowrite32_rep':
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:354:2: note: in expansion of macro 'IO_COND'
354 | IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count));
| ^~~~~~~
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:354:2: note: in expansion of macro 'IO_COND'
354 | IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count));
| ^~~~~~~
lib/iomap.c:53:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
53 | if (port >= PIO_RESERVED) { \
| ^~
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
lib/iomap.c:53:2: note: in expansion of macro 'if'
53 | if (port >= PIO_RESERVED) { \
| ^~
lib/iomap.c:354:2: note: in expansion of macro 'IO_COND'
354 | IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count));
| ^~~~~~~
{standard input}: Assembler messages:
>> {standard input}:162: Error: found '(', expected: ')'
>> {standard input}:162: Error: found '(', expected: ')'
>> {standard input}:162: Error: non-constant expression in ".if" statement
>> {standard input}:162: Error: junk at end of line, first unrecognized character is `('
{standard input}:642: Error: found '(', expected: ')'
{standard input}:642: Error: found '(', expected: ')'
{standard input}:642: Error: non-constant expression in ".if" statement
{standard input}:642: Error: junk at end of line, first unrecognized character is `('
{standard input}:778: Error: found '(', expected: ')'
{standard input}:778: Error: found '(', expected: ')'
{standard input}:778: Error: non-constant expression in ".if" statement
{standard input}:778: Error: junk at end of line, first unrecognized character is `('
{standard input}:999: Error: found '(', expected: ')'
{standard input}:999: Error: found '(', expected: ')'
{standard input}:999: Error: non-constant expression in ".if" statement
{standard input}:999: Error: junk at end of line, first unrecognized character is `('
{standard input}:1087: Error: found '(', expected: ')'
{standard input}:1087: Error: found '(', expected: ')'
{standard input}:1087: Error: non-constant expression in ".if" statement
{standard input}:1087: Error: junk at end of line, first unrecognized character is `('
{standard input}:1182: Error: found '(', expected: ')'
{standard input}:1182: Error: found '(', expected: ')'
{standard input}:1182: Error: non-constant expression in ".if" statement
{standard input}:1182: Error: junk at end of line, first unrecognized character is `('
{standard input}:1263: Error: found '(', expected: ')'
{standard input}:1263: Error: found '(', expected: ')'
{standard input}:1263: Error: non-constant expression in ".if" statement
{standard input}:1263: Error: junk at end of line, first unrecognized character is `('
{standard input}:1323: Error: found '(', expected: ')'
{standard input}:1323: Error: found '(', expected: ')'
{standard input}:1323: Error: non-constant expression in ".if" statement
{standard input}:1323: Error: junk at end of line, first unrecognized character is `('
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [net-next v2 10/11] bridge: switchdev: cfm: switchdev interface implementation
by kernel test robot
Hi Henrik,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Henrik-Bjoernlund/net-bridge-cfm...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git f2e834694b0d92187d889172da842e27829df371
config: i386-randconfig-a004-20200930 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/11484cf00dba95e52678e269d11425358...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Henrik-Bjoernlund/net-bridge-cfm-Add-support-for-Connectivity-Fault-Management-CFM/20201001-184031
git checkout 11484cf00dba95e52678e269d11425358dcde310
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: net/core/flow_dissector.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
ld: net/core/dev.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
ld: net/core/dev_ioctl.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
ld: net/ethernet/eth.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
ld: net/ethtool/tunnels.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
ld: net/ipv4/ip_tunnel_core.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
ld: net/ipv4/ipconfig.o: in function `switchdev_port_obj_get':
>> include/net/switchdev.h:441: multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:include/net/switchdev.h:441: first defined here
vim +441 include/net/switchdev.h
435
436 int switchdev_port_obj_get(struct net_device *dev,
437 const struct switchdev_obj *obj,
438 struct netlink_ext_ack *extack)
439 {
440 return -EOPNOTSUPP;
> 441 }
442
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [net-next v2 10/11] bridge: switchdev: cfm: switchdev interface implementation
by kernel test robot
Hi Henrik,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Henrik-Bjoernlund/net-bridge-cfm...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git f2e834694b0d92187d889172da842e27829df371
config: arm-bcm2835_defconfig (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://github.com/0day-ci/linux/commit/11484cf00dba95e52678e269d11425358...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Henrik-Bjoernlund/net-bridge-cfm-Add-support-for-Connectivity-Fault-Management-CFM/20201001-184031
git checkout 11484cf00dba95e52678e269d11425358dcde310
# 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 >>):
arm-linux-gnueabi-ld: net/core/flow_dissector.o: in function `switchdev_port_obj_get':
>> flow_dissector.c:(.text+0x838): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
arm-linux-gnueabi-ld: net/core/dev.o: in function `switchdev_port_obj_get':
dev.c:(.text+0x7760): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
arm-linux-gnueabi-ld: net/core/dev_ioctl.o: in function `switchdev_port_obj_get':
dev_ioctl.c:(.text+0x3f0): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
arm-linux-gnueabi-ld: net/ethernet/eth.o: in function `switchdev_port_obj_get':
eth.c:(.text+0x838): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
arm-linux-gnueabi-ld: net/ethtool/tunnels.o: in function `switchdev_port_obj_get':
tunnels.c:(.text+0x400): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
arm-linux-gnueabi-ld: net/ipv4/ip_tunnel_core.o: in function `switchdev_port_obj_get':
ip_tunnel_core.c:(.text+0xd6c): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
arm-linux-gnueabi-ld: net/ipv4/ipconfig.o: in function `switchdev_port_obj_get':
ipconfig.c:(.text+0x1d8): multiple definition of `switchdev_port_obj_get'; drivers/net/usb/lan78xx.o:lan78xx.c:(.text+0x68b4): first defined here
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[PATCH] ANDROID: mm: fix call_kern.cocci warnings (fwd)
by Julia Lawall
Just passing this along. I don't know if it is a real problem. Check the
call sites in the same file.
julia
---------- Forwarded message ----------
Date: Thu, 1 Oct 2020 16:14:17 +0800
From: kernel test robot <lkp(a)intel.com>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <julia.lawall(a)lip6.fr>
Subject: [PATCH] ANDROID: mm: fix call_kern.cocci warnings
CC: kbuild-all(a)lists.01.org
TO: cros-kernel-buildreports(a)googlegroups.com
From: kernel test robot <lkp(a)intel.com>
mm/page_alloc.c:5778:46-56: ERROR: function local_memory_node called on line 5883 inside lock on line 5854 but uses GFP_KERNEL
mm/page_alloc.c:5779:16-26: ERROR: function local_memory_node called on line 5883 inside lock on line 5854 but uses GFP_KERNEL
mm/page_alloc.c:5185:59-69: ERROR: function nr_free_zone_pages called on line 7792 inside lock on line 7788 but uses GFP_KERNEL
Find functions that refer to GFP_KERNEL but are called with locks held.
Semantic patch information:
The proposed change of converting the GFP_KERNEL is not necessarily the
correct one. It may be desired to unlock the lock, or to not call the
function under the lock in the first place.
Generated by: scripts/coccinelle/locks/call_kern.cocci
Fixes: aa9752dec8d8 ("ANDROID: mm: fix up removal of vm_total_pages problem")
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
tree: https://android.googlesource.com/kernel/common android-mainline
head: c1e2c674005c758817710ba1714d35185f6fa8b6
commit: aa9752dec8d8d95c0872f26c9c1935c410a8f1b8 [1313/1504] ANDROID: mm: fix up removal of vm_total_pages problem
:::::: branch date: 15 hours ago
:::::: commit date: 8 weeks ago
Please take the patch only if it's a positive warning. Thanks!
page_alloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5182,7 +5182,7 @@ static unsigned long nr_free_zone_pages(
/* Just pick one node, since fallback list is circular */
unsigned long sum = 0;
- struct zonelist *zonelist = node_zonelist(numa_node_id(), GFP_KERNEL);
+ struct zonelist *zonelist = node_zonelist(numa_node_id(), GFP_ATOMIC);
for_each_zone_zonelist(zone, z, zonelist, offset) {
unsigned long size = zone_managed_pages(zone);
@@ -5775,8 +5775,8 @@ int local_memory_node(int node)
{
struct zoneref *z;
- z = first_zones_zonelist(node_zonelist(node, GFP_KERNEL),
- gfp_zone(GFP_KERNEL),
+ z = first_zones_zonelist(node_zonelist(node, GFP_ATOMIC),
+ gfp_zone(GFP_ATOMIC),
NULL);
return zone_to_nid(z->zone);
}
1 year, 8 months
[chrome-os:chromeos-5.4 1/5] drivers/virtio/virtio_wl.c:734:54: sparse: sparse: incorrect type in argument 2 (different base types)
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 6cf182421da6c26ab973e92e06abf429b3bed7e5
commit: 82362306f5f27b1972a4b6075a4337cd09a5d3db [1/5] CHROMIUM: virtwl: use virtio_dma_buf_get_uuid to get resid
config: s390-randconfig-s031-20201001 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 82362306f5f27b1972a4b6075a4337cd09a5d3db
# 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=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
echo
echo "sparse warnings: (new ones prefixed by >>)"
echo
drivers/virtio/virtio_wl.c:213:21: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] id @@ got restricted __le32 [usertype] vfd_id @@
drivers/virtio/virtio_wl.c:213:21: sparse: expected unsigned int [usertype] id
drivers/virtio/virtio_wl.c:213:21: sparse: got restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:239:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __le32 [usertype] size @@
drivers/virtio/virtio_wl.c:239:19: sparse: expected unsigned int [usertype] size
drivers/virtio/virtio_wl.c:239:19: sparse: got restricted __le32 [usertype] size
drivers/virtio/virtio_wl.c:240:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] pfn @@ got restricted __le64 [usertype] pfn @@
drivers/virtio/virtio_wl.c:240:18: sparse: expected unsigned long long [usertype] pfn
drivers/virtio/virtio_wl.c:240:18: sparse: got restricted __le64 [usertype] pfn
drivers/virtio/virtio_wl.c:241:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] flags @@ got restricted __le32 [usertype] flags @@
drivers/virtio/virtio_wl.c:241:20: sparse: expected unsigned int [usertype] flags
drivers/virtio/virtio_wl.c:241:20: sparse: got restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:254:39: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long id @@ got restricted __le32 [usertype] vfd_id @@
drivers/virtio/virtio_wl.c:254:39: sparse: expected unsigned long id
drivers/virtio/virtio_wl.c:254:39: sparse: got restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:288:42: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long id @@ got restricted __le32 [usertype] vfd_id @@
drivers/virtio/virtio_wl.c:288:42: sparse: expected unsigned long id
drivers/virtio/virtio_wl.c:288:42: sparse: got restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:316:20: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:316:20: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:316:20: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:494:24: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:499:26: sparse: sparse: cast from restricted __le32
drivers/virtio/virtio_wl.c:501:46: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:525:58: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:530:32: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:568:44: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:574:32: sparse: sparse: restricted __le32 degrades to integer
drivers/virtio/virtio_wl.c:612:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:612:30: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:612:30: sparse: got int
drivers/virtio/virtio_wl.c:613:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] vfd_id @@ got unsigned int [usertype] id @@
drivers/virtio/virtio_wl.c:613:28: sparse: expected restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:613:28: sparse: got unsigned int [usertype] id
>> drivers/virtio/virtio_wl.c:734:54: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] *id @@ got restricted __le32 * @@
drivers/virtio/virtio_wl.c:734:54: sparse: expected unsigned int [usertype] *id
drivers/virtio/virtio_wl.c:734:54: sparse: got restricted __le32 *
drivers/virtio/virtio_wl.c:737:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] kind @@ got int @@
drivers/virtio/virtio_wl.c:737:41: sparse: expected restricted __le32 [usertype] kind
drivers/virtio/virtio_wl.c:737:41: sparse: got int
drivers/virtio/virtio_wl.c:834:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:834:29: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:834:29: sparse: got int
drivers/virtio/virtio_wl.c:837:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:837:37: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:837:37: sparse: got int
drivers/virtio/virtio_wl.c:848:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] vfd_id @@ got unsigned int [usertype] id @@
drivers/virtio/virtio_wl.c:848:27: sparse: expected restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:848:27: sparse: got unsigned int [usertype] id
drivers/virtio/virtio_wl.c:849:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] vfd_count @@ got unsigned long [assigned] [usertype] vfd_count @@
drivers/virtio/virtio_wl.c:849:30: sparse: expected restricted __le32 [usertype] vfd_count
drivers/virtio/virtio_wl.c:849:30: sparse: got unsigned long [assigned] [usertype] vfd_count
drivers/virtio/virtio_wl.c:867:45: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int type @@ got restricted __le32 [usertype] type @@
drivers/virtio/virtio_wl.c:867:45: sparse: expected unsigned int type
drivers/virtio/virtio_wl.c:867:45: sparse: got restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:897:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:897:36: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:897:36: sparse: got int
drivers/virtio/virtio_wl.c:898:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] vfd_id @@ got unsigned int [usertype] id @@
drivers/virtio/virtio_wl.c:898:34: sparse: expected restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:898:34: sparse: got unsigned int [usertype] id
drivers/virtio/virtio_wl.c:899:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] flags @@ got unsigned int [usertype] flags @@
drivers/virtio/virtio_wl.c:899:33: sparse: expected restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:899:33: sparse: got unsigned int [usertype] flags
drivers/virtio/virtio_wl.c:1068:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] vfd_id @@ got unsigned int [usertype] id @@
drivers/virtio/virtio_wl.c:1068:26: sparse: expected restricted __le32 [usertype] vfd_id
drivers/virtio/virtio_wl.c:1068:26: sparse: got unsigned int [usertype] id
drivers/virtio/virtio_wl.c:1071:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:1071:36: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1071:36: sparse: got int
drivers/virtio/virtio_wl.c:1072:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] flags @@ got int @@
drivers/virtio/virtio_wl.c:1072:33: sparse: expected restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:1072:33: sparse: got int
drivers/virtio/virtio_wl.c:1075:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:1075:36: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1075:36: sparse: got int
drivers/virtio/virtio_wl.c:1076:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] flags @@ got int @@
drivers/virtio/virtio_wl.c:1076:33: sparse: expected restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:1076:33: sparse: got int
drivers/virtio/virtio_wl.c:1080:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:1080:36: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1080:36: sparse: got int
drivers/virtio/virtio_wl.c:1081:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] size @@ got unsigned int @@
drivers/virtio/virtio_wl.c:1081:32: sparse: expected restricted __le32 [usertype] size
drivers/virtio/virtio_wl.c:1081:32: sparse: got unsigned int
drivers/virtio/virtio_wl.c:1084:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:1084:36: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1084:36: sparse: got int
drivers/virtio/virtio_wl.c:1085:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] flags @@ got int @@
drivers/virtio/virtio_wl.c:1085:33: sparse: expected restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:1085:33: sparse: got int
drivers/virtio/virtio_wl.c:1088:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:1088:36: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1088:36: sparse: got int
drivers/virtio/virtio_wl.c:1089:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] flags @@ got int @@
drivers/virtio/virtio_wl.c:1089:33: sparse: expected restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:1089:33: sparse: got int
drivers/virtio/virtio_wl.c:1094:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/virtio/virtio_wl.c:1094:44: sparse: expected restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1094:44: sparse: got int
drivers/virtio/virtio_wl.c:1116:44: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int type @@ got restricted __le32 [usertype] type @@
drivers/virtio/virtio_wl.c:1116:44: sparse: expected unsigned int type
drivers/virtio/virtio_wl.c:1116:44: sparse: got restricted __le32 [usertype] type
drivers/virtio/virtio_wl.c:1120:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __le32 [usertype] size @@
drivers/virtio/virtio_wl.c:1120:19: sparse: expected unsigned int [usertype] size
drivers/virtio/virtio_wl.c:1120:19: sparse: got restricted __le32 [usertype] size
drivers/virtio/virtio_wl.c:1121:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] pfn @@ got restricted __le64 [usertype] pfn @@
drivers/virtio/virtio_wl.c:1121:18: sparse: expected unsigned long long [usertype] pfn
drivers/virtio/virtio_wl.c:1121:18: sparse: got restricted __le64 [usertype] pfn
drivers/virtio/virtio_wl.c:1122:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] flags @@ got restricted __le32 [usertype] flags @@
drivers/virtio/virtio_wl.c:1122:20: sparse: expected unsigned int [usertype] flags
drivers/virtio/virtio_wl.c:1122:20: sparse: got restricted __le32 [usertype] flags
drivers/virtio/virtio_wl.c:1348:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __poll_t ( *poll )( ... ) @@ got unsigned int ( * )( ... ) @@
drivers/virtio/virtio_wl.c:1348:17: sparse: expected restricted __poll_t ( *poll )( ... )
drivers/virtio/virtio_wl.c:1348:17: sparse: got unsigned int ( * )( ... )
vim +734 drivers/virtio/virtio_wl.c
82362306f5f27b1 David Stevens 2020-01-22 719
8613cd9496facfd Zach Reizner 2017-08-14 720 static int encode_vfd_ids_foreign(struct virtwl_vfd **vfds,
8613cd9496facfd Zach Reizner 2017-08-14 721 struct dma_buf **virtgpu_dma_bufs,
8613cd9496facfd Zach Reizner 2017-08-14 722 size_t vfd_count,
8613cd9496facfd Zach Reizner 2017-08-14 723 struct virtio_wl_ctrl_vfd_send_vfd *vfd_ids)
8613cd9496facfd Zach Reizner 2017-08-14 724 {
8613cd9496facfd Zach Reizner 2017-08-14 725 size_t i;
8613cd9496facfd Zach Reizner 2017-08-14 726 int ret;
8613cd9496facfd Zach Reizner 2017-08-14 727
8613cd9496facfd Zach Reizner 2017-08-14 728 for (i = 0; i < vfd_count; i++) {
8613cd9496facfd Zach Reizner 2017-08-14 729 if (vfds[i]) {
8613cd9496facfd Zach Reizner 2017-08-14 730 vfd_ids[i].kind = VIRTIO_WL_CTRL_VFD_SEND_KIND_LOCAL;
8613cd9496facfd Zach Reizner 2017-08-14 731 vfd_ids[i].id = cpu_to_le32(vfds[i]->id);
8613cd9496facfd Zach Reizner 2017-08-14 732 } else if (virtgpu_dma_bufs[i]) {
82362306f5f27b1 David Stevens 2020-01-22 733 ret = get_dma_buf_id(virtgpu_dma_bufs[i],
8613cd9496facfd Zach Reizner 2017-08-14 @734 &vfd_ids[i].id);
8613cd9496facfd Zach Reizner 2017-08-14 735 if (ret)
8613cd9496facfd Zach Reizner 2017-08-14 736 return ret;
8613cd9496facfd Zach Reizner 2017-08-14 737 vfd_ids[i].kind = VIRTIO_WL_CTRL_VFD_SEND_KIND_VIRTGPU;
8613cd9496facfd Zach Reizner 2017-08-14 738 } else {
8613cd9496facfd Zach Reizner 2017-08-14 739 return -EBADFD;
8613cd9496facfd Zach Reizner 2017-08-14 740 }
8613cd9496facfd Zach Reizner 2017-08-14 741 }
8613cd9496facfd Zach Reizner 2017-08-14 742 return 0;
8613cd9496facfd Zach Reizner 2017-08-14 743 }
8613cd9496facfd Zach Reizner 2017-08-14 744 #endif
8613cd9496facfd Zach Reizner 2017-08-14 745
:::::: The code at line 734 was first introduced by commit
:::::: 8613cd9496facfd7f38c5b4cc75e8484b6702af1 CHROMIUM: virtwl: add virtwl driver
:::::: TO: Zach Reizner <zachr(a)google.com>
:::::: CC: Guenter Roeck <groeck(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[block:tif-task_work 2/2] arch/arm64/kernel/signal.c:984:18: error: too few arguments to function call, single argument 'regs' was not specified
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git tif-task_work
head: c6a44403af72ba7788b82ee83bd53ff972923117
commit: c6a44403af72ba7788b82ee83bd53ff972923117 [2/2] arm64: add support for TIF_TASKWORK
config: arm64-randconfig-r005-20200930 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block tif-task_work
git checkout c6a44403af72ba7788b82ee83bd53ff972923117
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kernel/signal.c:914:17: warning: unused variable 'ksig' [-Wunused-variable]
struct ksignal ksig;
^
>> arch/arm64/kernel/signal.c:984:18: error: too few arguments to function call, single argument 'regs' was not specified
do_task_work();
~~~~~~~~~~~~ ^
arch/arm64/kernel/signal.c:910:13: note: 'do_task_work' declared here
static void do_task_work(struct pt_regs *regs)
^
arch/arm64/kernel/signal.c:958:17: warning: no previous prototype for function 'do_notify_resume' [-Wmissing-prototypes]
asmlinkage void do_notify_resume(struct pt_regs *regs,
^
arch/arm64/kernel/signal.c:958:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void do_notify_resume(struct pt_regs *regs,
^
static
2 warnings and 1 error generated.
vim +/regs +984 arch/arm64/kernel/signal.c
957
958 asmlinkage void do_notify_resume(struct pt_regs *regs,
959 unsigned long thread_flags)
960 {
961 /*
962 * The assembly code enters us with IRQs off, but it hasn't
963 * informed the tracing code of that for efficiency reasons.
964 * Update the trace code with the current status.
965 */
966 trace_hardirqs_off();
967
968 do {
969 /* Check valid user FS if needed */
970 addr_limit_user_check();
971
972 if (thread_flags & _TIF_NEED_RESCHED) {
973 /* Unmask Debug and SError for the next task */
974 local_daif_restore(DAIF_PROCCTX_NOIRQ);
975
976 schedule();
977 } else {
978 local_daif_restore(DAIF_PROCCTX);
979
980 if (thread_flags & _TIF_UPROBE)
981 uprobe_notify_resume(regs);
982
983 if (thread_flags & _TIF_TASKWORK)
> 984 do_task_work();
985
986 if (thread_flags & _TIF_SIGPENDING)
987 do_signal(regs);
988
989 if (thread_flags & _TIF_NOTIFY_RESUME) {
990 clear_thread_flag(TIF_NOTIFY_RESUME);
991 tracehook_notify_resume(regs);
992 rseq_handle_notify_resume(NULL, regs);
993 }
994
995 if (thread_flags & _TIF_FOREIGN_FPSTATE)
996 fpsimd_restore_current_state();
997 }
998
999 local_daif_mask();
1000 thread_flags = READ_ONCE(current_thread_info()->flags);
1001 } while (thread_flags & _TIF_WORK_MASK);
1002 }
1003
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[block:tif-task_work 2/2] arch/arm64/kernel/signal.c:984:5: error: too few arguments to function 'do_task_work'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git tif-task_work
head: c6a44403af72ba7788b82ee83bd53ff972923117
commit: c6a44403af72ba7788b82ee83bd53ff972923117 [2/2] arm64: add support for TIF_TASKWORK
config: arm64-randconfig-p002-20200930 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block tif-task_work
git checkout c6a44403af72ba7788b82ee83bd53ff972923117
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kernel/signal.c: In function 'do_task_work':
arch/arm64/kernel/signal.c:914:17: warning: unused variable 'ksig' [-Wunused-variable]
914 | struct ksignal ksig;
| ^~~~
arch/arm64/kernel/signal.c: At top level:
arch/arm64/kernel/signal.c:958:17: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
958 | asmlinkage void do_notify_resume(struct pt_regs *regs,
| ^~~~~~~~~~~~~~~~
arch/arm64/kernel/signal.c: In function 'do_notify_resume':
>> arch/arm64/kernel/signal.c:984:5: error: too few arguments to function 'do_task_work'
984 | do_task_work();
| ^~~~~~~~~~~~
arch/arm64/kernel/signal.c:910:13: note: declared here
910 | static void do_task_work(struct pt_regs *regs)
| ^~~~~~~~~~~~
vim +/do_task_work +984 arch/arm64/kernel/signal.c
957
958 asmlinkage void do_notify_resume(struct pt_regs *regs,
959 unsigned long thread_flags)
960 {
961 /*
962 * The assembly code enters us with IRQs off, but it hasn't
963 * informed the tracing code of that for efficiency reasons.
964 * Update the trace code with the current status.
965 */
966 trace_hardirqs_off();
967
968 do {
969 /* Check valid user FS if needed */
970 addr_limit_user_check();
971
972 if (thread_flags & _TIF_NEED_RESCHED) {
973 /* Unmask Debug and SError for the next task */
974 local_daif_restore(DAIF_PROCCTX_NOIRQ);
975
976 schedule();
977 } else {
978 local_daif_restore(DAIF_PROCCTX);
979
980 if (thread_flags & _TIF_UPROBE)
981 uprobe_notify_resume(regs);
982
983 if (thread_flags & _TIF_TASKWORK)
> 984 do_task_work();
985
986 if (thread_flags & _TIF_SIGPENDING)
987 do_signal(regs);
988
989 if (thread_flags & _TIF_NOTIFY_RESUME) {
990 clear_thread_flag(TIF_NOTIFY_RESUME);
991 tracehook_notify_resume(regs);
992 rseq_handle_notify_resume(NULL, regs);
993 }
994
995 if (thread_flags & _TIF_FOREIGN_FPSTATE)
996 fpsimd_restore_current_state();
997 }
998
999 local_daif_mask();
1000 thread_flags = READ_ONCE(current_thread_info()->flags);
1001 } while (thread_flags & _TIF_WORK_MASK);
1002 }
1003
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months