Skip to content

Commit 04ee086

Browse files
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>
1 parent 069f845 commit 04ee086

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/net/can/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ obj-$(CONFIG_CAN_GRCAN) += grcan.o
2929
obj-$(CONFIG_CAN_RCAR) += rcar_can.o
3030
obj-$(CONFIG_CAN_XILINXCAN) += xilinx_can.o
3131

32-
subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
32+
subdir-ccflags-y += -D__CHECK_ENDIAN__
33+
subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) += -DDEBUG

0 commit comments

Comments
 (0)