bpf/local_storage: Fix build without CONFIG_CGROUP
authorYiFei Zhu <zhuyifei@google.com>
Fri, 24 Jul 2020 21:17:53 +0000 (16:17 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:16:36 +0000 (20:16 -0700)
commitdfcdf0e9ad2e006196986f363c99b2097aec5ef0
tree2ecce143cc0583c7bf16b1fcafe5f9c8c86d7865
parent36f72484820abcaede242a53fde965217e718b2e
bpf/local_storage: Fix build without CONFIG_CGROUP

local_storage.o has its compile guard as CONFIG_BPF_SYSCALL, which
does not imply that CONFIG_CGROUP is on. Including cgroup-internal.h
when CONFIG_CGROUP is off cause a compilation failure.

Fixes: f67cfc233706 ("bpf: Make cgroup storages shared between programs on the same cgroup")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200724211753.902969-1-zhuyifei1999@gmail.com
kernel/bpf/local_storage.c