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>
#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;
*/
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