Skip to content

Commit

Permalink
bpf, tags: Fix DEFINE_PER_CPU expansion
Browse files Browse the repository at this point in the history
Building tags produces warning:

  ctags: Warning: kernel/bpf/local_storage.c:10: null expansion of name pattern "\1"

Let's use the same fix as in commit 2552821 ("tags: Fix DEFINE_PER_CPU
expansions"), even though it violates the usual code style.

Signed-off-by: Rustam Kovhaev <rkovhaev@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
Rustam Kovhaev authored and Daniel Borkmann committed Nov 26, 2018
1 parent 197c2da commit cf0dd41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/bpf/local_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#include <linux/rbtree.h>
#include <linux/slab.h>

DEFINE_PER_CPU(struct bpf_cgroup_storage*,
bpf_cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]);
DEFINE_PER_CPU(struct bpf_cgroup_storage*, bpf_cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]);

#ifdef CONFIG_CGROUP_BPF

Expand Down

0 comments on commit cf0dd41

Please sign in to comment.