Commit 706cc9f5 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Simon Wunderlich

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: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
parent 48915aed
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
* list traversals just rcu-locked * list traversals just rcu-locked
*/ */
struct list_head batadv_hardif_list; struct list_head batadv_hardif_list;
static int (*batadv_rx_handler[256])(struct sk_buff *, static int (*batadv_rx_handler[256])(struct sk_buff *skb,
struct batadv_hard_iface *); struct batadv_hard_iface *recv_if);
unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
...@@ -540,8 +540,8 @@ batadv_recv_handler_register(u8 packet_type, ...@@ -540,8 +540,8 @@ batadv_recv_handler_register(u8 packet_type,
int (*recv_handler)(struct sk_buff *, int (*recv_handler)(struct sk_buff *,
struct batadv_hard_iface *)) struct batadv_hard_iface *))
{ {
int (*curr)(struct sk_buff *, int (*curr)(struct sk_buff *skb,
struct batadv_hard_iface *); struct batadv_hard_iface *recv_if);
curr = batadv_rx_handler[packet_type]; curr = batadv_rx_handler[packet_type];
if (curr != batadv_recv_unhandled_packet && if (curr != batadv_recv_unhandled_packet &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment