]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit881c13b31e36be7eb035f101d3a13bd603d97c4d
tree1dc67b6243e015681e0d1e4e4657f5e001275c75
parent479ba5ccb0f6b7ade2123b0f7536a46d94caee49
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