All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ti:ti-linux-5.10.y 6282/6309] include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
Date: Sun, 11 Jul 2021 23:12:10 +0800	[thread overview]
Message-ID: <202107112337.DMdnfEtf-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 13719 bytes --]

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.10.y
head:   31b50abb3ee1c8f78cb2d61c6fbbf074c7f5d99f
commit: e355bf097bb11257afeadf6665e51f224eeb93a7 [6282/6309] net: packet: Pass on redundant net info in packet_recvmsg
config: mips-randconfig-r016-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-linux-5.10.y
        git checkout e355bf097bb11257afeadf6665e51f224eeb93a7
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash kernel/ net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from kernel/sysctl.c:54:
   In file included from include/linux/nfs_fs.h:32:
   In file included from include/linux/sunrpc/clnt.h:28:
   In file included from include/net/ipv6.h:12:
   In file included from include/linux/ipv6.h:87:
   In file included from include/linux/tcp.h:19:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   1 error generated.
--
   In file included from kernel/audit.c:53:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   kernel/audit.c:1778:14: warning: no previous prototype for function 'audit_serial' [-Wmissing-prototypes]
   unsigned int audit_serial(void)
                ^
   kernel/audit.c:1778:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned int audit_serial(void)
   ^
   static 
   1 warning and 1 error generated.
--
   In file included from net/bpf/test_run.c:10:
   In file included from include/net/bpf_sk_storage.h:12:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/bpf/test_run.c:121:14: warning: no previous prototype for function 'bpf_fentry_test1' [-Wmissing-prototypes]
   int noinline bpf_fentry_test1(int a)
                ^
   net/bpf/test_run.c:121:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test1(int a)
   ^
   static 
   net/bpf/test_run.c:126:14: warning: no previous prototype for function 'bpf_fentry_test2' [-Wmissing-prototypes]
   int noinline bpf_fentry_test2(int a, u64 b)
                ^
   net/bpf/test_run.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test2(int a, u64 b)
   ^
   static 
   net/bpf/test_run.c:131:14: warning: no previous prototype for function 'bpf_fentry_test3' [-Wmissing-prototypes]
   int noinline bpf_fentry_test3(char a, int b, u64 c)
                ^
   net/bpf/test_run.c:131:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test3(char a, int b, u64 c)
   ^
   static 
   net/bpf/test_run.c:136:14: warning: no previous prototype for function 'bpf_fentry_test4' [-Wmissing-prototypes]
   int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
                ^
   net/bpf/test_run.c:136:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
   ^
   static 
   net/bpf/test_run.c:141:14: warning: no previous prototype for function 'bpf_fentry_test5' [-Wmissing-prototypes]
   int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
                ^
   net/bpf/test_run.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
   ^
   static 
   net/bpf/test_run.c:146:14: warning: no previous prototype for function 'bpf_fentry_test6' [-Wmissing-prototypes]
   int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
                ^
   net/bpf/test_run.c:146:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
   ^
   static 
   net/bpf/test_run.c:155:14: warning: no previous prototype for function 'bpf_fentry_test7' [-Wmissing-prototypes]
   int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
                ^
   net/bpf/test_run.c:155:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
   ^
   static 
   net/bpf/test_run.c:160:14: warning: no previous prototype for function 'bpf_fentry_test8' [-Wmissing-prototypes]
   int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
                ^
   net/bpf/test_run.c:160:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
   ^
   static 
   net/bpf/test_run.c:165:14: warning: no previous prototype for function 'bpf_modify_return_test' [-Wmissing-prototypes]
   int noinline bpf_modify_return_test(int a, int *b)
                ^
   net/bpf/test_run.c:165:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_modify_return_test(int a, int *b)
   ^
   static 
   9 warnings and 1 error generated.
--
   In file included from net/ipv4/route.c:83:
   In file included from include/linux/mroute.h:10:
   In file included from include/linux/mroute_base.h:8:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/ipv4/route.c:885:6: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable]
           int log_martians;
               ^
   1 warning and 1 error generated.
