Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netdevsim: make functions nsim_bpf_create_prog and nsim_bpf_destroy_prog static

Functions nsim_bpf_create_prog and nsim_bpf_destroy_prog are local to the
source and do not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'nsim_bpf_create_prog' was not declared. Should it be static?
symbol 'nsim_bpf_destroy_prog' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Colin Ian King and committed by
David S. Miller
1dfc2663 75223d81

+2 -2
+2 -2
drivers/net/netdevsim/bpf.c
··· 197 197 return 0; 198 198 } 199 199 200 - int nsim_bpf_create_prog(struct netdevsim *ns, struct bpf_prog *prog) 200 + static int nsim_bpf_create_prog(struct netdevsim *ns, struct bpf_prog *prog) 201 201 { 202 202 struct nsim_bpf_bound_prog *state; 203 203 char name[16]; ··· 232 232 return 0; 233 233 } 234 234 235 - void nsim_bpf_destroy_prog(struct bpf_prog *prog) 235 + static void nsim_bpf_destroy_prog(struct bpf_prog *prog) 236 236 { 237 237 struct nsim_bpf_bound_prog *state; 238 238