Hi WingMan,
FYI, the error/warning still remains.
tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: 872a510b1bbcab3969980f7fdaa664d7818c0210
commit: e804afb5449b93d5b543a1685b0b2fab328873fc [9147/9607] net: packet: pass on
redundant net info in packet_recvmsg
config: sparc-defconfig (attached as .config)
compiler: sparc-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
git checkout e804afb5449b93d5b543a1685b0b2fab328873fc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
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/tcp.h:19,
from include/linux/ipv6.h:87,
from net//core/pktgen.c:146:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for
each function it appears in
--
In file included from include/linux/mroute_base.h:8,
from include/linux/mroute.h:10,
from net//ipv4/route.c:82:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for
each function it appears in
net//ipv4/route.c: In function 'ip_rt_send_redirect':
net//ipv4/route.c:875:6: warning: variable 'log_martians' set but not used
[-Wunused-but-set-variable]
875 | int log_martians;
| ^~~~~~~~~~~~
--
In file included from include/linux/tcp.h:19,
from include/net/tcp.h:20,
from include/linux/netfilter_ipv6.h:11,
from net//ipv6/af_inet6.c:41:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for
each function it appears in
net//ipv6/af_inet6.c: At top level:
net//ipv6/af_inet6.c:569:5: warning: no previous prototype for 'inet6_sendmsg'
[-Wmissing-prototypes]
569 | int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
| ^~~~~~~~~~~~~
net//ipv6/af_inet6.c:582:5: warning: no previous prototype for 'inet6_recvmsg'
[-Wmissing-prototypes]
582 | int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
| ^~~~~~~~~~~~~
--
In file included from include/net/inet_sock.h:22,
from include/net/ip.h:27,
from net//ipv6/ip6_fib.c:28:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for
each function it appears in
net//ipv6/ip6_fib.c: In function 'fib6_add':
net//ipv6/ip6_fib.c:1307:25: warning: variable 'pn' set but not used
[-Wunused-but-set-variable]
1307 | struct fib6_node *fn, *pn = NULL;
| ^~
--
In file included from include/net/inet_sock.h:22,
from include/linux/udp.h:16,
from net//sunrpc/svcsock.c:31:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for
each function it appears in
net//sunrpc/svcsock.c: In function 'svc_udp_init':
net//sunrpc/svcsock.c:677:6: warning: variable 'err' set but not used
[-Wunused-but-set-variable]
677 | int err, level, optname, one = 1;
| ^~~
git remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.4.y
git checkout e804afb5449b93d5b543a1685b0b2fab328873fc
vim +/SCM_REDUNDANT +2457 include/net/sock.h
2449
2450 static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
2451 struct sk_buff *skb)
2452 {
2453 struct skb_redundant_info *sred;
2454
2455 sred = skb_redinfo(skb);
2456 if (sred->lsdu_size)
2457 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
2458 }
2459
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org