All of lore.kernel.org
 help / color / mirror / Atom feed
* [mkl-can-next:j1939 1/35] net/can/j1939/main.c:250:8: error: too few arguments to function 'can_rx_register'
@ 2017-03-03 15:40 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-03-03 15:40 UTC (permalink / raw)
  To: Kurt Van Dijck; +Cc: kbuild-all, linux-can, Marc Kleine-Budde

[-- Attachment #1: Type: text/plain, Size: 2348 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git j1939
head:   7efaff43d3c5ad0a12c5295b2c5c6bac2feaf6d6
commit: f325e893bca69b084a32f1d4d42b8a0ff7816e02 [1/35] can-j1939: Import SAE J1939
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f325e893bca69b084a32f1d4d42b8a0ff7816e02
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute
   net/can/j1939/main.c:250:30: sparse: not enough arguments for function can_rx_register
   net/can/j1939/main.c: In function 'j1939_netdev_start':
>> net/can/j1939/main.c:250:8: error: too few arguments to function 'can_rx_register'
     ret = can_rx_register(netdev, J1939_CAN_ID, J1939_CAN_MASK,
           ^~~~~~~~~~~~~~~
   In file included from net/can/j1939/main.c:27:0:
   include/linux/can/core.h:58:5: note: declared here
    int can_rx_register(struct net_device *dev, canid_t can_id, canid_t mask,
        ^~~~~~~~~~~~~~~

sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> net/can/j1939/main.c:250:30: sparse: not enough arguments for function can_rx_register
   net/can/j1939/main.c: In function 'j1939_netdev_start':
   net/can/j1939/main.c:250:8: error: too few arguments to function 'can_rx_register'
     ret = can_rx_register(netdev, J1939_CAN_ID, J1939_CAN_MASK,
           ^~~~~~~~~~~~~~~
   In file included from net/can/j1939/main.c:27:0:
   include/linux/can/core.h:58:5: note: declared here
    int can_rx_register(struct net_device *dev, canid_t can_id, canid_t mask,
        ^~~~~~~~~~~~~~~

vim +/can_rx_register +250 net/can/j1939/main.c

   244		priv->netdev = netdev;
   245		priv->ifindex = netdev->ifindex;
   246		kref_init(&priv->kref);
   247		priv->nusers = 1;
   248	
   249		/* add CAN handler */
 > 250		ret = can_rx_register(netdev, J1939_CAN_ID, J1939_CAN_MASK,
   251				j1939_can_recv, priv, "j1939");
   252		if (ret < 0)
   253			goto fail_can;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 57837 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-03 15:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03 15:40 [mkl-can-next:j1939 1/35] net/can/j1939/main.c:250:8: error: too few arguments to function 'can_rx_register' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.