--
   In file included from net/ipv4/ah4.c:9:
   In file included from include/net/ip.h:28:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/ipv4/ah4.c:512:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                           aalg_desc->uinfo.auth.icv_fullbits / 8);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:373:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from net/ipv4/esp4.c:8:
   In file included from include/net/ip.h:28:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/ipv4/esp4.c:1117:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                                   aalg_desc->uinfo.auth.icv_fullbits / 8);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:373:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from net/rxrpc/rxkad.c:14:
   In file included from include/linux/udp.h:16:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/rxrpc/rxkad.c:344:33: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
           _leave(" = %d [set %hx]", ret, y);
                              ~~~         ^
                              %x
   net/rxrpc/ar-internal.h:1172:63: note: expanded from macro '_leave'
   #define _leave(FMT,...) no_printk("<== %s()"FMT"",__func__ ,##__VA_ARGS__)
                                               ~~~               ^~~~~~~~~~~
   include/linux/printk.h:140:17: note: expanded from macro 'no_printk'
                   printk(fmt, ##__VA_ARGS__);             \
                          ~~~    ^~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from net/l2tp/l2tp_debugfs.c:18:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/l2tp/l2tp_debugfs.c:189:40: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                   seq_printf(m, "   nr %hu, ns %hu\n", session->nr, session->ns);
                                        ~~~             ^~~~~~~~~~~
                                        %u
   net/l2tp/l2tp_debugfs.c:189:53: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                   seq_printf(m, "   nr %hu, ns %hu\n", session->nr, session->ns);
                                                ~~~                  ^~~~~~~~~~~
                                                %u
   net/l2tp/l2tp_debugfs.c:198:32: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                      session->l2specific_type, l2tp_get_l2specific_len(session));
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/l2tp/l2tp_debugfs.c:221:6: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                      session->nr, session->ns,
                      ^~~~~~~~~~~
   net/l2tp/l2tp_debugfs.c:221:19: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                      session->nr, session->ns,
                                   ^~~~~~~~~~~
   5 warnings and 1 error generated.
--
   In file included from net/l2tp/l2tp_core.c:40:
   In file included from include/linux/udp.h:16:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   In file included from net/l2tp/l2tp_core.c:67:
   In file included from net/l2tp/trace.h:211:
   include/trace/define_trace.h:95:10: fatal error: './trace.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:85:1: note: expanded from here
   "./trace.h"
   ^~~~~~~~~~~
   2 errors generated.


vim +/SCM_REDUNDANT +2523 include/net/sock.h

  2514	
  2515	DECLARE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
  2516	static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
  2517						    struct sk_buff *skb)
  2518	{
  2519		struct skb_redundant_info *sred;
  2520	
  2521		sred = skb_redinfo(skb);
  2522		if (sred->lsdu_size)
> 2523			put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
  2524	}
  2525	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28863 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: WingMan Kwok <w-kwok2@ti.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Murali Karicheri <m-karicheri2@ti.com>,
	Lokesh Vutla <lokeshvutla@ti.com>,
	Kishon Vijay Abraham I <kishon@ti.com>
Subject: [ti:ti-linux-5.10.y 6282/6309] include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
Date: Sun, 11 Jul 2021 23:12:10 +0800	[thread overview]
Message-ID: <202107112337.DMdnfEtf-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 13474 bytes --]

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.10.y
head:   31b50abb3ee1c8f78cb2d61c6fbbf074c7f5d99f
commit: e355bf097bb11257afeadf6665e51f224eeb93a7 [6282/6309] net: packet: Pass on redundant net info in packet_recvmsg
config: mips-randconfig-r016-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-linux-5.10.y
        git checkout e355bf097bb11257afeadf6665e51f224eeb93a7
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash kernel/ net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from kernel/sysctl.c:54:
   In file included from include/linux/nfs_fs.h:32:
   In file included from include/linux/sunrpc/clnt.h:28:
   In file included from include/net/ipv6.h:12:
   In file included from include/linux/ipv6.h:87:
   In file included from include/linux/tcp.h:19:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   1 error generated.
--
   In file included from kernel/audit.c:53:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   kernel/audit.c:1778:14: warning: no previous prototype for function 'audit_serial' [-Wmissing-prototypes]
   unsigned int audit_serial(void)
                ^
   kernel/audit.c:1778:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned int audit_serial(void)
   ^
   static 
   1 warning and 1 error generated.
--
   In file included from net/bpf/test_run.c:10:
   In file included from include/net/bpf_sk_storage.h:12:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/bpf/test_run.c:121:14: warning: no previous prototype for function 'bpf_fentry_test1' [-Wmissing-prototypes]
   int noinline bpf_fentry_test1(int a)
                ^
   net/bpf/test_run.c:121:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test1(int a)
   ^
   static 
   net/bpf/test_run.c:126:14: warning: no previous prototype for function 'bpf_fentry_test2' [-Wmissing-prototypes]
   int noinline bpf_fentry_test2(int a, u64 b)
                ^
   net/bpf/test_run.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test2(int a, u64 b)
   ^
   static 
   net/bpf/test_run.c:131:14: warning: no previous prototype for function 'bpf_fentry_test3' [-Wmissing-prototypes]
   int noinline bpf_fentry_test3(char a, int b, u64 c)
                ^
   net/bpf/test_run.c:131:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test3(char a, int b, u64 c)
   ^
   static 
   net/bpf/test_run.c:136:14: warning: no previous prototype for function 'bpf_fentry_test4' [-Wmissing-prototypes]
   int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
                ^
   net/bpf/test_run.c:136:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
   ^
   static 
   net/bpf/test_run.c:141:14: warning: no previous prototype for function 'bpf_fentry_test5' [-Wmissing-prototypes]
   int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
                ^
   net/bpf/test_run.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
   ^
   static 
   net/bpf/test_run.c:146:14: warning: no previous prototype for function 'bpf_fentry_test6' [-Wmissing-prototypes]
   int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
                ^
   net/bpf/test_run.c:146:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
   ^
   static 
   net/bpf/test_run.c:155:14: warning: no previous prototype for function 'bpf_fentry_test7' [-Wmissing-prototypes]
   int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
                ^
   net/bpf/test_run.c:155:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
   ^
   static 
   net/bpf/test_run.c:160:14: warning: no previous prototype for function 'bpf_fentry_test8' [-Wmissing-prototypes]
   int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
                ^
   net/bpf/test_run.c:160:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
   ^
   static 
   net/bpf/test_run.c:165:14: warning: no previous prototype for function 'bpf_modify_return_test' [-Wmissing-prototypes]
   int noinline bpf_modify_return_test(int a, int *b)
                ^
   net/bpf/test_run.c:165:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int noinline bpf_modify_return_test(int a, int *b)
   ^
   static 
   9 warnings and 1 error generated.
