[mkl-can-next:j1939 1/38] net/can/j1939/socket.c:707:2: error: too few arguments to function 'sock_tx_timestamp'

Started by kbuild test robot on Mar 4, 2017

open the first message on its own page

Message details and related content
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git j1939
head:   d5281fb975a0b72bd01f5617f7ce38c23f33cf1c
commit: f325e893bca69b084a32f1d4d42b8a0ff7816e02 [1/38] can-j1939: Import SAE J1939
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f325e893bca69b084a32f1d4d42b8a0ff7816e02
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

Note: the mkl-can-next/j1939 HEAD d5281fb975a0b72bd01f5617f7ce38c23f33cf1c builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   net/can/j1939/socket.c: In function 'j1939sk_sendmsg':
quoted
net/can/j1939/socket.c:707:24: warning: passing argument 2 of 'sock_tx_timestamp' makes integer from pointer without a cast [-Wint-conversion]
     sock_tx_timestamp(sk, &skb_shinfo(skb)->tx_flags);
                           ^
   In file included from include/linux/can/skb.h:16:0,
                    from net/can/j1939/socket.c:22:
   include/net/sock.h:2236:20: note: expected '__u16 {aka short unsigned int}' but argument is of type '__u8 * {aka unsigned char *}'
    static inline void sock_tx_timestamp(const struct sock *sk, __u16 tsflags,
                       ^~~~~~~~~~~~~~~~~
quoted
net/can/j1939/socket.c:707:2: error: too few arguments to function 'sock_tx_timestamp'
     sock_tx_timestamp(sk, &skb_shinfo(skb)->tx_flags);
     ^~~~~~~~~~~~~~~~~
   In file included from include/linux/can/skb.h:16:0,
                    from net/can/j1939/socket.c:22:
   include/net/sock.h:2236:20: note: declared here
    static inline void sock_tx_timestamp(const struct sock *sk, __u16 tsflags,
                       ^~~~~~~~~~~~~~~~~

vim +/sock_tx_timestamp +707 net/can/j1939/socket.c

   701		can_skb_prv(skb)->ifindex = dev->ifindex;
   702		skb_reserve(skb, offsetof(struct can_frame, data));
   703	
   704		ret = memcpy_from_msg(skb_put(skb, size), msg, size);
   705		if (ret < 0)
   706			goto free_skb;
 > 707		sock_tx_timestamp(sk, &skb_shinfo(skb)->tx_flags);
   708	
   709		skb->dev = dev;
   710	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help