Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=22e0e62cd09dcf56fe1a7be66698b6e130e4314c
Commit:     22e0e62cd09dcf56fe1a7be66698b6e130e4314c
Parent:     969d71089f9b26f7ca4721c8c6559e50d81438f5
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 31 04:55:29 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 19:28:16 2008 -0800

    [NETFILTER]: xt_iprange: fix sparse warnings
    
      CHECK   net/netfilter/xt_iprange.c
    net/netfilter/xt_iprange.c:104:19: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:37: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:19: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:37: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:19: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:37: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:19: warning: restricted degrades to integer
    net/netfilter/xt_iprange.c:104:37: warning: restricted degrades to integer
    
    Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/netfilter/xt_iprange.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/xt_iprange.c b/net/netfilter/xt_iprange.c
index dbea0e0..01035fc 100644
--- a/net/netfilter/xt_iprange.c
+++ b/net/netfilter/xt_iprange.c
@@ -101,7 +101,7 @@ iprange_ipv6_sub(const struct in6_addr *a, const struct 
in6_addr *b)
        int r;
 
        for (i = 0; i < 4; ++i) {
-               r = a->s6_addr32[i] - b->s6_addr32[i];
+               r = (__force u32)a->s6_addr32[i] - (__force u32)b->s6_addr32[i];
                if (r != 0)
                        return r;
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to