cls_u32: fix sparse warnings

The variable _data is used in asm-generic to define sections
which causes sparse warnings, so just rename the variable.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
stephen hemminger 2011-02-20 16:14:23 +00:00 committed by David S. Miller
parent db62983a1e
commit 86fce3ba1e
1 changed files with 6 additions and 6 deletions

View File

@ -134,12 +134,12 @@ next_knode:
for (i = n->sel.nkeys; i > 0; i--, key++) { for (i = n->sel.nkeys; i > 0; i--, key++) {
int toff = off + key->off + (off2 & key->offmask); int toff = off + key->off + (off2 & key->offmask);
__be32 *data, _data; __be32 *data, hdata;
if (skb_headroom(skb) + toff > INT_MAX) if (skb_headroom(skb) + toff > INT_MAX)
goto out; goto out;
data = skb_header_pointer(skb, toff, 4, &_data); data = skb_header_pointer(skb, toff, 4, &hdata);
if (!data) if (!data)
goto out; goto out;
if ((*data ^ key->val) & key->mask) { if ((*data ^ key->val) & key->mask) {
@ -187,10 +187,10 @@ check_terminal:
ht = n->ht_down; ht = n->ht_down;
sel = 0; sel = 0;
if (ht->divisor) { if (ht->divisor) {
__be32 *data, _data; __be32 *data, hdata;
data = skb_header_pointer(skb, off + n->sel.hoff, 4, data = skb_header_pointer(skb, off + n->sel.hoff, 4,
&_data); &hdata);
if (!data) if (!data)
goto out; goto out;
sel = ht->divisor & u32_hash_fold(*data, &n->sel, sel = ht->divisor & u32_hash_fold(*data, &n->sel,
@ -202,11 +202,11 @@ check_terminal:
if (n->sel.flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) { if (n->sel.flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) {
off2 = n->sel.off + 3; off2 = n->sel.off + 3;
if (n->sel.flags & TC_U32_VAROFFSET) { if (n->sel.flags & TC_U32_VAROFFSET) {
__be16 *data, _data; __be16 *data, hdata;
data = skb_header_pointer(skb, data = skb_header_pointer(skb,
off + n->sel.offoff, off + n->sel.offoff,
2, &_data); 2, &hdata);
if (!data) if (!data)
goto out; goto out;
off2 += ntohs(n->sel.offmask & *data) >> off2 += ntohs(n->sel.offmask & *data) >>