[congwang:sockmap1 6/7] include/linux/skmsg.h:475:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff
by kernel test robot
tree: https://github.com/congwang/linux.git sockmap1
head: b2dfda210226f6718a7bab6ba27fca4958cf5fde
commit: a2a4da967b9c6fb5571d8cc68866812503806f85 [6/7] fix
config: x86_64-randconfig-r033-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/congwang/linux/commit/a2a4da967b9c6fb5571d8cc688668125...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sockmap1
git checkout a2a4da967b9c6fb5571d8cc68866812503806f85
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 net/core/filter.c:37:
>> include/linux/skmsg.h:475:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:473:48: note: variable 'skb' declared const here
void skb_bpf_set_ingress(const struct sk_buff *skb)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:481:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir = (unsigned long)sk_redir;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:483:17: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
3 errors generated.
--
In file included from net/core/skmsg.c:4:
>> include/linux/skmsg.h:475:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:473:48: note: variable 'skb' declared const here
void skb_bpf_set_ingress(const struct sk_buff *skb)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:481:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir = (unsigned long)sk_redir;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:483:17: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
net/core/skmsg.c:819:21: warning: unused variable 'tcp' [-Wunused-variable]
struct tcp_skb_cb *tcp;
^
1 warning and 3 errors generated.
--
In file included from net/ipv4/esp4.c:22:
In file included from include/net/espintcp.h:6:
>> include/linux/skmsg.h:475:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:473:48: note: variable 'skb' declared const here
void skb_bpf_set_ingress(const struct sk_buff *skb)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:481:16: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir = (unsigned long)sk_redir;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:483:17: error: cannot assign to variable 'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
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 3 errors generated.
vim +475 include/linux/skmsg.h
471
472 static inline
473 void skb_bpf_set_ingress(const struct sk_buff *skb)
474 {
> 475 skb->sk_redir |= BPF_F_INGRESS;
476 }
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[congwang:sockmap1 1/7] net/ipv4/tcp_bpf.c:563:31: error: 'sock_map_unhash' undeclared
by kernel test robot
tree: https://github.com/congwang/linux.git sockmap1
head: b2dfda210226f6718a7bab6ba27fca4958cf5fde
commit: ade71f1d50ccf7cbbd5fcd8bd741d9142c7dca77 [1/7] bpf: clean up sockmap related Kconfigs
config: arm-randconfig-r005-20210215 (attached as .config)
compiler: arm-linux-gnueabi-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://github.com/congwang/linux/commit/ade71f1d50ccf7cbbd5fcd8bd741d914...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sockmap1
git checkout ade71f1d50ccf7cbbd5fcd8bd741d9142c7dca77
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
net/ipv4/tcp_bpf.c: In function 'tcp_bpf_rebuild_protos':
>> net/ipv4/tcp_bpf.c:563:31: error: 'sock_map_unhash' undeclared (first use in this function)
563 | prot[TCP_BPF_BASE].unhash = sock_map_unhash;
| ^~~~~~~~~~~~~~~
net/ipv4/tcp_bpf.c:563:31: note: each undeclared identifier is reported only once for each function it appears in
>> net/ipv4/tcp_bpf.c:564:30: error: 'sock_map_close' undeclared (first use in this function); did you mean 'sk_msg_clone'?
564 | prot[TCP_BPF_BASE].close = sock_map_close;
| ^~~~~~~~~~~~~~
| sk_msg_clone
--
net/ipv4/udp_bpf.c: In function 'udp_bpf_rebuild_protos':
>> net/ipv4/udp_bpf.c:21:17: error: 'sock_map_unhash' undeclared (first use in this function)
21 | prot->unhash = sock_map_unhash;
| ^~~~~~~~~~~~~~~
net/ipv4/udp_bpf.c:21:17: note: each undeclared identifier is reported only once for each function it appears in
>> net/ipv4/udp_bpf.c:22:17: error: 'sock_map_close' undeclared (first use in this function); did you mean 'sk_msg_clone'?
22 | prot->close = sock_map_close;
| ^~~~~~~~~~~~~~
| sk_msg_clone
vim +/sock_map_unhash +563 net/ipv4/tcp_bpf.c
604326b41a6fb9 Daniel Borkmann 2018-10-13 558
604326b41a6fb9 Daniel Borkmann 2018-10-13 559 static void tcp_bpf_rebuild_protos(struct proto prot[TCP_BPF_NUM_CFGS],
604326b41a6fb9 Daniel Borkmann 2018-10-13 560 struct proto *base)
604326b41a6fb9 Daniel Borkmann 2018-10-13 561 {
604326b41a6fb9 Daniel Borkmann 2018-10-13 562 prot[TCP_BPF_BASE] = *base;
f747632b608f90 Lorenz Bauer 2020-03-09 @563 prot[TCP_BPF_BASE].unhash = sock_map_unhash;
f747632b608f90 Lorenz Bauer 2020-03-09 @564 prot[TCP_BPF_BASE].close = sock_map_close;
604326b41a6fb9 Daniel Borkmann 2018-10-13 565 prot[TCP_BPF_BASE].recvmsg = tcp_bpf_recvmsg;
604326b41a6fb9 Daniel Borkmann 2018-10-13 566 prot[TCP_BPF_BASE].stream_memory_read = tcp_bpf_stream_read;
604326b41a6fb9 Daniel Borkmann 2018-10-13 567
604326b41a6fb9 Daniel Borkmann 2018-10-13 568 prot[TCP_BPF_TX] = prot[TCP_BPF_BASE];
604326b41a6fb9 Daniel Borkmann 2018-10-13 569 prot[TCP_BPF_TX].sendmsg = tcp_bpf_sendmsg;
604326b41a6fb9 Daniel Borkmann 2018-10-13 570 prot[TCP_BPF_TX].sendpage = tcp_bpf_sendpage;
604326b41a6fb9 Daniel Borkmann 2018-10-13 571 }
604326b41a6fb9 Daniel Borkmann 2018-10-13 572
:::::: The code at line 563 was first introduced by commit
:::::: f747632b608f90217a4e9ebb1deba8a37612aa32 bpf: sockmap: Move generic sockmap hooks from BPF TCP
:::::: TO: Lorenz Bauer <lmb(a)cloudflare.com>
:::::: CC: Daniel Borkmann <daniel(a)iogearbox.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 11488/11541] ld.lld: error: debug_core.c:(.text+0x3C38): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: Ingo Molnar <mingo(a)kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896
commit: 5e055bd14829caf08a45b8de223fbd6047539595 [11488/11541] Merge remote-tracking branch 'tip/auto-latest'
config: riscv-randconfig-r001-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 5e055bd14829caf08a45b8de223fbd6047539595
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.text+0x3C38): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: debug_core.c:(.text+0x3C70): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x3E94): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x4314): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x45CC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x46E2): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x474E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x47A6): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x49C0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x4A26): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x4A62): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x4B78): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x4C6E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x4D14): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x5338): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0x14C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0x2AE): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[zen-kernel-zen-kernel:5.11/clearlinux 8/19] lib/raid6/algos.c:138:3: error: #error "TODO"
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.11/clearlinux
head: fede6bb5df1f596da7a69493ea8698cef4b93f68
commit: 8bca7b9c84942da91c8dbf901dbafac503567545 [8/19] raid6: add Kconfig option to skip raid6 benchmarking
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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
# https://github.com/zen-kernel/zen-kernel/commit/8bca7b9c84942da91c8dbf901...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.11/clearlinux
git checkout 8bca7b9c84942da91c8dbf901dbafac503567545
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
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 >>):
lib/raid6/algos.c: In function 'raid6_select_algo':
>> lib/raid6/algos.c:138:3: error: #error "TODO"
138 | # error "TODO"
| ^~~~~
lib/raid6/algos.c:130:28: warning: unused variable 'gen_fallback' [-Wunused-variable]
130 | const struct raid6_calls *gen_fallback;
| ^~~~~~~~~~~~
vim +/TODO +138 lib/raid6/algos.c
123
124 #ifdef CONFIG_RAID6_FORCE_ALGO
125 /* TODO don't compile in algos that will never be used */
126 int __init raid6_select_algo(void)
127 {
128 const struct raid6_recov_calls *recov_fallback = &raid6_recov_intx1;
129 const struct raid6_recov_calls *recov_algo;
130 const struct raid6_calls *gen_fallback;
131 const struct raid6_calls *gen_algo;
132
133 #if defined(__i386__)
134 gen_fallback = &raid6_intx32;
135 #elif defined(__x86_64__)
136 gen_fallback = &raid6_sse2x2;
137 #else
> 138 # error "TODO"
139 #endif
140
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[zen-kernel-zen-kernel:5.11/bbr2 16/30] include/net/sock.h:382:34: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.11/bbr2
head: 5ded94b0a37ea404ce97aa284b7c8dbfcc39d788
commit: e867d3b3a67bf9d223c8a7dd0e9acb1864c7e519 [16/30] net-tcp_bbr: v2: BBRv2 ("bbr2") congestion control for Linux TCP
config: nds32-randconfig-r014-20210216 (attached as .config)
compiler: nds32le-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
# https://github.com/zen-kernel/zen-kernel/commit/e867d3b3a67bf9d223c8a7dd0...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.11/bbr2
git checkout e867d3b3a67bf9d223c8a7dd0e9acb1864c7e519
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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/net/tcp.h:20,
from net/ipv4/tcp_bbr2.c:61:
net/ipv4/tcp_bbr2.c: In function 'bbr_debug':
>> include/net/sock.h:382:34: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
382 | #define sk_v6_daddr __sk_common.skc_v6_daddr
| ^~~~~~~~~~~~
net/ipv4/tcp_bbr2.c:545:11: note: in expansion of macro 'sk_v6_daddr'
545 | &sk->sk_v6_daddr, dport);
| ^~~~~~~~~~~
net/ipv4/tcp_bbr2.c: At top level:
net/ipv4/tcp_bbr2.c:2242:6: warning: no previous prototype for 'bbr2_main' [-Wmissing-prototypes]
2242 | void bbr2_main(struct sock *sk, const struct rate_sample *rs)
| ^~~~~~~~~
vim +382 include/net/sock.h
4dc6dc7162c08b Eric Dumazet 2009-07-15 362
68835aba4d9b74 Eric Dumazet 2010-11-30 363 #define sk_dontcopy_begin __sk_common.skc_dontcopy_begin
68835aba4d9b74 Eric Dumazet 2010-11-30 364 #define sk_dontcopy_end __sk_common.skc_dontcopy_end
4dc6dc7162c08b Eric Dumazet 2009-07-15 365 #define sk_hash __sk_common.skc_hash
5080546682bae3 Eric Dumazet 2013-10-02 366 #define sk_portpair __sk_common.skc_portpair
05dbc7b59481ca Eric Dumazet 2013-10-03 367 #define sk_num __sk_common.skc_num
05dbc7b59481ca Eric Dumazet 2013-10-03 368 #define sk_dport __sk_common.skc_dport
5080546682bae3 Eric Dumazet 2013-10-02 369 #define sk_addrpair __sk_common.skc_addrpair
5080546682bae3 Eric Dumazet 2013-10-02 370 #define sk_daddr __sk_common.skc_daddr
5080546682bae3 Eric Dumazet 2013-10-02 371 #define sk_rcv_saddr __sk_common.skc_rcv_saddr
^1da177e4c3f41 Linus Torvalds 2005-04-16 372 #define sk_family __sk_common.skc_family
^1da177e4c3f41 Linus Torvalds 2005-04-16 373 #define sk_state __sk_common.skc_state
^1da177e4c3f41 Linus Torvalds 2005-04-16 374 #define sk_reuse __sk_common.skc_reuse
055dc21a1d1d21 Tom Herbert 2013-01-22 375 #define sk_reuseport __sk_common.skc_reuseport
9fe516ba3fb29b Eric Dumazet 2014-06-27 376 #define sk_ipv6only __sk_common.skc_ipv6only
26abe14379f8e2 Eric W. Biederman 2015-05-08 377 #define sk_net_refcnt __sk_common.skc_net_refcnt
^1da177e4c3f41 Linus Torvalds 2005-04-16 378 #define sk_bound_dev_if __sk_common.skc_bound_dev_if
^1da177e4c3f41 Linus Torvalds 2005-04-16 379 #define sk_bind_node __sk_common.skc_bind_node
8feaf0c0a5488b Arnaldo Carvalho de Melo 2005-08-09 380 #define sk_prot __sk_common.skc_prot
07feaebfcc10cd Eric W. Biederman 2007-09-12 381 #define sk_net __sk_common.skc_net
efe4208f47f907 Eric Dumazet 2013-10-03 @382 #define sk_v6_daddr __sk_common.skc_v6_daddr
efe4208f47f907 Eric Dumazet 2013-10-03 383 #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr
33cf7c90fe2f97 Eric Dumazet 2015-03-11 384 #define sk_cookie __sk_common.skc_cookie
70da268b569d32 Eric Dumazet 2015-10-08 385 #define sk_incoming_cpu __sk_common.skc_incoming_cpu
8e5eb54d303b7c Eric Dumazet 2015-10-08 386 #define sk_flags __sk_common.skc_flags
ed53d0ab761f5c Eric Dumazet 2015-10-08 387 #define sk_rxhash __sk_common.skc_rxhash
efe4208f47f907 Eric Dumazet 2013-10-03 388
^1da177e4c3f41 Linus Torvalds 2005-04-16 389 socket_lock_t sk_lock;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 390 atomic_t sk_drops;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 391 int sk_rcvlowat;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 392 struct sk_buff_head sk_error_queue;
8b27dae5a2e89a Eric Dumazet 2019-03-22 393 struct sk_buff *sk_rx_skb_cache;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 394 struct sk_buff_head sk_receive_queue;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 395 /*
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 396 * The backlog queue is special, it is always used with
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 397 * the per-socket spinlock held and requires low latency
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 398 * access. Therefore we special case it's implementation.
b178bb3dfc30d9 Eric Dumazet 2010-11-16 399 * Note : rmem_alloc is in this structure to fill a hole
b178bb3dfc30d9 Eric Dumazet 2010-11-16 400 * on 64bit arches, not because its logically part of
b178bb3dfc30d9 Eric Dumazet 2010-11-16 401 * backlog.
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 402 */
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 403 struct {
b178bb3dfc30d9 Eric Dumazet 2010-11-16 404 atomic_t rmem_alloc;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 405 int len;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 406 struct sk_buff *head;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 407 struct sk_buff *tail;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 408 } sk_backlog;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 409 #define sk_rmem_alloc sk_backlog.rmem_alloc
2c8c56e15df3d4 Eric Dumazet 2014-11-11 410
9115e8cd2a0c6e Eric Dumazet 2016-12-03 411 int sk_forward_alloc;
e0d1095ae34054 Cong Wang 2013-08-01 412 #ifdef CONFIG_NET_RX_BUSY_POLL
dafcc4380deec2 Eliezer Tamir 2013-06-14 413 unsigned int sk_ll_usec;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 414 /* ===== mostly read cache line ===== */
9115e8cd2a0c6e Eric Dumazet 2016-12-03 415 unsigned int sk_napi_id;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 416 #endif
b178bb3dfc30d9 Eric Dumazet 2010-11-16 417 int sk_rcvbuf;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 418
b178bb3dfc30d9 Eric Dumazet 2010-11-16 419 struct sk_filter __rcu *sk_filter;
ceb5d58b217098 Eric Dumazet 2015-11-29 420 union {
eaefd1105bc431 Eric Dumazet 2011-02-18 421 struct socket_wq __rcu *sk_wq;
66256e0b15bd72 Randy Dunlap 2020-02-15 422 /* private: */
ceb5d58b217098 Eric Dumazet 2015-11-29 423 struct socket_wq *sk_wq_raw;
66256e0b15bd72 Randy Dunlap 2020-02-15 424 /* public: */
ceb5d58b217098 Eric Dumazet 2015-11-29 425 };
def8b4faff5ca3 Alexey Dobriyan 2008-10-28 426 #ifdef CONFIG_XFRM
d188ba86dd07a7 Eric Dumazet 2015-12-08 427 struct xfrm_policy __rcu *sk_policy[2];
def8b4faff5ca3 Alexey Dobriyan 2008-10-28 428 #endif
deaa58542b21d2 Eric Dumazet 2012-06-24 429 struct dst_entry *sk_rx_dst;
0e36cbb344575e Cong Wang 2013-01-22 430 struct dst_entry __rcu *sk_dst_cache;
^1da177e4c3f41 Linus Torvalds 2005-04-16 431 atomic_t sk_omem_alloc;
4e07a91c37c69e Arnaldo Carvalho de Melo 2007-05-29 432 int sk_sndbuf;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 433
9115e8cd2a0c6e Eric Dumazet 2016-12-03 434 /* ===== cache line for TX ===== */
9115e8cd2a0c6e Eric Dumazet 2016-12-03 435 int sk_wmem_queued;
14afee4b6092fd Reshetova, Elena 2017-06-30 436 refcount_t sk_wmem_alloc;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 437 unsigned long sk_tsq_flags;
75c119afe14f74 Eric Dumazet 2017-10-05 438 union {
9115e8cd2a0c6e Eric Dumazet 2016-12-03 439 struct sk_buff *sk_send_head;
75c119afe14f74 Eric Dumazet 2017-10-05 440 struct rb_root tcp_rtx_queue;
75c119afe14f74 Eric Dumazet 2017-10-05 441 };
472c2e07eef045 Eric Dumazet 2019-03-22 442 struct sk_buff *sk_tx_skb_cache;
^1da177e4c3f41 Linus Torvalds 2005-04-16 443 struct sk_buff_head sk_write_queue;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 444 __s32 sk_peek_off;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 445 int sk_write_pending;
9b8805a325591c Julian Anastasov 2017-02-06 446 __u32 sk_dst_pending_confirm;
218af599fa635b Eric Dumazet 2017-05-16 447 u32 sk_pacing_status; /* see enum sk_pacing */
9115e8cd2a0c6e Eric Dumazet 2016-12-03 448 long sk_sndtimeo;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 449 struct timer_list sk_timer;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 450 __u32 sk_priority;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 451 __u32 sk_mark;
76a9ebe811fb3d Eric Dumazet 2018-10-15 452 unsigned long sk_pacing_rate; /* bytes per second */
76a9ebe811fb3d Eric Dumazet 2018-10-15 453 unsigned long sk_max_pacing_rate;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 454 struct page_frag sk_frag;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 455 netdev_features_t sk_route_caps;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 456 netdev_features_t sk_route_nocaps;
0a6b2a1dc2a210 Eric Dumazet 2018-02-19 457 netdev_features_t sk_route_forced_caps;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 458 int sk_gso_type;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 459 unsigned int sk_gso_max_size;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 460 gfp_t sk_allocation;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 461 __u32 sk_txhash;
fc64869c48494a Andrey Ryabinin 2016-05-18 462
fc64869c48494a Andrey Ryabinin 2016-05-18 463 /*
fc64869c48494a Andrey Ryabinin 2016-05-18 464 * Because of non atomicity rules, all
fc64869c48494a Andrey Ryabinin 2016-05-18 465 * changes are protected by socket lock.
fc64869c48494a Andrey Ryabinin 2016-05-18 466 */
bf9765145b856f Mat Martineau 2020-01-09 467 u8 sk_padding : 1,
cdfbabfb2f0ce9 David Howells 2017-03-09 468 sk_kern_sock : 1,
28448b80456fea Tom Herbert 2014-05-23 469 sk_no_check_tx : 1,
28448b80456fea Tom Herbert 2014-05-23 470 sk_no_check_rx : 1,
bf9765145b856f Mat Martineau 2020-01-09 471 sk_userlocks : 4;
3a9b76fd0db9f0 Eric Dumazet 2017-11-11 472 u8 sk_pacing_shift;
bf9765145b856f Mat Martineau 2020-01-09 473 u16 sk_type;
bf9765145b856f Mat Martineau 2020-01-09 474 u16 sk_protocol;
bf9765145b856f Mat Martineau 2020-01-09 475 u16 sk_gso_max_segs;
^1da177e4c3f41 Linus Torvalds 2005-04-16 476 unsigned long sk_lingertime;
476e19cfa131e2 Arnaldo Carvalho de Melo 2005-05-05 477 struct proto *sk_prot_creator;
^1da177e4c3f41 Linus Torvalds 2005-04-16 478 rwlock_t sk_callback_lock;
^1da177e4c3f41 Linus Torvalds 2005-04-16 479 int sk_err,
^1da177e4c3f41 Linus Torvalds 2005-04-16 480 sk_err_soft;
becb74f0acca19 Eric Dumazet 2015-03-19 481 u32 sk_ack_backlog;
becb74f0acca19 Eric Dumazet 2015-03-19 482 u32 sk_max_ack_backlog;
86741ec25462e4 Lorenzo Colitti 2016-11-04 483 kuid_t sk_uid;
7fd3253a7de6a3 Björn Töpel 2020-11-30 484 #ifdef CONFIG_NET_RX_BUSY_POLL
7fd3253a7de6a3 Björn Töpel 2020-11-30 485 u8 sk_prefer_busy_poll;
7c951cafc0cb2e Björn Töpel 2020-11-30 486 u16 sk_busy_poll_budget;
7fd3253a7de6a3 Björn Töpel 2020-11-30 487 #endif
109f6e39fa07c4 Eric W. Biederman 2010-06-13 488 struct pid *sk_peer_pid;
109f6e39fa07c4 Eric W. Biederman 2010-06-13 489 const struct cred *sk_peer_cred;
^1da177e4c3f41 Linus Torvalds 2005-04-16 490 long sk_rcvtimeo;
b7aa0bf70c4afb Eric Dumazet 2007-04-19 491 ktime_t sk_stamp;
3a0ed3e9619738 Deepa Dinamani 2018-12-27 492 #if BITS_PER_LONG==32
3a0ed3e9619738 Deepa Dinamani 2018-12-27 493 seqlock_t sk_stamp_seq;
3a0ed3e9619738 Deepa Dinamani 2018-12-27 494 #endif
b9f40e21ef4298 Willem de Bruijn 2014-08-04 495 u16 sk_tsflags;
fc64869c48494a Andrey Ryabinin 2016-05-18 496 u8 sk_shutdown;
09c2d251b70723 Willem de Bruijn 2014-08-04 497 u32 sk_tskey;
52267790ef52d7 Willem de Bruijn 2017-08-03 498 atomic_t sk_zckey;
80b14dee2bea12 Richard Cochran 2018-07-03 499
80b14dee2bea12 Richard Cochran 2018-07-03 500 u8 sk_clockid;
80b14dee2bea12 Richard Cochran 2018-07-03 501 u8 sk_txtime_deadline_mode : 1,
4b15c707535266 Jesus Sanchez-Palencia 2018-07-03 502 sk_txtime_report_errors : 1,
4b15c707535266 Jesus Sanchez-Palencia 2018-07-03 503 sk_txtime_unused : 6;
80b14dee2bea12 Richard Cochran 2018-07-03 504
^1da177e4c3f41 Linus Torvalds 2005-04-16 505 struct socket *sk_socket;
^1da177e4c3f41 Linus Torvalds 2005-04-16 506 void *sk_user_data;
d5f642384e9da7 Alexey Dobriyan 2008-11-04 507 #ifdef CONFIG_SECURITY
^1da177e4c3f41 Linus Torvalds 2005-04-16 508 void *sk_security;
d5f642384e9da7 Alexey Dobriyan 2008-11-04 509 #endif
2a56a1fec290bf Tejun Heo 2015-12-07 510 struct sock_cgroup_data sk_cgrp_data;
baac50bbc3cdfd Johannes Weiner 2016-01-14 511 struct mem_cgroup *sk_memcg;
^1da177e4c3f41 Linus Torvalds 2005-04-16 512 void (*sk_state_change)(struct sock *sk);
676d23690fb62b David S. Miller 2014-04-11 513 void (*sk_data_ready)(struct sock *sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 514 void (*sk_write_space)(struct sock *sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 515 void (*sk_error_report)(struct sock *sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 516 int (*sk_backlog_rcv)(struct sock *sk,
^1da177e4c3f41 Linus Torvalds 2005-04-16 517 struct sk_buff *skb);
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 518 #ifdef CONFIG_SOCK_VALIDATE_XMIT
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 519 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 520 struct net_device *dev,
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 521 struct sk_buff *skb);
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 522 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 523 void (*sk_destruct)(struct sock *sk);
ef456144da8ef5 Craig Gallek 2016-01-04 524 struct sock_reuseport __rcu *sk_reuseport_cb;
6ac99e8f23d4b1 Martin KaFai Lau 2019-04-26 525 #ifdef CONFIG_BPF_SYSCALL
1f00d375af84fb KP Singh 2020-08-25 526 struct bpf_local_storage __rcu *sk_bpf_storage;
6ac99e8f23d4b1 Martin KaFai Lau 2019-04-26 527 #endif
a4298e4522d687 Eric Dumazet 2016-04-01 528 struct rcu_head sk_rcu;
^1da177e4c3f41 Linus Torvalds 2005-04-16 529 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 530
:::::: The code at line 382 was first introduced by commit
:::::: efe4208f47f907b86f528788da711e8ab9dea44d ipv6: make lookups simpler and faster
:::::: TO: Eric Dumazet <edumazet(a)google.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[zen-kernel-zen-kernel:5.11/zen-sauce 6/24] drivers/scsi/bfa/bfa_fcs_lport.c:2152:1: warning: the frame size of 1712 bytes is larger than 1280 bytes
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.11/zen-sauce
head: 791993e1c1fd68c5c05295efabebb8b4b3579f3a
commit: 456aec2082a997b3bd1e27092eab880fc140119c [6/24] ZEN: Disable stack conservation for GCC
config: parisc-allyesconfig (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
# https://github.com/zen-kernel/zen-kernel/commit/456aec2082a997b3bd1e27092...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.11/zen-sauce
git checkout 456aec2082a997b3bd1e27092eab880fc140119c
# 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 warnings (new ones prefixed by >>):
drivers/scsi/bfa/bfa_fcs_lport.c: In function 'bfa_fcs_lport_fdmi_build_rhba_pyld':
>> drivers/scsi/bfa/bfa_fcs_lport.c:2152:1: warning: the frame size of 1712 bytes is larger than 1280 bytes [-Wframe-larger-than=]
2152 | }
| ^
vim +2152 drivers/scsi/bfa/bfa_fcs_lport.c
a36c61f9025b89 Krishna Gudipati 2010-09-15 1898
a36c61f9025b89 Krishna Gudipati 2010-09-15 1899 static u16
a36c61f9025b89 Krishna Gudipati 2010-09-15 1900 bfa_fcs_lport_fdmi_build_rhba_pyld(struct bfa_fcs_lport_fdmi_s *fdmi, u8 *pyld)
a36c61f9025b89 Krishna Gudipati 2010-09-15 1901 {
a36c61f9025b89 Krishna Gudipati 2010-09-15 1902 struct bfa_fcs_lport_s *port = fdmi->ms->port;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1903 struct bfa_fcs_fdmi_hba_attr_s hba_attr;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1904 struct bfa_fcs_fdmi_hba_attr_s *fcs_hba_attr = &hba_attr;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1905 struct fdmi_rhba_s *rhba = (struct fdmi_rhba_s *) pyld;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1906 struct fdmi_attr_s *attr;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1907 u8 *curr_ptr;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1908 u16 len, count;
50444a34002811 Maggie 2010-11-29 1909 u16 templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1910
a36c61f9025b89 Krishna Gudipati 2010-09-15 1911 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1912 * get hba attributes
a36c61f9025b89 Krishna Gudipati 2010-09-15 1913 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1914 bfa_fcs_fdmi_get_hbaattr(fdmi, fcs_hba_attr);
a36c61f9025b89 Krishna Gudipati 2010-09-15 1915
a36c61f9025b89 Krishna Gudipati 2010-09-15 1916 rhba->hba_id = bfa_fcs_lport_get_pwwn(port);
ba816ea8e2eacb Jing Huang 2010-10-18 1917 rhba->port_list.num_ports = cpu_to_be32(1);
a36c61f9025b89 Krishna Gudipati 2010-09-15 1918 rhba->port_list.port_entry = bfa_fcs_lport_get_pwwn(port);
a36c61f9025b89 Krishna Gudipati 2010-09-15 1919
a36c61f9025b89 Krishna Gudipati 2010-09-15 1920 len = sizeof(rhba->hba_id) + sizeof(rhba->port_list);
a36c61f9025b89 Krishna Gudipati 2010-09-15 1921
a36c61f9025b89 Krishna Gudipati 2010-09-15 1922 count = 0;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1923 len += sizeof(rhba->hba_attr_blk.attr_count);
a36c61f9025b89 Krishna Gudipati 2010-09-15 1924
a36c61f9025b89 Krishna Gudipati 2010-09-15 1925 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1926 * fill out the invididual entries of the HBA attrib Block
a36c61f9025b89 Krishna Gudipati 2010-09-15 1927 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1928 curr_ptr = (u8 *) &rhba->hba_attr_blk.hba_attr;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1929
a36c61f9025b89 Krishna Gudipati 2010-09-15 1930 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1931 * Node Name
a36c61f9025b89 Krishna Gudipati 2010-09-15 1932 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1933 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 1934 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NODENAME);
50444a34002811 Maggie 2010-11-29 1935 templen = sizeof(wwn_t);
50444a34002811 Maggie 2010-11-29 1936 memcpy(attr->value, &bfa_fcs_lport_get_nwwn(port), templen);
50444a34002811 Maggie 2010-11-29 1937 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 1938 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1939 count++;
50444a34002811 Maggie 2010-11-29 1940 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 1941 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 1942
a36c61f9025b89 Krishna Gudipati 2010-09-15 1943 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1944 * Manufacturer
a36c61f9025b89 Krishna Gudipati 2010-09-15 1945 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1946 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 1947 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MANUFACTURER);
50444a34002811 Maggie 2010-11-29 1948 templen = (u16) strlen(fcs_hba_attr->manufacturer);
50444a34002811 Maggie 2010-11-29 1949 memcpy(attr->value, fcs_hba_attr->manufacturer, templen);
50444a34002811 Maggie 2010-11-29 1950 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 1951 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 1952 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1953 count++;
50444a34002811 Maggie 2010-11-29 1954 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 1955 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 1956
a36c61f9025b89 Krishna Gudipati 2010-09-15 1957 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1958 * Serial Number
a36c61f9025b89 Krishna Gudipati 2010-09-15 1959 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1960 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 1961 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_SERIALNUM);
50444a34002811 Maggie 2010-11-29 1962 templen = (u16) strlen(fcs_hba_attr->serial_num);
50444a34002811 Maggie 2010-11-29 1963 memcpy(attr->value, fcs_hba_attr->serial_num, templen);
50444a34002811 Maggie 2010-11-29 1964 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 1965 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 1966 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1967 count++;
50444a34002811 Maggie 2010-11-29 1968 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 1969 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 1970
a36c61f9025b89 Krishna Gudipati 2010-09-15 1971 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1972 * Model
a36c61f9025b89 Krishna Gudipati 2010-09-15 1973 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1974 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 1975 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MODEL);
50444a34002811 Maggie 2010-11-29 1976 templen = (u16) strlen(fcs_hba_attr->model);
50444a34002811 Maggie 2010-11-29 1977 memcpy(attr->value, fcs_hba_attr->model, templen);
50444a34002811 Maggie 2010-11-29 1978 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 1979 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 1980 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1981 count++;
50444a34002811 Maggie 2010-11-29 1982 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 1983 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 1984
a36c61f9025b89 Krishna Gudipati 2010-09-15 1985 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 1986 * Model Desc
a36c61f9025b89 Krishna Gudipati 2010-09-15 1987 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 1988 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 1989 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MODEL_DESC);
50444a34002811 Maggie 2010-11-29 1990 templen = (u16) strlen(fcs_hba_attr->model_desc);
50444a34002811 Maggie 2010-11-29 1991 memcpy(attr->value, fcs_hba_attr->model_desc, templen);
50444a34002811 Maggie 2010-11-29 1992 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 1993 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 1994 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 1995 count++;
50444a34002811 Maggie 2010-11-29 1996 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 1997 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 1998
a36c61f9025b89 Krishna Gudipati 2010-09-15 1999 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2000 * H/W Version
a36c61f9025b89 Krishna Gudipati 2010-09-15 2001 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2002 if (fcs_hba_attr->hw_version[0] != '\0') {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2003 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 2004 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_HW_VERSION);
50444a34002811 Maggie 2010-11-29 2005 templen = (u16) strlen(fcs_hba_attr->hw_version);
50444a34002811 Maggie 2010-11-29 2006 memcpy(attr->value, fcs_hba_attr->hw_version, templen);
50444a34002811 Maggie 2010-11-29 2007 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 2008 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 2009 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2010 count++;
50444a34002811 Maggie 2010-11-29 2011 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 2012 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 2013 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2014
a36c61f9025b89 Krishna Gudipati 2010-09-15 2015 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2016 * Driver Version
a36c61f9025b89 Krishna Gudipati 2010-09-15 2017 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2018 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 2019 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_DRIVER_VERSION);
50444a34002811 Maggie 2010-11-29 2020 templen = (u16) strlen(fcs_hba_attr->driver_version);
50444a34002811 Maggie 2010-11-29 2021 memcpy(attr->value, fcs_hba_attr->driver_version, templen);
50444a34002811 Maggie 2010-11-29 2022 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 2023 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
dd5aaf4536c511 Krishna Gudipati 2011-06-13 2024 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2025 count++;
50444a34002811 Maggie 2010-11-29 2026 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 2027 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 2028
a36c61f9025b89 Krishna Gudipati 2010-09-15 2029 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2030 * Option Rom Version
a36c61f9025b89 Krishna Gudipati 2010-09-15 2031 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2032 if (fcs_hba_attr->option_rom_ver[0] != '\0') {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2033 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 2034 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_ROM_VERSION);
50444a34002811 Maggie 2010-11-29 2035 templen = (u16) strlen(fcs_hba_attr->option_rom_ver);
50444a34002811 Maggie 2010-11-29 2036 memcpy(attr->value, fcs_hba_attr->option_rom_ver, templen);
50444a34002811 Maggie 2010-11-29 2037 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 2038 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 2039 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2040 count++;
50444a34002811 Maggie 2010-11-29 2041 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 2042 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 2043 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2044
a36c61f9025b89 Krishna Gudipati 2010-09-15 2045 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 2046 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_FW_VERSION);
b480a32e69b7b3 Krishna Gudipati 2012-09-21 2047 templen = (u16) strlen(fcs_hba_attr->fw_version);
b480a32e69b7b3 Krishna Gudipati 2012-09-21 2048 memcpy(attr->value, fcs_hba_attr->fw_version, templen);
50444a34002811 Maggie 2010-11-29 2049 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 2050 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 2051 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2052 count++;
50444a34002811 Maggie 2010-11-29 2053 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 2054 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 2055
a36c61f9025b89 Krishna Gudipati 2010-09-15 2056 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2057 * OS Name
a36c61f9025b89 Krishna Gudipati 2010-09-15 2058 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2059 if (fcs_hba_attr->os_name[0] != '\0') {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2060 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 2061 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_OS_NAME);
50444a34002811 Maggie 2010-11-29 2062 templen = (u16) strlen(fcs_hba_attr->os_name);
50444a34002811 Maggie 2010-11-29 2063 memcpy(attr->value, fcs_hba_attr->os_name, templen);
50444a34002811 Maggie 2010-11-29 2064 templen = fc_roundup(templen, sizeof(u32));
50444a34002811 Maggie 2010-11-29 2065 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 2066 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2067 count++;
50444a34002811 Maggie 2010-11-29 2068 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 2069 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 2070 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2071
a36c61f9025b89 Krishna Gudipati 2010-09-15 2072 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2073 * MAX_CT_PAYLOAD
a36c61f9025b89 Krishna Gudipati 2010-09-15 2074 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2075 attr = (struct fdmi_attr_s *) curr_ptr;
ba816ea8e2eacb Jing Huang 2010-10-18 2076 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MAX_CT);
50444a34002811 Maggie 2010-11-29 2077 templen = sizeof(fcs_hba_attr->max_ct_pyld);
50444a34002811 Maggie 2010-11-29 2078 memcpy(attr->value, &fcs_hba_attr->max_ct_pyld, templen);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2079 templen = fc_roundup(templen, sizeof(u32));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2080 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2081 len += templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2082 count++;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2083 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2084 sizeof(templen));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2085 /*
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2086 * Send extended attributes ( FOS 7.1 support )
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2087 */
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2088 if (fdmi->retry_cnt == 0) {
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2089 attr = (struct fdmi_attr_s *) curr_ptr;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2090 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NODE_SYM_NAME);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2091 templen = sizeof(fcs_hba_attr->node_sym_name);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2092 memcpy(attr->value, &fcs_hba_attr->node_sym_name, templen);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2093 templen = fc_roundup(templen, sizeof(u32));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2094 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2095 len += templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2096 count++;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2097 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2098 sizeof(templen));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2099
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2100 attr = (struct fdmi_attr_s *) curr_ptr;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2101 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_VENDOR_ID);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2102 templen = sizeof(fcs_hba_attr->vendor_info);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2103 memcpy(attr->value, &fcs_hba_attr->vendor_info, templen);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2104 templen = fc_roundup(templen, sizeof(u32));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2105 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2106 len += templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2107 count++;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2108 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2109 sizeof(templen));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2110
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2111 attr = (struct fdmi_attr_s *) curr_ptr;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2112 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NUM_PORTS);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2113 templen = sizeof(fcs_hba_attr->num_ports);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2114 memcpy(attr->value, &fcs_hba_attr->num_ports, templen);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2115 templen = fc_roundup(templen, sizeof(u32));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2116 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2117 len += templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2118 count++;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2119 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2120 sizeof(templen));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2121
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2122 attr = (struct fdmi_attr_s *) curr_ptr;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2123 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_FABRIC_NAME);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2124 templen = sizeof(fcs_hba_attr->fabric_name);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2125 memcpy(attr->value, &fcs_hba_attr->fabric_name, templen);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2126 templen = fc_roundup(templen, sizeof(u32));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2127 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
50444a34002811 Maggie 2010-11-29 2128 len += templen;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2129 count++;
50444a34002811 Maggie 2010-11-29 2130 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
50444a34002811 Maggie 2010-11-29 2131 sizeof(templen));
a36c61f9025b89 Krishna Gudipati 2010-09-15 2132
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2133 attr = (struct fdmi_attr_s *) curr_ptr;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2134 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_BIOS_VER);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2135 templen = sizeof(fcs_hba_attr->bios_ver);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2136 memcpy(attr->value, &fcs_hba_attr->bios_ver, templen);
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2137 templen = fc_roundup(attr->len, sizeof(u32));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2138 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2139 len += templen;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2140 count++;
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2141 attr->len = cpu_to_be16(templen + sizeof(attr->type) +
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2142 sizeof(templen));
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2143 }
d7cbc3044f2b28 Vijaya Mohan Guvva 2013-05-13 2144
a36c61f9025b89 Krishna Gudipati 2010-09-15 2145 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2146 * Update size of payload
a36c61f9025b89 Krishna Gudipati 2010-09-15 2147 */
5fbe25c7a66460 Jing Huang 2010-10-18 2148 len += ((sizeof(attr->type) + sizeof(attr->len)) * count);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2149
ba816ea8e2eacb Jing Huang 2010-10-18 2150 rhba->hba_attr_blk.attr_count = cpu_to_be32(count);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2151 return len;
a36c61f9025b89 Krishna Gudipati 2010-09-15 @2152 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2153
:::::: The code at line 2152 was first introduced by commit
:::::: a36c61f9025b8924f99f54d518763bee7aa84085 [SCSI] bfa: cleanup driver
:::::: TO: Krishna Gudipati <kgudipat(a)brocade.com>
:::::: CC: James Bottomley <James.Bottomley(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[zen-kernel-zen-kernel:5.11/zen-sauce 5/24] crypto/nhpoly1305.c:195:1: warning: the frame size of 1028 bytes is larger than 1024 bytes
by kernel test robot
Hi Jan,
First bad commit (maybe != root cause):
tree: https://github.com/zen-kernel/zen-kernel 5.11/zen-sauce
head: 791993e1c1fd68c5c05295efabebb8b4b3579f3a
commit: a09abe2fc9c447bcf7c7f9888d63fb448da29ed6 [5/24] ZEN: Unrestrict CONFIG_OPTIMIZE_FOR_PERFORMANCE_O3
config: h8300-randconfig-r012-20210216 (attached as .config)
compiler: h8300-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
# https://github.com/zen-kernel/zen-kernel/commit/a09abe2fc9c447bcf7c7f9888...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.11/zen-sauce
git checkout a09abe2fc9c447bcf7c7f9888d63fb448da29ed6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 >>):
crypto/nhpoly1305.c: In function 'crypto_nhpoly1305_update':
>> crypto/nhpoly1305.c:195:1: warning: the frame size of 1028 bytes is larger than 1024 bytes [-Wframe-larger-than=]
195 | }
| ^
--
drivers/input/joystick/sidewinder.c: In function 'sw_connect':
>> drivers/input/joystick/sidewinder.c:787:1: warning: the frame size of 1252 bytes is larger than 1024 bytes [-Wframe-larger-than=]
787 | }
| ^
vim +195 crypto/nhpoly1305.c
26609a21a94601 Eric Biggers 2018-11-16 190
26609a21a94601 Eric Biggers 2018-11-16 191 int crypto_nhpoly1305_update(struct shash_desc *desc,
26609a21a94601 Eric Biggers 2018-11-16 192 const u8 *src, unsigned int srclen)
26609a21a94601 Eric Biggers 2018-11-16 193 {
26609a21a94601 Eric Biggers 2018-11-16 194 return crypto_nhpoly1305_update_helper(desc, src, srclen, nh_generic);
26609a21a94601 Eric Biggers 2018-11-16 @195 }
26609a21a94601 Eric Biggers 2018-11-16 196 EXPORT_SYMBOL(crypto_nhpoly1305_update);
26609a21a94601 Eric Biggers 2018-11-16 197
:::::: The code at line 195 was first introduced by commit
:::::: 26609a21a9460145e37d90947ad957b358a05288 crypto: nhpoly1305 - add NHPoly1305 support
:::::: TO: Eric Biggers <ebiggers(a)google.com>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[zen-kernel-zen-kernel:5.11/zen-sauce 6/24] drivers/gpu/drm/drm_plane_helper.c:126:14: warning: 'visible' is used uninitialized in this function
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.11/zen-sauce
head: 791993e1c1fd68c5c05295efabebb8b4b3579f3a
commit: 456aec2082a997b3bd1e27092eab880fc140119c [6/24] ZEN: Disable stack conservation for GCC
config: mips-randconfig-m031-20210215 (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
# https://github.com/zen-kernel/zen-kernel/commit/456aec2082a997b3bd1e27092...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.11/zen-sauce
git checkout 456aec2082a997b3bd1e27092eab880fc140119c
# 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 warnings (new ones prefixed by >>):
drivers/gpu/drm/drm_plane_helper.c: In function 'drm_primary_helper_update':
>> drivers/gpu/drm/drm_plane_helper.c:126:14: warning: 'visible' is used uninitialized in this function [-Wuninitialized]
126 | .visible = *visible,
| ^~~~~~~~
drivers/gpu/drm/drm_plane_helper.c:178:7: note: 'visible' was declared here
178 | bool visible;
| ^~~~~~~
vim +/visible +126 drivers/gpu/drm/drm_plane_helper.c
c103d1cfb3543f Matt Roper 2014-04-01 100
84c0851794d40b Daniel Vetter 2018-10-04 101 static int drm_plane_helper_check_update(struct drm_plane *plane,
df86af9133b495 Ville Syrjälä 2016-08-08 102 struct drm_crtc *crtc,
df86af9133b495 Ville Syrjälä 2016-08-08 103 struct drm_framebuffer *fb,
df86af9133b495 Ville Syrjälä 2016-08-08 104 struct drm_rect *src,
df86af9133b495 Ville Syrjälä 2016-08-08 105 struct drm_rect *dst,
df86af9133b495 Ville Syrjälä 2016-08-08 106 unsigned int rotation,
df86af9133b495 Ville Syrjälä 2016-08-08 107 int min_scale,
df86af9133b495 Ville Syrjälä 2016-08-08 108 int max_scale,
df86af9133b495 Ville Syrjälä 2016-08-08 109 bool can_position,
df86af9133b495 Ville Syrjälä 2016-08-08 110 bool can_update_disabled,
df86af9133b495 Ville Syrjälä 2016-08-08 111 bool *visible)
df86af9133b495 Ville Syrjälä 2016-08-08 112 {
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 113 struct drm_plane_state plane_state = {
df86af9133b495 Ville Syrjälä 2016-08-08 114 .plane = plane,
df86af9133b495 Ville Syrjälä 2016-08-08 115 .crtc = crtc,
df86af9133b495 Ville Syrjälä 2016-08-08 116 .fb = fb,
df86af9133b495 Ville Syrjälä 2016-08-08 117 .src_x = src->x1,
df86af9133b495 Ville Syrjälä 2016-08-08 118 .src_y = src->y1,
df86af9133b495 Ville Syrjälä 2016-08-08 119 .src_w = drm_rect_width(src),
df86af9133b495 Ville Syrjälä 2016-08-08 120 .src_h = drm_rect_height(src),
df86af9133b495 Ville Syrjälä 2016-08-08 121 .crtc_x = dst->x1,
df86af9133b495 Ville Syrjälä 2016-08-08 122 .crtc_y = dst->y1,
df86af9133b495 Ville Syrjälä 2016-08-08 123 .crtc_w = drm_rect_width(dst),
df86af9133b495 Ville Syrjälä 2016-08-08 124 .crtc_h = drm_rect_height(dst),
df86af9133b495 Ville Syrjälä 2016-08-08 125 .rotation = rotation,
df86af9133b495 Ville Syrjälä 2016-08-08 @126 .visible = *visible,
df86af9133b495 Ville Syrjälä 2016-08-08 127 };
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 128 struct drm_crtc_state crtc_state = {
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 129 .crtc = crtc,
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 130 .enable = crtc->enabled,
81af63a4af82e7 Ville Syrjälä 2018-01-23 131 .mode = crtc->mode,
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 132 };
df86af9133b495 Ville Syrjälä 2016-08-08 133 int ret;
df86af9133b495 Ville Syrjälä 2016-08-08 134
a01cb8ba3f6282 Ville Syrjälä 2017-11-01 135 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state,
81af63a4af82e7 Ville Syrjälä 2018-01-23 136 min_scale, max_scale,
df86af9133b495 Ville Syrjälä 2016-08-08 137 can_position,
df86af9133b495 Ville Syrjälä 2016-08-08 138 can_update_disabled);
df86af9133b495 Ville Syrjälä 2016-08-08 139 if (ret)
df86af9133b495 Ville Syrjälä 2016-08-08 140 return ret;
df86af9133b495 Ville Syrjälä 2016-08-08 141
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 142 *src = plane_state.src;
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 143 *dst = plane_state.dst;
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 144 *visible = plane_state.visible;
df86af9133b495 Ville Syrjälä 2016-08-08 145
df86af9133b495 Ville Syrjälä 2016-08-08 146 return 0;
df86af9133b495 Ville Syrjälä 2016-08-08 147 }
7daf8d54c17c6d Matt Roper 2014-05-29 148
:::::: The code at line 126 was first introduced by commit
:::::: df86af9133b4958a04c44828d29617eb1a6ff31c drm/plane-helper: Add drm_plane_helper_check_state()
:::::: TO: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
:::::: CC: Sean Paul <seanpaul(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[agd5f:drm-next 54/79] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1140:16: warning: no previous prototype for function 'amdgpu_ras_debugfs_create_ctrl_node'
by kernel test robot
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 5c86a4a21df34ba7daf8fe361c26c7dd31333187
commit: eb14235668777baddfc77ce4f72ecfa2ea85ca55 [54/79] drm/amdgpu: do not keep debugfs dentry
config: x86_64-randconfig-a004-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout eb14235668777baddfc77ce4f72ecfa2ea85ca55
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1140:16: warning: no previous prototype for function 'amdgpu_ras_debugfs_create_ctrl_node' [-Wmissing-prototypes]
struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
^
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1140:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
^
static
1 warning generated.
vim +/amdgpu_ras_debugfs_create_ctrl_node +1140 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
1120
1121 /**
1122 * DOC: AMDGPU RAS Reboot Behavior for Unrecoverable Errors
1123 *
1124 * Normally when there is an uncorrectable error, the driver will reset
1125 * the GPU to recover. However, in the event of an unrecoverable error,
1126 * the driver provides an interface to reboot the system automatically
1127 * in that event.
1128 *
1129 * The following file in debugfs provides that interface:
1130 * /sys/kernel/debug/dri/[0/1/2...]/ras/auto_reboot
1131 *
1132 * Usage:
1133 *
1134 * .. code-block:: bash
1135 *
1136 * echo true > .../ras/auto_reboot
1137 *
1138 */
1139 /* debugfs begin */
> 1140 struct dentry *amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)
1141 {
1142 struct amdgpu_ras *con = amdgpu_ras_get_context(adev);
1143 struct dentry *dir;
1144 struct drm_minor *minor = adev_to_drm(adev)->primary;
1145
1146 dir = debugfs_create_dir(RAS_FS_NAME, minor->debugfs_root);
1147 debugfs_create_file("ras_ctrl", S_IWUGO | S_IRUGO, dir, adev,
1148 &amdgpu_ras_debugfs_ctrl_ops);
1149 debugfs_create_file("ras_eeprom_reset", S_IWUGO | S_IRUGO, dir, adev,
1150 &amdgpu_ras_debugfs_eeprom_ops);
1151
1152 /*
1153 * After one uncorrectable error happens, usually GPU recovery will
1154 * be scheduled. But due to the known problem in GPU recovery failing
1155 * to bring GPU back, below interface provides one direct way to
1156 * user to reboot system automatically in such case within
1157 * ERREVENT_ATHUB_INTERRUPT generated. Normal GPU recovery routine
1158 * will never be called.
1159 */
1160 debugfs_create_bool("auto_reboot", S_IWUGO | S_IRUGO, dir, &con->reboot);
1161
1162 /*
1163 * User could set this not to clean up hardware's error count register
1164 * of RAS IPs during ras recovery.
1165 */
1166 debugfs_create_bool("disable_ras_err_cnt_harvest", 0644, dir,
1167 &con->disable_ras_err_cnt_harvest);
1168 return dir;
1169 }
1170
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months