YueHaibing 720e7f38bc 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: 303def35f64e ("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>
2018-05-29 21:45:35 +02:00
..
2018-05-04 12:52:47 -04:00
2018-03-27 13:18:09 -04:00
2018-05-29 21:45:35 +02:00
2018-05-24 14:22:59 -07:00
2018-04-23 10:21:24 -04:00
2018-05-28 17:41:02 +02:00
2018-05-28 17:41:02 +02:00
2018-03-27 13:18:09 -04:00
2018-05-08 00:11:40 -04:00
2018-03-27 13:18:09 -04:00
2018-05-04 12:54:38 -04:00
2018-03-27 13:18:09 -04:00
2018-05-24 14:12:05 -07:00
2018-05-24 14:12:05 -07:00
2018-05-22 10:25:06 +02:00