diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-20 14:48:23 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-20 14:48:23 +0100 |
commit | c8396bdc040f4b16e6f6e3f8b81b9fb67a499d9c (patch) | |
tree | 0704d9f117fb9fefed1b9ec5e680e765d80ff877 /kernel/include/linux/netfilter/ipset/pfxlen.h | |
parent | 13dcc23a375f61d8286072b20067fb31bcc3ad46 (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/include/linux/netfilter/ipset/pfxlen.h')
-rw-r--r-- | kernel/include/linux/netfilter/ipset/pfxlen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/include/linux/netfilter/ipset/pfxlen.h b/kernel/include/linux/netfilter/ipset/pfxlen.h index 08e6059..0e1fb50 100644 --- a/kernel/include/linux/netfilter/ipset/pfxlen.h +++ b/kernel/include/linux/netfilter/ipset/pfxlen.h @@ -20,10 +20,10 @@ ip_set_netmask6(u8 pfxlen) return &ip_set_netmask_map[pfxlen].ip6[0]; } -static inline __be32 +static inline u32 ip_set_hostmask(u8 pfxlen) { - return ip_set_hostmask_map[pfxlen].ip; + return (__force u32) ip_set_hostmask_map[pfxlen].ip; } static inline const __be32 * |