From 692fd7db42487f4c173cfb2743e40baee160b359 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 13 Jan 2011 22:01:51 +0100 Subject: [PATCH] Use jhash.h accepted in kernel, with backward compatibility. --- kernel/Kbuild | 4 ++-- kernel/include/linux/{netfilter/ipset => }/jhash.h | 0 kernel/include/linux/netfilter/ipset/ip_set_ahash.h | 2 +- kernel/ip_set_hash_ip.c | 2 +- kernel/ip_set_hash_ipport.c | 2 +- kernel/ip_set_hash_ipportip.c | 2 +- kernel/ip_set_hash_ipportnet.c | 2 +- kernel/ip_set_hash_net.c | 2 +- kernel/ip_set_hash_netport.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) rename kernel/include/linux/{netfilter/ipset => }/jhash.h (100%) diff --git a/kernel/Kbuild b/kernel/Kbuild index fec90be..8713c5b 100644 --- a/kernel/Kbuild +++ b/kernel/Kbuild @@ -1,5 +1,5 @@ -EXTRA_CFLAGS := -I$(M)/include \ - -DCONFIG_IP_SET_MAX=$(IP_SET_MAX) +NOSTDINC_FLAGS += -I$(M)/include +EXTRA_CFLAGS := -DCONFIG_IP_SET_MAX=$(IP_SET_MAX) ip_set-y := ip_set_core.o pfxlen.o obj-m += ip_set.o xt_set.o diff --git a/kernel/include/linux/netfilter/ipset/jhash.h b/kernel/include/linux/jhash.h similarity index 100% rename from kernel/include/linux/netfilter/ipset/jhash.h rename to kernel/include/linux/jhash.h diff --git a/kernel/include/linux/netfilter/ipset/ip_set_ahash.h b/kernel/include/linux/netfilter/ipset/ip_set_ahash.h index b7029e1..2975041 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_ahash.h +++ b/kernel/include/linux/netfilter/ipset/ip_set_ahash.h @@ -2,7 +2,7 @@ #define _IP_SET_AHASH_H #include -#include +#include #include /* Hashing which uses arrays to resolve clashing. The hash table is resized diff --git a/kernel/ip_set_hash_ip.c b/kernel/ip_set_hash_ip.c index c5b73dd..1b19b62 100644 --- a/kernel/ip_set_hash_ip.c +++ b/kernel/ip_set_hash_ip.c @@ -8,7 +8,7 @@ /* Kernel module implementing an IP set type: the hash:ip type */ #include -#include +#include #include #include #include diff --git a/kernel/ip_set_hash_ipport.c b/kernel/ip_set_hash_ipport.c index 9f0c130..1f60450 100644 --- a/kernel/ip_set_hash_ipport.c +++ b/kernel/ip_set_hash_ipport.c @@ -8,7 +8,7 @@ /* Kernel module implementing an IP set type: the hash:ip,port type */ #include -#include +#include #include #include #include diff --git a/kernel/ip_set_hash_ipportip.c b/kernel/ip_set_hash_ipportip.c index 84a4a41..556cc98 100644 --- a/kernel/ip_set_hash_ipportip.c +++ b/kernel/ip_set_hash_ipportip.c @@ -8,7 +8,7 @@ /* Kernel module implementing an IP set type: the hash:ip,port,ip type */ #include -#include +#include #include #include #include diff --git a/kernel/ip_set_hash_ipportnet.c b/kernel/ip_set_hash_ipportnet.c index 5c857c4..d6ff09f 100644 --- a/kernel/ip_set_hash_ipportnet.c +++ b/kernel/ip_set_hash_ipportnet.c @@ -8,7 +8,7 @@ /* Kernel module implementing an IP set type: the hash:ip,port,net type */ #include -#include +#include #include #include #include diff --git a/kernel/ip_set_hash_net.c b/kernel/ip_set_hash_net.c index 6096830..1ad1de7 100644 --- a/kernel/ip_set_hash_net.c +++ b/kernel/ip_set_hash_net.c @@ -8,7 +8,7 @@ /* Kernel module implementing an IP set type: the hash:net type */ #include -#include +#include #include #include #include diff --git a/kernel/ip_set_hash_netport.c b/kernel/ip_set_hash_netport.c index b2e1cca..a58da7c 100644 --- a/kernel/ip_set_hash_netport.c +++ b/kernel/ip_set_hash_netport.c @@ -8,7 +8,7 @@ /* Kernel module implementing an IP set type: the hash:net,port type */ #include -#include +#include #include #include #include -- 2.40.0