ipv4: remove build warnings caused by product patch 94/158494/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 08:53:32 +0000 (17:53 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 08:53:34 +0000 (17:53 +0900)
Remove build warnings caused by product patch with -Wformat and
-Wunused-function.

Change-Id: I88887cd727dca4892726169eddbf46ea9bd9e22e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
net/ipv4/ip_forward.c
net/ipv4/ip_input.c

index 977a805..0f70dc2 100644 (file)
 #include <net/route.h>
 #include <net/xfrm.h>
 
-static bool ip_may_fragment(const struct sk_buff *skb)
+static bool __maybe_unused ip_may_fragment(const struct sk_buff *skb)
 {
        return unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0) ||
                skb->local_df;
 }
 
-static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu)
+static bool __maybe_unused ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu)
 {
        if (skb->len <= mtu)
                return false;
index b84dbf6..963c72d 100644 (file)
@@ -382,7 +382,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
         */
        if (skb->pkt_type == PACKET_OTHERHOST)
         {
-               printk(KERN_WARNING "ip_rcv skb 0x%x type PACKET_OTHERHOST dev %s adjust to PACKET_HOST\n", skb, dev->name);
+               printk(KERN_WARNING "ip_rcv skb %p type PACKET_OTHERHOST dev %s adjust to PACKET_HOST\n", skb, dev->name);
 
                 /* BUG 415805 This type used to drop it, but in multi card communication.
                    many skb packet from the different net device, so maybe one