Skip to content

Commit 40d4511

Browse files
groeckmarckleinebudde
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 2dcb90e commit 40d4511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ config CAN_JANZ_ICAN3
104104

105105
config CAN_FLEXCAN
106106
tristate "Support for Freescale FLEXCAN based chips"
107-
depends on ARM || PPC
107+
depends on (ARM && CPU_LITTLE_ENDIAN) || PPC
108108
---help---
109109
Say Y here if you want to support for Freescale FlexCAN.
110110

0 commit comments

Comments
 (0)