]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:36:30 +0000 (17:36 -0700)
commit30d8acdb1f435cfcc13f92f2a5327645f48cc513
treedf9776bdc0bdd26952fec6e40637ef8cc69d229a
parent75ef2e25bb1167f4f13eb45a5f9a919911c45e1f
bnxt_en: Fix compile warnings when CONFIG_INET is not set.

Orabug: 23221795

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>
(cherry picked from commit d1611c3aba11ffa281bdd027aace52f5a370b8c5)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h