All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] tp_meter: mark init function with __init
@ 2017-06-07 14:51 Antonio Quartulli
  2017-06-09  7:09 ` Sven Eckelmann
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2017-06-07 14:51 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

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: Antonio Quartulli <a@unstable.cc>
---
 net/batman-adv/tp_meter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/batman-adv/tp_meter.c b/net/batman-adv/tp_meter.c
index 556f9a86..0334c56d 100644
--- a/net/batman-adv/tp_meter.c
+++ b/net/batman-adv/tp_meter.c
@@ -1497,7 +1497,7 @@ void batadv_tp_meter_recv(struct batadv_priv *bat_priv, struct sk_buff *skb)
 /**
  * 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));
 }
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] tp_meter: mark init function with __init
  2017-06-07 14:51 [B.A.T.M.A.N.] [PATCH] tp_meter: mark init function with __init Antonio Quartulli
@ 2017-06-09  7:09 ` Sven Eckelmann
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Eckelmann @ 2017-06-09  7:09 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On Mittwoch, 7. Juni 2017 22:51:22 CEST Antonio Quartulli wrote:
> 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: Antonio Quartulli <a@unstable.cc>
> ---
>  net/batman-adv/tp_meter.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I've added the "batman-adv: " prefix and applied it in 412f93cbbfa8 [1].

Kind regards,
	Sven

[1] https://git.open-mesh.org/batman-adv.git/commit/412f93cbbfa81e31773a513604eb3c7ff5ec814d

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-09  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-07 14:51 [B.A.T.M.A.N.] [PATCH] tp_meter: mark init function with __init Antonio Quartulli
2017-06-09  7:09 ` Sven Eckelmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.