bpf: Add bpf_current_task_under_cgroup helper
[muen/linux.git] / kernel / bpf / arraymap.c
index 633a650d7aeb74ff2e6ebc2e4134950cf94bd288..a2ac051c342f87b1372a7aeb33ba816327ee1a43 100644 (file)
@@ -538,7 +538,7 @@ static int __init register_perf_event_array_map(void)
 }
 late_initcall(register_perf_event_array_map);
 
 }
 late_initcall(register_perf_event_array_map);
 
-#ifdef CONFIG_SOCK_CGROUP_DATA
+#ifdef CONFIG_CGROUPS
 static void *cgroup_fd_array_get_ptr(struct bpf_map *map,
                                     struct file *map_file /* not used */,
                                     int fd)
 static void *cgroup_fd_array_get_ptr(struct bpf_map *map,
                                     struct file *map_file /* not used */,
                                     int fd)