Skip to content

Commit 706cc9f

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Add argument names for function ptr definitions
checkpatch started to report unnamed arguments in function pointer definitions. Add the corresponding names to these definitions to avoid this warning. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
1 parent 48915ae commit 706cc9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/batman-adv/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
* list traversals just rcu-locked
7474
*/
7575
struct list_head batadv_hardif_list;
76-
static int (*batadv_rx_handler[256])(struct sk_buff *,
77-
struct batadv_hard_iface *);
76+
static int (*batadv_rx_handler[256])(struct sk_buff *skb,
77+
struct batadv_hard_iface *recv_if);
7878

7979
unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
8080

@@ -540,8 +540,8 @@ batadv_recv_handler_register(u8 packet_type,
540540
int (*recv_handler)(struct sk_buff *,
541541
struct batadv_hard_iface *))
542542
{
543-
int (*curr)(struct sk_buff *,
544-
struct batadv_hard_iface *);
543+
int (*curr)(struct sk_buff *skb,
544+
struct batadv_hard_iface *recv_if);
545545
curr = batadv_rx_handler[packet_type];
546546

547547
if (curr != batadv_recv_unhandled_packet &&

0 commit comments

Comments
 (0)