Re: [PATCH] dsa: fix for_each_child.cocci warnings
by Florian Fainelli
On 7/11/2021 10:10 AM, patchwork-bot+netdevbpf(a)kernel.org wrote:
> Hello:
>
> This patch was applied to netdev/net.git (refs/heads/master):
>
> On Sun, 11 Jul 2021 18:12:56 +0200 (CEST) you wrote:
>> From: kernel test robot <lkp(a)intel.com>
>>
>> For_each_available_child_of_node should have of_node_put() before
>> return around line 423.
>>
>> Generated by: scripts/coccinelle/iterators/for_each_child.cocci
>>
>> [...]
>
> Here is the summary with links:
> - dsa: fix for_each_child.cocci warnings
> https://git.kernel.org/netdev/net/c/84f7e0bb4809
The patch subject should have been:
net: dsa: microchip: fix for_each_child.cocci warning
(singular, not plural), yes I like to paint my bike shed blue.
--
Florian
1 year, 2 months
[mhiramat:kprobes/kretprobe-stackfix-v9 14/22] arch/x86/kernel/kprobes/core.c:1061:1: warning: data definition has no type or storage class
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git kprobes/kretprobe-stackfix-v9
head: 7a69e2b70adeabbf3e3c1be8a18b43188c4d085d
commit: e4d6ef1b03f84257031acd58c208dd0ffa92548c [14/22] x86/kprobes: Add UNWIND_HINT_FUNC on kretprobe_trampoline()
config: i386-randconfig-a002-20210712 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git/commit...
git remote add mhiramat https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git
git fetch --no-tags mhiramat kprobes/kretprobe-stackfix-v9
git checkout e4d6ef1b03f84257031acd58c208dd0ffa92548c
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/kprobes/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/kprobes/core.c:1061:1: warning: data definition has no type or storage class
1061 | STACK_FRAME_NON_STANDARD_FP(__kretprobe_trampoline);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/kprobes/core.c:1061:1: error: type defaults to 'int' in declaration of 'STACK_FRAME_NON_STANDARD_FP' [-Werror=implicit-int]
>> arch/x86/kernel/kprobes/core.c:1061:1: warning: parameter names (without types) in function declaration
arch/x86/kernel/kprobes/core.c:1066:24: warning: no previous prototype for 'trampoline_handler' [-Wmissing-prototypes]
1066 | __used __visible void *trampoline_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1061 arch/x86/kernel/kprobes/core.c
1015
1016 /*
1017 * When a retprobed function returns, this code saves registers and
1018 * calls trampoline_handler() runs, which calls the kretprobe's handler.
1019 */
1020 asm(
1021 ".text\n"
1022 ".global __kretprobe_trampoline\n"
1023 ".type __kretprobe_trampoline, @function\n"
1024 "__kretprobe_trampoline:\n"
1025 /* We don't bother saving the ss register */
1026 #ifdef CONFIG_X86_64
1027 " pushq %rsp\n"
1028 UNWIND_HINT_FUNC
1029 " pushfq\n"
1030 SAVE_REGS_STRING
1031 " movq %rsp, %rdi\n"
1032 " call trampoline_handler\n"
1033 /* Replace saved sp with true return address. */
1034 " movq %rax, 19*8(%rsp)\n"
1035 RESTORE_REGS_STRING
1036 " popfq\n"
1037 #else
1038 " pushl %esp\n"
1039 UNWIND_HINT_FUNC
1040 " pushfl\n"
1041 SAVE_REGS_STRING
1042 " movl %esp, %eax\n"
1043 " call trampoline_handler\n"
1044 /* Replace saved sp with true return address. */
1045 " movl %eax, 15*4(%esp)\n"
1046 RESTORE_REGS_STRING
1047 " popfl\n"
1048 #endif
1049 " ret\n"
1050 ".size __kretprobe_trampoline, .-__kretprobe_trampoline\n"
1051 );
1052 NOKPROBE_SYMBOL(__kretprobe_trampoline);
1053 /*
1054 * __kretprobe_trampoline() skips updating frame pointer. The frame pointer
1055 * saved in trampoline_handler() points to the real caller function's
1056 * frame pointer. Thus the __kretprobe_trampoline() doesn't have a
1057 * standard stack frame with CONFIG_FRAME_POINTER=y.
1058 * Let's mark it non-standard function. Anyway, FP unwinder can correctly
1059 * unwind without the hint.
1060 */
> 1061 STACK_FRAME_NON_STANDARD_FP(__kretprobe_trampoline);
1062
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[chrome-os:chromeos-5.10 120/151] include/linux/page-flags-layout.h:104:2: error: #error "Not enough bits in page flags"
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: f6d2f336816428b2abedbaed3ce2713763b0e68c
commit: e7e403962735ee554bd93e3050bad212fd8c665d [120/151] BACKPORT: FROMLIST: mm: multigenerational lru: Kconfig
config: i386-randconfig-a015-20210712 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout e7e403962735ee554bd93e3050bad212fd8c665d
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 prepare
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/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/page-flags-layout.h:104:2: error: #error "Not enough bits in page flags"
104 | #error "Not enough bits in page flags"
| ^~~~~
--
In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/page-flags-layout.h:104:2: error: #error "Not enough bits in page flags"
104 | #error "Not enough bits in page flags"
| ^~~~~
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1218: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/page-flags-layout.h:104:2: error: #error "Not enough bits in page flags"
104 | #error "Not enough bits in page flags"
| ^~~~~
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1218: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +104 include/linux/page-flags-layout.h
75980e97daccfc Peter Zijlstra 2013-02-22 101
5d9f844e96a7e1 Yu Zhao 2021-01-25 102 #if SECTIONS_WIDTH+ZONES_WIDTH+LRU_GEN_WIDTH+LRU_USAGE_WIDTH+NODES_WIDTH+LAST_CPUPID_WIDTH+KASAN_TAG_WIDTH \
2813b9c0296259 Andrey Konovalov 2018-12-28 103 > BITS_PER_LONG - NR_PAGEFLAGS
ee38d94a0ad898 Arnd Bergmann 2019-08-02 @104 #error "Not enough bits in page flags"
2813b9c0296259 Andrey Konovalov 2018-12-28 105 #endif
2813b9c0296259 Andrey Konovalov 2018-12-28 106
:::::: The code at line 104 was first introduced by commit
:::::: ee38d94a0ad89890b770f6c876263cf9fcbfde84 page flags: prioritize kasan bits over last-cpuid
:::::: TO: Arnd Bergmann <arnd(a)arndb.de>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[PATCH] dsa: fix for_each_child.cocci warnings
by Julia Lawall
From: kernel test robot <lkp(a)intel.com>
For_each_available_child_of_node should have of_node_put() before
return around line 423.
Generated by: scripts/coccinelle/iterators/for_each_child.cocci
CC: Alexander Lobakin <alobakin(a)pm.me>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: Julia Lawall <julia.lawall(a)inria.fr>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: de5540965853e514a85d3b775e9049deb85a2ff3
commit: 227d72063fccb2d19b30fb4197fba478514f7d83 dsa: simplify Kconfig symbols and dependencies
:::::: branch date: 15 hours ago
:::::: commit date: 4 months ago
ksz_common.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -419,8 +419,10 @@ int ksz_switch_register(struct ksz_devic
if (of_property_read_u32(port, "reg",
&port_num))
continue;
- if (!(dev->port_mask & BIT(port_num)))
+ if (!(dev->port_mask & BIT(port_num))) {
+ of_node_put(port);
return -EINVAL;
+ }
of_get_phy_mode(port,
&dev->ports[port_num].interface);
}
1 year, 2 months
stackdepot.c:undefined reference to `__irqentry_text_start'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: de5540965853e514a85d3b775e9049deb85a2ff3
commit: 788691464c29455346dc613a3b43c2fb9e5757a4 mm/slub: use stackdepot to save stack trace in objects
date: 3 days ago
config: arc-randconfig-r004-20210711 (attached as .config)
compiler: arc-elf-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 788691464c29455346dc613a3b43c2fb9e5757a4
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
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 >>):
arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks':
>> stackdepot.c:(.text+0x5a): undefined reference to `__irqentry_text_start'
>> arc-elf-ld: stackdepot.c:(.text+0x5a): undefined reference to `__irqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x62): undefined reference to `__irqentry_text_end'
arc-elf-ld: stackdepot.c:(.text+0x62): undefined reference to `__irqentry_text_end'
arc-elf-ld: stackdepot.c:(.text+0x6a): undefined reference to `__softirqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x6a): undefined reference to `__softirqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x72): undefined reference to `__softirqentry_text_end'
arc-elf-ld: stackdepot.c:(.text+0x72): undefined reference to `__softirqentry_text_end'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[ti:ti-linux-5.10.y 6282/6309] include/net/sock.h:2523:29: error: use of undeclared identifier 'SCM_REDUNDANT'
by kernel test robot
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(a)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
1 year, 2 months