netfilter: xtables: remove __pure annotation
authorFlorian Westphal <fw@strlen.de>
Tue, 14 Jul 2015 15:51:10 +0000 (17:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Jul 2015 16:18:07 +0000 (18:18 +0200)
sparse complains:
ip_tables.c:361:27: warning: incorrect type in assignment (different modifiers)
ip_tables.c:361:27:    expected struct ipt_entry *[assigned] e
ip_tables.c:361:27:    got struct ipt_entry [pure] *

doesn't change generated code.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c

index 969fdbe6fbb5bf47aaa2a813c0cacb50142922a8..c416cb355cb0cdc6932e32ee7b93cfe8680bf0e5 100644 (file)
@@ -240,7 +240,7 @@ get_entry(const void *base, unsigned int offset)
        return (struct arpt_entry *)(base + offset);
 }
 
-static inline __pure
+static inline
 struct arpt_entry *arpt_next_entry(const struct arpt_entry *entry)
 {
        return (void *)entry + entry->next_offset;
index ff585bdbf850ad42d9ecd955b0263188d1e78901..787f99ed55e266b209598a496b5df71be20913ad 100644 (file)
@@ -276,7 +276,7 @@ static void trace_packet(const struct sk_buff *skb,
 }
 #endif
 
-static inline __pure
+static inline
 struct ipt_entry *ipt_next_entry(const struct ipt_entry *entry)
 {
        return (void *)entry + entry->next_offset;
index ea6d105063c2d4b886684babf92131c9fb1f6416..4e21f80228be2047bf4344cdf958777b42461bfb 100644 (file)
@@ -305,7 +305,7 @@ static void trace_packet(const struct sk_buff *skb,
 }
 #endif
 
-static inline __pure struct ip6t_entry *
+static inline struct ip6t_entry *
 ip6t_next_entry(const struct ip6t_entry *entry)
 {
        return (void *)entry + entry->next_offset;