2014-10-01 17:30:15

by Fabian Frédérick

[permalink] [raw]
Subject: [PATCH 1/1 net-next] cipso: add __init to cipso_v4_cache_init

cipso_v4_cache_init is only called by __init cipso_v4_init

Signed-off-by: Fabian Frederick <[email protected]>
---
net/ipv4/cipso_ipv4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
index 05b708b..4715f25 100644
--- a/net/ipv4/cipso_ipv4.c
+++ b/net/ipv4/cipso_ipv4.c
@@ -246,7 +246,7 @@ static u32 cipso_v4_map_cache_hash(const unsigned char *key, u32 key_len)
* success, negative values on error.
*
*/
-static int cipso_v4_cache_init(void)
+static int __init cipso_v4_cache_init(void)
{
u32 iter;

--
1.9.3


2014-10-01 19:47:33

by David Miller

[permalink] [raw]
Subject: Re: [PATCH 1/1 net-next] cipso: add __init to cipso_v4_cache_init

From: Fabian Frederick <[email protected]>
Date: Wed, 1 Oct 2014 19:30:03 +0200

> cipso_v4_cache_init is only called by __init cipso_v4_init
>
> Signed-off-by: Fabian Frederick <[email protected]>

Applied.