diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2025-07-03 14:23:29 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-08 02:55:54 +0300 |
commit | 1e3b66e326015f77bc4b36976bebeedc2ac0f588 (patch) | |
tree | d6c6d3daaed5a2c97ae752d1a8a3cf9c7aa11f4f /scripts/gdb/linux/xarray.py | |
parent | ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc (diff) | |
download | linux-1e3b66e326015f77bc4b36976bebeedc2ac0f588.tar.xz |
vsock: fix `vsock_proto` declaration
From commit 634f1a7110b4 ("vsock: support sockmap"), `struct proto
vsock_proto`, defined in af_vsock.c, is not static anymore, since it's
used by vsock_bpf.c.
If CONFIG_BPF_SYSCALL is not defined, `make C=2` will print a warning:
$ make O=build C=2 W=1 net/vmw_vsock/
...
CC [M] net/vmw_vsock/af_vsock.o
CHECK ../net/vmw_vsock/af_vsock.c
../net/vmw_vsock/af_vsock.c:123:14: warning: symbol 'vsock_proto' was not declared. Should it be static?
Declare `vsock_proto` regardless of CONFIG_BPF_SYSCALL, since it's defined
in af_vsock.c, which is built regardless of CONFIG_BPF_SYSCALL.
Fixes: 634f1a7110b4 ("vsock: support sockmap")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://patch.msgid.link/20250703112329.28365-1-sgarzare@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions