]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
samples/bpf: add static to function with no prototype
authorAlexander Alemayhu <alexander@alemayhu.com>
Mon, 24 Apr 2017 13:31:07 +0000 (15:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 20:20:19 +0000 (16:20 -0400)
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>
samples/bpf/cookie_uid_helper_example.c

index ad5afedf2e7047db24db8565e0a433122e479912..9ce55840d61d222ec2c9881be9a108c7b630dba0 100644 (file)
@@ -273,7 +273,7 @@ static int usage(void)
        return 1;
 }
 
-void finish(int ret)
+static void finish(int ret)
 {
        test_finish = true;
 }