mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
samples/bpf: add static to function with no prototype
Fixes the following warning samples/bpf/cookie_uid_helper_example.c: At top level: samples/bpf/cookie_uid_helper_example.c:276:6: warning: no previous prototype for ‘finish’ [-Wmissing-prototypes] void finish(int ret) ^~~~~~ HOSTLD samples/bpf/per_socket_stats_example Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
69b6a7f743
commit
4784726f69
@ -273,7 +273,7 @@ static int usage(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void finish(int ret)
|
||||
static void finish(int ret)
|
||||
{
|
||||
test_finish = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user