Commit 78f150bf94f5430fe8c34edeafe8d01706f38148

Authored by Pavel Emelyanov
Committed by David S. Miller
1 parent 4ac63ad6c5

[ROSE]: Trivial compilation CONFIG_INET=n case

The rose_rebuild_header() consists only of some variables in
case INET=n, and gcc will warn us about it.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -55,13 +55,13 @@
55 55  
56 56 static int rose_rebuild_header(struct sk_buff *skb)
57 57 {
  58 +#ifdef CONFIG_INET
58 59 struct net_device *dev = skb->dev;
59 60 struct net_device_stats *stats = netdev_priv(dev);
60 61 unsigned char *bp = (unsigned char *)skb->data;
61 62 struct sk_buff *skbn;
62 63 unsigned int len;
63 64  
64   -#ifdef CONFIG_INET
65 65 if (arp_find(bp + 7, skb)) {
66 66 return 1;
67 67 }