--
   In file included from net/ipv4/route.c:83:
   In file included from include/linux/mroute.h:10:
   In file included from include/linux/mroute_base.h:8:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/ipv4/route.c:885:6: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable]
           int log_martians;
               ^
   1 warning and 1 error generated.
--
   In file included from net/ipv4/ah4.c:9:
   In file included from include/net/ip.h:28:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/ipv4/ah4.c:512:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                           aalg_desc->uinfo.auth.icv_fullbits / 8);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:373:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from net/ipv4/esp4.c:8:
   In file included from include/net/ip.h:28:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/ipv4/esp4.c:1117:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                                   aalg_desc->uinfo.auth.icv_fullbits / 8);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:373:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from net/rxrpc/rxkad.c:14:
   In file included from include/linux/udp.h:16:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/rxrpc/rxkad.c:344:33: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
           _leave(" = %d [set %hx]", ret, y);
                              ~~~         ^
                              %x
   net/rxrpc/ar-internal.h:1172:63: note: expanded from macro '_leave'
   #define _leave(FMT,...) no_printk("<== %s()"FMT"",__func__ ,##__VA_ARGS__)
                                               ~~~               ^~~~~~~~~~~
   include/linux/printk.h:140:17: note: expanded from macro 'no_printk'
                   printk(fmt, ##__VA_ARGS__);             \
                          ~~~    ^~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from net/l2tp/l2tp_debugfs.c:18:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   net/l2tp/l2tp_debugfs.c:189:40: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                   seq_printf(m, "   nr %hu, ns %hu\n", session->nr, session->ns);
                                        ~~~             ^~~~~~~~~~~
                                        %u
   net/l2tp/l2tp_debugfs.c:189:53: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                   seq_printf(m, "   nr %hu, ns %hu\n", session->nr, session->ns);
                                                ~~~                  ^~~~~~~~~~~
                                                %u
   net/l2tp/l2tp_debugfs.c:198:32: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                      session->l2specific_type, l2tp_get_l2specific_len(session));
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/l2tp/l2tp_debugfs.c:221:6: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                      session->nr, session->ns,
                      ^~~~~~~~~~~
   net/l2tp/l2tp_debugfs.c:221:19: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
                      session->nr, session->ns,
                                   ^~~~~~~~~~~
   5 warnings and 1 error generated.
--
   In file included from net/l2tp/l2tp_core.c:40:
   In file included from include/linux/udp.h:16:
   In file included from include/net/inet_sock.h:22:
>> include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
   In file included from net/l2tp/l2tp_core.c:67:
   In file included from net/l2tp/trace.h:211:
   include/trace/define_trace.h:95:10: fatal error: './trace.h' file not found
   #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
   # define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
                                  ^~~~~~~~~~~~~~~~~~~~~~~
   include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
   # define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
   #define __stringify(x...)       __stringify_1(x)
                                   ^~~~~~~~~~~~~~~~
   include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
   #define __stringify_1(x...)     #x
                                   ^~
   <scratch space>:85:1: note: expanded from here
   "./trace.h"
   ^~~~~~~~~~~
   2 errors generated.


vim +/SCM_REDUNDANT +2523 include/net/sock.h

  2514	
  2515	DECLARE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
  2516	static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
  2517						    struct sk_buff *skb)
  2518	{
  2519		struct skb_redundant_info *sred;
  2520	
  2521		sred = skb_redinfo(skb);
  2522		if (sred->lsdu_size)
> 2523			put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
  2524	}
  2525	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28863 bytes --]

             reply	other threads:[~2021-07-11 15:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-11 15:12 kernel test robot [this message]
2021-07-11 15:12 ` [ti:ti-linux-5.10.y 6282/6309] include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107112337.DMdnfEtf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.