OSDN Git Service

bnxt_en: don't consider building bnxt_tc.o if option not enabled
authorJonathan Toppins <jtoppins@redhat.com>
Fri, 6 Oct 2017 19:48:30 +0000 (15:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Oct 2017 02:00:26 +0000 (03:00 +0100)
commit0d7b70e83642f01c451a52faa3908e7b054ff7c6
tree1dc67b6243e015681e0d1e4e4657f5e001275c75
parentca82214144d925155977abe7c0af7c2c252b837f
bnxt_en: don't consider building bnxt_tc.o if option not enabled

Instead of zeroing out bnxt_tc.c with a #ifdef foo, instead don't compile
the file when the option is not enabled. Now make and the preprocessor do
not have to waste time compiling a no-op.

Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/Makefile
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c