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: 2d970fc55a5e449e07ea3c11b9e679ac7db10ccc
commit: e804afb5449b93d5b543a1685b0b2fab328873fc [9147/10177] net: packet: pass on
redundant net info in packet_recvmsg
config: mips-pnx8335_stb225_defconfig (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
git checkout e804afb5449b93d5b543a1685b0b2fab328873fc
# 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 >>):
In file included from include/linux/tcp.h:19,
from net//core/request_sock.c:14:
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/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