diff options
author | Ying Xue <ying.xue@windriver.com> | 2013-03-27 16:46:06 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-28 03:21:58 (GMT) |
commit | fbbdb8f096e0e5d8244e1ffa46e364146ab9a440 (patch) | |
tree | 697ea6b58fa25f3481b7a6a31cccdfa0e9c422c8 /drivers/net/ethernet/broadcom/bnx2x | |
parent | 429a22ca39e531d9f8bacac1f81f7207909bcbd2 (diff) | |
download | linux-fsl-qoriq-fbbdb8f096e0e5d8244e1ffa46e364146ab9a440.tar.xz |
net: fix compile error of implicit declaration of skb_probe_transport_header
The commit 40893fd(net: switch to use skb_probe_transport_header())
involes a new error accidently. When NET_SKBUFF_DATA_USES_OFFSE is
not enabled, below compile error happens:
CC net/packet/af_packet.o
net/packet/af_packet.c: In function ‘packet_sendmsg_spkt’:
net/packet/af_packet.c:1516:2: error: implicit declaration of function ‘skb_probe_transport_header’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [net/packet/af_packet.o] Error 1
make[1]: *** [net/packet] Error 2
make: *** [net] Error 2
As it seems skb_probe_transport_header() is not related to
NET_SKBUFF_DATA_USES_OFFSE, we should move the definition of
skb_probe_transport_header() out of scope of
NET_SKBUFF_DATA_USES_OFFSE macro.
Cc: Jason Wang <jasowang@redhat.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x')
0 files changed, 0 insertions, 0 deletions