Commit 4784726f authored by Alexander Alemayhu's avatar Alexander Alemayhu Committed by David S. Miller

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: default avatarAlexander Alemayhu <alexander@alemayhu.com>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 69b6a7f7
......@@ -273,7 +273,7 @@ static int usage(void)
return 1;
}
void finish(int ret)
static void finish(int ret)
{
test_finish = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment