On Wed, 19 Aug 2020 10:24:32 +0100 Lorenz Bauer wrote:
> --- a/net/core/sock_map.c
> +++ b/net/core/sock_map.c
> @@ -559,10 +559,12 @@ static bool sock_map_sk_state_allowed(const struct sock 
> *sk)
>       return false;
>  }
>  
> -static int sock_map_update_elem(struct bpf_map *map, void *key,
> -                             void *value, u64 flags)
> +static int sock_hash_update_common(struct bpf_map *map, void *key,
> +                                struct sock *sk, u64 flags);
> +
> +int sock_map_update_elem(struct bpf_map *map, void *key,
> +                      void *value, u64 flags)
>  {
> -     u32 idx = *(u32 *)key;
>       struct socket *sock;
>       struct sock *sk;
>       int ret;

net/core/sock_map.c:565:5: warning: no previous prototype for 
‘sock_map_update_elem’ [-Wmissing-prototypes]
  565 | int sock_map_update_elem(struct bpf_map *map, void *key,
      |     ^~~~~~~~~~~~~~~~~~~~

Reply via email to