tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: ca222ae72ea37d74141ed53deaa0a07263ef34e8
commit: 93fac9fa368d4c49b62745b6f324d019fb42ecc4 [9521/13425] HACK: scripts:
headers_install: fix allmodconfig builds
config: sparc-randconfig-s032-20210323 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-277-gc089cd2d-dirty
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 93fac9fa368d4c49b62745b6f324d019fb42ecc4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 include/net/ipv6.h:12,
from include/linux/sunrpc/clnt.h:28,
from include/linux/nfs_fs.h:32,
from init/do_mounts.c:23:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2461:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2461 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2461:29: 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/addrconf.h:52,
from lib/vsprintf.c:38:
include/net/sock.h: In function 'sock_recv_redundant_info':
> include/net/sock.h:2461:29: error: 'SCM_REDUNDANT'
undeclared (first use in this function)
2461 | put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2461:29: note: each undeclared identifier is reported only once for
each function it appears in
lib/vsprintf.c: In function 'va_format':
lib/vsprintf.c:1620:2: warning: function 'va_format' might be a candidate for
'gnu_printf' format attribute [-Wsuggest-attribute=format]
1620 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
| ^~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for COMPAT_BINFMT_ELF
Depends on COMPAT && BINFMT_ELF
Selected by
- COMPAT && SPARC64
vim +/SCM_REDUNDANT +2461 include/net/sock.h
8f932f762e7928 Willem de Bruijn 2018-12-17 2453
e804afb5449b93 WingMan Kwok 2019-05-07 2454 static inline void
sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
e804afb5449b93 WingMan Kwok 2019-05-07 2455 struct sk_buff *skb)
e804afb5449b93 WingMan Kwok 2019-05-07 2456 {
e804afb5449b93 WingMan Kwok 2019-05-07 2457 struct skb_redundant_info *sred;
e804afb5449b93 WingMan Kwok 2019-05-07 2458
e804afb5449b93 WingMan Kwok 2019-05-07 2459 sred = skb_redinfo(skb);
e804afb5449b93 WingMan Kwok 2019-05-07 2460 if (sred->lsdu_size)
e804afb5449b93 WingMan Kwok 2019-05-07 @2461 put_cmsg(msg, SOL_SOCKET,
SCM_REDUNDANT, sizeof(*sred), sred);
70e28ef2c9afeb WingMan Kwok 2018-03-02 2462
70e28ef2c9afeb WingMan Kwok 2018-03-02 2463 __sock_recv_redinfo_timestamp(msg, sk,
skb);
70e28ef2c9afeb WingMan Kwok 2018-03-02 2464
:::::: The code at line 2461 was first introduced by commit
:::::: e804afb5449b93d5b543a1685b0b2fab328873fc net: packet: pass on redundant net info in
packet_recvmsg
:::::: TO: WingMan Kwok <w-kwok2(a)ti.com>
:::::: CC: Lokesh Vutla <lokeshvutla(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org