mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 22:34:21 +08:00
selftests/bpf: Add static to enable_all_controllers()
Add static to enable_all_controllers() to get rid from annoying warning during samples/bpf build: samples/bpf/../../tools/testing/selftests/bpf/cgroup_helpers.c:44:5: warning: no previous prototype for ‘enable_all_controllers’ [-Wmissing-prototypes] int enable_all_controllers(char *cgroup_path) Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20191002120404.26962-2-ivan.khoronzhuk@linaro.org
This commit is contained in:
parent
03bd4773d8
commit
fb27dcd290
@ -41,7 +41,7 @@
|
|||||||
*
|
*
|
||||||
* If successful, 0 is returned.
|
* If successful, 0 is returned.
|
||||||
*/
|
*/
|
||||||
int enable_all_controllers(char *cgroup_path)
|
static int enable_all_controllers(char *cgroup_path)
|
||||||
{
|
{
|
||||||
char path[PATH_MAX + 1];
|
char path[PATH_MAX + 1];
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
Loading…
Reference in New Issue
Block a user