Hi WingMan,
FYI, the error/warning still remains.
tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: c02b2da68c63deb35dc5a7c1b0bbc68e4ee38632
commit: e804afb5449b93d5b543a1685b0b2fab328873fc [8675/12984] net: packet: pass on
redundant net info in packet_recvmsg
config: mips-randconfig-r011-20210113 (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 remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
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/net/cls_cgroup.h:14,
from net/socket.c:95:
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/socket.c: In function '__sys_getsockopt':
net/socket.c:2113:6: warning: variable 'max_optlen' set but not used
[-Wunused-but-set-variable]
2113 | int max_optlen;
| ^~~~~~~~~~
--
In file included from net/sysctl_net.c:20:
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/net/bluetooth/bluetooth.h:29,
from net/bluetooth/l2cap_core.c:37:
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/bluetooth/l2cap_core.c: In function 'l2cap_connect':
net/bluetooth/l2cap_core.c:3872:41: warning: comparison is always false due to limited
range of data type [-Wtype-limits]
3872 | if (scid < L2CAP_CID_DYN_START || scid > L2CAP_CID_DYN_END) {
| ^
--
In file included from include/net/bluetooth/bluetooth.h:29,
from net/bluetooth/smp.c:32:
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/bluetooth/smp.c: In function 'smp_irk_matches':
net/bluetooth/smp.c:505:18: warning: variable 'smp' set but not used
[-Wunused-but-set-variable]
505 | struct smp_dev *smp;
| ^~~
net/bluetooth/smp.c: In function 'smp_generate_rpa':
net/bluetooth/smp.c:526:18: warning: variable 'smp' set but not used
[-Wunused-but-set-variable]
526 | struct smp_dev *smp;
| ^~~
--
In file included from include/net/llc_conn.h:16,
from net/llc/af_llc.c:34:
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/llc/af_llc.c: In function 'llc_ui_sendmsg':
net/llc/af_llc.c:974:51: warning: suggest braces around empty body in an 'if'
statement [-Wempty-body]
974 | __func__, llc->laddr.lsap, llc->daddr.lsap, rc);
| ^
--
In file included from include/net/inet_sock.h:22,
from include/net/inet_ecn.h:8,
from include/net/codel.h:48,
from include/net/mac80211.h:22,
from net/mac80211/driver-ops.h:11,
from net/mac80211/trace.c:8:
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 net/mac80211/trace.h:2717,
from net/mac80211/trace.c:11:
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 net/nfc/nci/../nfc.h:14,
from net/nfc/nci/hci.c:13:
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/nfc/nci/hci.c: In function 'nci_hci_resp_received':
net/nfc/nci/hci.c:369:5: warning: variable 'status' set but not used
[-Wunused-but-set-variable]
369 | u8 status = result;
| ^~~~~~
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