]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[IPSEC]: Move linux/crypto.h inclusion out of net/xfrm.h
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 6 Aug 2006 09:49:12 +0000 (19:49 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 Sep 2006 01:16:30 +0000 (11:16 +1000)
The header file linux/crypto.h is only needed by a few files so including
it in net/xfrm.h (which is included by half of the networking stack) is a
waste.  This patch moves it out of net/xfrm.h and into the specific header
files that actually need it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/net/ah.h
include/net/esp.h
include/net/ipcomp.h
include/net/xfrm.h
net/xfrm/xfrm_user.c

index ceff00afae09f283e0d23cb44db2aa009c079f4c..8e27c9ba8b84d039a0818fa35026cd3fa2800a30 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _NET_AH_H
 #define _NET_AH_H
 
+#include <linux/crypto.h>
 #include <net/xfrm.h>
 
 /* This is the maximum truncated ICV length that we know of. */
index 90cd94fad7d9cbbc286caa2d7b9674b924f61877..6eb837973c84f0a45e941f8fe4b81b7a1bafe188 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _NET_ESP_H
 #define _NET_ESP_H
 
+#include <linux/crypto.h>
 #include <net/xfrm.h>
 #include <asm/scatterlist.h>
 
index e651a57ecdd57e1545ea1e494f9b9e24264d1d27..b94e3047b4d9b39f2ba5782675a2037815545883 100644 (file)
@@ -1,8 +1,12 @@
 #ifndef _NET_IPCOMP_H
 #define _NET_IPCOMP_H
 
+#include <linux/types.h>
+
 #define IPCOMP_SCRATCH_SIZE     65400
 
+struct crypto_tfm;
+
 struct ipcomp_data {
        u16 threshold;
        struct crypto_tfm **tfms;
index 9c5ee9f20b65b7ef336652fc640331c67bc22c8f..10396b4bde14752c1fb69fdef3546641c097eabf 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/list.h>
 #include <linux/skbuff.h>
 #include <linux/socket.h>
-#include <linux/crypto.h>
 #include <linux/pfkeyv2.h>
 #include <linux/in6.h>
 #include <linux/mutex.h>
@@ -985,6 +984,7 @@ extern struct xfrm_algo_desc *xfrm_ealg_get_byname(char *name, int probe);
 extern struct xfrm_algo_desc *xfrm_calg_get_byname(char *name, int probe);
 
 struct crypto_tfm;
+struct scatterlist;
 typedef void (icv_update_fn_t)(struct crypto_tfm *, struct scatterlist *, unsigned int);
 
 extern void skb_icv_walk(const struct sk_buff *skb, struct crypto_tfm *tfm,
index 3e6a722d072ed8b75c0561b82617abd5a2d3adcd..7d18ca03c80d385a24da56cd1599e74755ca1384 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <linux/crypto.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>