diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-11-27 16:33:58 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-12-07 15:22:06 -0500 |
commit | 04ee0865d11f3f2a395e004a181ccfd2b258d088 (patch) | |
tree | da00c2fe502eb0036f69f5d37eaad7f2fb081e13 /drivers/net/can | |
parent | 069f8457ae52328741ac5e441e3880c4daabf82c (diff) |
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')
-rw-r--r-- | drivers/net/can/Makefile | 3 |
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 | |||
29 | obj-$(CONFIG_CAN_RCAR) += rcar_can.o | 29 | obj-$(CONFIG_CAN_RCAR) += rcar_can.o |
30 | obj-$(CONFIG_CAN_XILINXCAN) += xilinx_can.o | 30 | obj-$(CONFIG_CAN_XILINXCAN) += xilinx_can.o |
31 | 31 | ||
32 | subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG | 32 | subdir-ccflags-y += -D__CHECK_ENDIAN__ |
33 | subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) += -DDEBUG | ||