From c8396bdc040f4b16e6f6e3f8b81b9fb67a499d9c Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 20 Jan 2011 14:48:23 +0100 Subject: 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) --- kernel/include/linux/netfilter/ipset/pfxlen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/include/linux/netfilter/ipset/pfxlen.h') 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 * -- cgit v1.2.3