diff options
author | Sven Eckelmann <sven@narfation.org> | 2017-09-30 03:24:28 -0400 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-09-30 03:31:34 -0400 |
commit | 706cc9f51d9a22528af18d4b3ffbd17b30a1d3b0 (patch) | |
tree | 781f66dc0f3ddc9fe5a84d8e0cc950d852ce6415 | |
parent | 48915aed60c9615e5eaa0f1683640635dade788e (diff) |
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>
-rw-r--r-- | net/batman-adv/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index 033819aefc39..4daed7ad46f2 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c | |||
@@ -73,8 +73,8 @@ | |||
73 | * list traversals just rcu-locked | 73 | * list traversals just rcu-locked |
74 | */ | 74 | */ |
75 | struct list_head batadv_hardif_list; | 75 | struct list_head batadv_hardif_list; |
76 | static int (*batadv_rx_handler[256])(struct sk_buff *, | 76 | static int (*batadv_rx_handler[256])(struct sk_buff *skb, |
77 | struct batadv_hard_iface *); | 77 | struct batadv_hard_iface *recv_if); |
78 | 78 | ||
79 | unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; | 79 | unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; |
80 | 80 | ||
@@ -540,8 +540,8 @@ batadv_recv_handler_register(u8 packet_type, | |||
540 | int (*recv_handler)(struct sk_buff *, | 540 | int (*recv_handler)(struct sk_buff *, |
541 | struct batadv_hard_iface *)) | 541 | struct batadv_hard_iface *)) |
542 | { | 542 | { |
543 | int (*curr)(struct sk_buff *, | 543 | int (*curr)(struct sk_buff *skb, |
544 | struct batadv_hard_iface *); | 544 | struct batadv_hard_iface *recv_if); |
545 | curr = batadv_rx_handler[packet_type]; | 545 | curr = batadv_rx_handler[packet_type]; |
546 | 546 | ||
547 | if (curr != batadv_recv_unhandled_packet && | 547 | if (curr != batadv_recv_unhandled_packet && |