]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix compile warnings when CONFIG_INET is not set.
authorMichael Chan <mchan@broadcom.com>
Mon, 26 Oct 2015 02:27:57 +0000 (22:27 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Oct 2015 05:36:15 +0000 (22:36 -0700)
commit702a8d9fbbd6434c70a6baebdfbd0b7a4c0ae68d
tree8684d9f42b7dd75b6a4ccfccdc0c709af0e6ff25
parent9f78241cc267cbbb15a0062cdbab9fe91e93b34a
bnxt_en: Fix compile warnings when CONFIG_INET is not set.

bnxt_gro_skb() has unused variables when CONFIG_INET is not set.  We
really cannot support hardware GRO if CONFIG_INET is not set, so
compile out bnxt_gro_skb() completely and define BNXT_FLAG_GRO to be 0
if CONFIG_INET is not set.  This will effectively always disable
hardware GRO if CONFIG_INET is not set.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h