]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: hide the unused 'off' variable
authorYueHaibing <yuehaibing@huawei.com>
Tue, 29 May 2018 02:40:18 +0000 (10:40 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 29 May 2018 19:45:35 +0000 (21:45 +0200)
commit2104f08cbbaebb71c7082e8a4b3bd2340e81cc23
tree25cf6a64cb08a0a87f38137ea0089fbd722e0067
parent3e9f2f5f80cc48581e6d0878ea01612649631f29
bpf: hide the unused 'off' variable

The local variable is only used while CONFIG_IPV6 enabled

net/core/filter.c: In function ‘sk_msg_convert_ctx_access’:
net/core/filter.c:6489:6: warning: unused variable ‘off’ [-Wunused-variable]
  int off;
      ^
This puts it into #ifdef.

Fixes: 3096db15a3a9 ("bpf: allow sk_msg programs to read sock fields")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/filter.c