summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/Makefile
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2014-11-27 22:33:58 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-12-07 21:22:06 +0100
commit04ee0865d11f3f2a395e004a181ccfd2b258d088 (patch)
treeda00c2fe502eb0036f69f5d37eaad7f2fb081e13 /drivers/net/can/Makefile
parent069f8457ae52328741ac5e441e3880c4daabf82c (diff)
downloadtalos-op-linux-04ee0865d11f3f2a395e004a181ccfd2b258d088.tar.gz
talos-op-linux-04ee0865d11f3f2a395e004a181ccfd2b258d088.zip
can: Enable -D__CHECK_ENDIAN__ for sparse by default
This patch enables endian checking by default when running sparse via "make C=2" for example. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/Makefile')
-rw-r--r--drivers/net/can/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/Makefile b/drivers/net/can/Makefile
index fc9304143f44..c533c62b0f5e 100644
--- a/drivers/net/can/Makefile
+++ b/drivers/net/can/Makefile
@@ -29,4 +29,5 @@ obj-$(CONFIG_CAN_GRCAN) += grcan.o
obj-$(CONFIG_CAN_RCAR) += rcar_can.o
obj-$(CONFIG_CAN_XILINXCAN) += xilinx_can.o
-subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
+subdir-ccflags-y += -D__CHECK_ENDIAN__
+subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) += -DDEBUG
OpenPOWER on IntegriCloud