Hi WingMan,
FYI, the error/warning still remains.
tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 541ec9a6995c3dd881d6f0b63cc714a08ded457d
commit: e355bf097bb11257afeadf6665e51f224eeb93a7 [7473/10213] net: packet: Pass on
redundant net info in packet_recvmsg
config: parisc-defconfig
(
https://download.01.org/0day-ci/archive/20211207/202112071419.IrqCWJuw-lk...)
compiler: hppa-linux-gcc (GCC) 11.2.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 remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout e355bf097bb11257afeadf6665e51f224eeb93a7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=parisc SHELL=/bin/bash fs/ net/
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 include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfs/client.c:19:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
--
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfsd/nfsd.h:22,
from fs/nfsd/export.c:21:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
fs/nfsd/export.c: In function 'exp_rootfh':
fs/nfsd/export.c:919:34: warning: variable 'inode' set but not used
[-Wunused-but-set-variable]
919 | struct inode *inode;
| ^~~~~
--
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from include/linux/sunrpc/clnt.h:28,
from include/linux/nfs_fs.h:32,
from fs/nfs/nfstrace.c:5:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
In file included from fs/nfs/nfstrace.h:1444,
from fs/nfs/nfstrace.c:10:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./nfstrace.h: No such file or
directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfsd/nfsd.h:22,
from fs/nfsd/state.h:42,
from fs/nfsd/trace.h:250,
from fs/nfsd/trace.c:3:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
In file included from fs/nfsd/trace.h:785,
from fs/nfsd/trace.c:3:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from fs/cifs/cifsfs.c:42:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
In file included from fs/cifs/cifsglob.h:32,
from fs/cifs/cifsfs.c:46:
fs/cifs/smb2pdu.h: At top level:
fs/cifs/smb2pdu.h:28:10: fatal error: cifsacl.h: No such file or directory
28 | #include <cifsacl.h>
| ^~~~~~~~~~~
compilation terminated.
--
In file included from fs/io_uring.c:64:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
fs/io_uring.c: In function 'io_prep_async_work':
fs/io_uring.c:1431:29: warning: variable 'id' set but not used
[-Wunused-but-set-variable]
1431 | struct io_identity *id;
| ^~
--
In file included from include/net/cls_cgroup.h:14,
from net/socket.c:95:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for
each function it appears in
net/socket.c: In function '__sys_getsockopt':
net/socket.c:2155:13: warning: variable 'max_optlen' set but not used
[-Wunused-but-set-variable]
2155 | int max_optlen;
| ^~~~~~~~~~
--
In file included from include/linux/mroute_base.h:8,
from include/linux/mroute.h:10,
from net/ipv4/route.c:83:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: 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:885:13: warning: variable 'log_martians' set but not used
[-Wunused-but-set-variable]
885 | int log_martians;
| ^~~~~~~~~~~~
--
In file included from include/net/inet_sock.h:22,
from include/net/ip.h:28,
from net/ipv6/ip6_fib.c:28:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2523 | put_cmsg(msg,
SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: 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:1375:32: warning: variable 'pn' set but not used
[-Wunused-but-set-variable]
1375 | struct fib6_node *fn, *pn = NULL;
| ^~
vim +/SCM_REDUNDANT +2523 include/net/sock.h
2514
2515 DECLARE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
2516 static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
2517 struct sk_buff *skb)
2518 {
2519 struct skb_redundant_info *sred;
2520
2521 sred = skb_redinfo(skb);
2522 if (sred->lsdu_size)
2523 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
2524 }
2525
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org