summaryrefslogtreecommitdiffstats
path: root/kernel/pfxlen.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-20 14:48:23 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-20 14:48:23 +0100
commitc8396bdc040f4b16e6f6e3f8b81b9fb67a499d9c (patch)
tree0704d9f117fb9fefed1b9ec5e680e765d80ff877 /kernel/pfxlen.c
parent13dcc23a375f61d8286072b20067fb31bcc3ad46 (diff)
Use annotated types and fix sparse warnings
Annotated types are introduced and sparse warnings fixed. Two warnings remained in ip_set_core.c but those are false ones. (Patrick McHardy's review)
Diffstat (limited to 'kernel/pfxlen.c')
-rw-r--r--kernel/pfxlen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/pfxlen.c b/kernel/pfxlen.c
index c6c9dcc..23f8c81 100644
--- a/kernel/pfxlen.c
+++ b/kernel/pfxlen.c
@@ -148,8 +148,10 @@ const union nf_inet_addr ip_set_netmask_map[] = {
EXPORT_SYMBOL_GPL(ip_set_netmask_map);
#undef E
-#define E(a, b, c, d) \
- {.ip6 = { a, b, c, d } }
+#define E(a, b, c, d) \
+ {.ip6 = { (__force __be32) a, (__force __be32) b, \
+ (__force __be32) c, (__force __be32) d, \
+ } }
/*
* This table works for both IPv4 and IPv6;