From: Tom Parkin Date: Wed, 22 Jul 2020 16:32:10 +0000 (+0100) Subject: l2tp: add identifier name in function pointer prototype X-Git-Tag: Ubuntu-5.10.0-12.13~2208^2~152^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bef04d162c52bd7e0b98ba5ee3f904e6556c6551;p=mirror_ubuntu-hirsute-kernel.git l2tp: add identifier name in function pointer prototype Reported by checkpatch: "WARNING: function definition argument 'struct sock *' should also have an identifier name" Add an identifier name to help document the prototype. Signed-off-by: Tom Parkin Signed-off-by: David S. Miller --- diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h index 3ebb701eebbf..f23b3ff7ffff 100644 --- a/net/l2tp/l2tp_core.h +++ b/net/l2tp/l2tp_core.h @@ -154,7 +154,7 @@ struct l2tp_tunnel { struct net *l2tp_net; /* the net we belong to */ refcount_t ref_count; - void (*old_sk_destruct)(struct sock *); + void (*old_sk_destruct)(struct sock *sk); struct sock *sock; /* parent socket */ int fd; /* parent fd, if tunnel socket was created * by userspace