tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: e6f6398802d41ad655b6a4108be588d533e3c1c4
commit: e804afb5449b93d5b543a1685b0b2fab328873fc [9147/9274] net: packet: pass on
redundant net info in packet_recvmsg
config: parisc-randconfig-r011-20200810 (attached as .config)
compiler: hppa-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=parisc
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/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/icmpv6.h:5,
from include/linux/ipv6.h:86,
from include/net/ipv6.h:12,
from include/net/6lowpan.h:58,
from net//6lowpan/core.c:10:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from include/net/6lowpan.h:58,
from net//6lowpan/core.c:10:
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 arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/net/sock.h:38,
from net//dccp/ccid.h:13,
from net//dccp/ccid.c:13:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from net//dccp/ccid.h:13,
from net//dccp/ccid.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//dccp/ccid.c: In function 'ccid_kmem_cache_create':
net//dccp/ccid.c:85:2: warning: function 'ccid_kmem_cache_create' might be a
candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
85 | vsnprintf(slab_name_fmt, CCID_SLAB_NAME_LENGTH, fmt, args);
| ^~~~~~~~~
--
In file included from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/dccp.h:7,
from net//dccp/output.c:9:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from include/net/inet_sock.h:22,
from include/net/inet_connection_sock.h:20,
from include/linux/dccp.h:13,
from net//dccp/output.c:9:
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//dccp/output.c: In function 'dccp_xmit_packet':
net//dccp/output.c:279:57: warning: suggest braces around empty body in an 'if'
statement [-Wempty-body]
279 | dccp_pr_debug("transmit_skb() returned err=%d\n", err);
| ^
--
In file included from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/dccp.h:7,
from net//dccp/dccp.h:12,
from net//dccp/ackvec.c:9:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from include/net/inet_sock.h:22,
from include/net/inet_connection_sock.h:20,
from include/linux/dccp.h:13,
from net//dccp/dccp.h:12,
from net//dccp/ackvec.c:9:
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//dccp/ackvec.c: In function 'dccp_ackvec_update_old':
net//dccp/ackvec.c:163:45: warning: suggest braces around empty body in an
'else' statement [-Wempty-body]
163 | (unsigned long long)seqno, state);
| ^
--
In file included from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/dccp.h:7,
from net//dccp/proto.c:9:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from include/net/inet_sock.h:22,
from include/net/inet_connection_sock.h:20,
from include/linux/dccp.h:13,
from net//dccp/proto.c:9:
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//dccp/trace.h:84,
from net//dccp/proto.c:39:
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/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/netdevice.h:37,
from include/linux/if_bridge.h:12,
from net//dsa/tag_8021q.c:9:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from include/net/inetpeer.h:16,
from include/net/ip_fib.h:20,
from include/net/switchdev.h:13,
from include/net/dsa.h:23,
from net//dsa/dsa_priv.h:13,
from net//dsa/tag_8021q.c:12:
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//dsa/tag_8021q.c: At top level:
net//dsa/tag_8021q.c:65:5: warning: no previous prototype for
'dsa_8021q_tx_vid' [-Wmissing-prototypes]
65 | u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port)
| ^~~~~~~~~~~~~~~~
net//dsa/tag_8021q.c:75:5: warning: no previous prototype for
'dsa_8021q_rx_vid' [-Wmissing-prototypes]
75 | u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port)
| ^~~~~~~~~~~~~~~~
net//dsa/tag_8021q.c:83:5: warning: no previous prototype for
'dsa_8021q_rx_switch_id' [-Wmissing-prototypes]
83 | int dsa_8021q_rx_switch_id(u16 vid)
| ^~~~~~~~~~~~~~~~~~~~~~
net//dsa/tag_8021q.c:90:5: warning: no previous prototype for
'dsa_8021q_rx_source_port' [-Wmissing-prototypes]
90 | int dsa_8021q_rx_source_port(u16 vid)
| ^~~~~~~~~~~~~~~~~~~~~~~~
net//dsa/tag_8021q.c:221:5: warning: no previous prototype for
'dsa_port_setup_8021q_tagging' [-Wmissing-prototypes]
221 | int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int port, bool
enabled)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
net//dsa/tag_8021q.c:292:17: warning: no previous prototype for
'dsa_8021q_xmit' [-Wmissing-prototypes]
292 | struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev,
| ^~~~~~~~~~~~~~
--
In file included from include/linux/mm.h:99,
from net//ipv4/route.c:68:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
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/linux/mm.h:99,
from net//ipv6/af_inet6.c:31:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
In file included from include/linux/tcp.h:19,
from include/net/tcp.h:20,
from include/linux/netfilter_ipv6.h:11,
from net//ipv6/af_inet6.c:41:
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//ipv6/af_inet6.c: At top level:
net//ipv6/af_inet6.c:569:5: warning: no previous prototype for 'inet6_sendmsg'
[-Wmissing-prototypes]
569 | int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
| ^~~~~~~~~~~~~
net//ipv6/af_inet6.c:582:5: warning: no previous prototype for 'inet6_recvmsg'
[-Wmissing-prototypes]
582 | int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
| ^~~~~~~~~~~~~
..
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