Commit d1aa5142 authored by Antonio Quartulli's avatar Antonio Quartulli Committed by Simon Wunderlich

batman-adv: tp_meter: mark init function with __init

batadv_tp_meter_init() is invoked in batadv_init() only
which is marked with __init.

For this reason batadv_tp_meter_init() can be marked with
__init as well and dropped after module load.
Signed-off-by: default avatarAntonio Quartulli <a@unstable.cc>
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
parent 22f0502e
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/if_ether.h> #include <linux/if_ether.h>
#include <linux/init.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kref.h> #include <linux/kref.h>
...@@ -1497,7 +1498,7 @@ void batadv_tp_meter_recv(struct batadv_priv *bat_priv, struct sk_buff *skb) ...@@ -1497,7 +1498,7 @@ void batadv_tp_meter_recv(struct batadv_priv *bat_priv, struct sk_buff *skb)
/** /**
* batadv_tp_meter_init - initialize global tp_meter structures * batadv_tp_meter_init - initialize global tp_meter structures
*/ */
void batadv_tp_meter_init(void) void __init batadv_tp_meter_init(void)
{ {
get_random_bytes(batadv_tp_prerandom, sizeof(batadv_tp_prerandom)); get_random_bytes(batadv_tp_prerandom, sizeof(batadv_tp_prerandom));
} }
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