Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: Disable flexcan driver build for big endian CPU on ARM

Building arm:allmodconfig fails with

flexcan.c: In function 'flexcan_read':
flexcan.c:243:2: error: implicit declaration of function 'in_be32'
flexcan.c: In function 'flexcan_write':
flexcan.c:248:2: error: implicit declaration of function 'out_be32'

in_be32 and out_be32 do not (or no longer) exist for ARM targets.
Disable the build for ARM on big endian CPUs.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Guenter Roeck and committed by
Marc Kleine-Budde
40d45118 2dcb90ef

+1 -1
+1 -1
drivers/net/can/Kconfig
··· 104 104 105 105 config CAN_FLEXCAN 106 106 tristate "Support for Freescale FLEXCAN based chips" 107 - depends on ARM || PPC 107 + depends on (ARM && CPU_LITTLE_ENDIAN) || PPC 108 108 ---help--- 109 109 Say Y here if you want to support for Freescale FlexCAN. 110 110