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: 37ab3ad1acdc652a6694e6f45e67767a8a80592b [9148/10177] net: socket: pass on
redundant net info to sock_recv_errqueue
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 37ab3ad1acdc652a6694e6f45e67767a8a80592b
# 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/inet_sock.h:22,
from include/net/ip.h:27,
from include/linux/errqueue.h:6,
from net//core/sock.c:91:
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//core/sock.c: In function 'sock_recv_errqueue':
> net//core/sock.c:3092:28: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
3092 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
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 37ab3ad1acdc652a6694e6f45e67767a8a80592b
vim +/SCM_REDUNDANT +3092 net//core/sock.c
3066
3067 int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len,
3068 int level, int type)
3069 {
3070 struct sock_exterr_skb *serr;
3071 struct sk_buff *skb;
3072 int copied, err;
3073 struct skb_redundant_info *sred;
3074
3075 err = -EAGAIN;
3076 skb = sock_dequeue_err_skb(sk);
3077 if (skb == NULL)
3078 goto out;
3079
3080 copied = skb->len;
3081 if (copied > len) {
3082 msg->msg_flags |= MSG_TRUNC;
3083 copied = len;
3084 }
3085 err = skb_copy_datagram_msg(skb, 0, msg, copied);
3086 if (err)
3087 goto out_free_skb;
3088
3089 sock_recv_timestamp(msg, sk, skb);
3090
3091 sred = skb_redinfo(skb);
3092 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
3093
3094 serr = SKB_EXT_ERR(skb);
3095 put_cmsg(msg, level, type, sizeof(serr->ee), &serr->ee);
3096
3097 msg->msg_flags |= MSG_ERRQUEUE;
3098 err = copied;
3099
3100 out_free_skb:
3101 kfree_skb(skb);
3102 out:
3103 return err;
3104 }
3105 EXPORT_SYMBOL(sock_recv_errqueue);
3106
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org