net: can: Disable broken flexcan driver build for big endian CPU on ARM
Subsystems (3)
PATCH 1/1 net: can: Disable broken 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. Mark the build for arm on big endian CPUs as broken.
---
If there is a better solution, please let me know and I'll be happy to provide a patch.
drivers/net/can/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/Kconfig +1 -1
@@ -104,7 +104,7 @@ config CAN_JANZ_ICAN3 config CAN_FLEXCAN tristate "Support for Freescale FLEXCAN based chips" - depends on ARM || PPC + depends on (ARM || PPC) && (BROKEN || !ARM || CPU_LITTLE_ENDIAN) ---help--- Say Y here if you want to support for Freescale FlexCAN.
Signature · 1 line
1.7.9.7
Marc Kleine-Budde
maintainerQuoted 9 lines · Guenter Roeck
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_be32andout_be32do not (or no longer) exist for ARM targets. Mark the build for arm on big endian CPUs as broken.
I think there isn't any ARM with this CAN core that supports BE (at least on Linux).
Quoted 13 lines
Signed-off-by Guenter Roeck <[email protected]>---
If there is a better solution, please let me know and I'll be happy to provide a patch.drivers/net/can/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/can/Kconfig +0
-0
drivers/net/can/Kconfig config CAN_JANZ_ICAN3 · line 107
Quoted 5 lines
drivers/net/can/Kconfig +1
-1@@ -104,7 +104,7 @@ config CAN_JANZ_ICAN3 config CAN_FLEXCAN tristate "Support for Freescale FLEXCAN based chips" - depends on ARM || PPC + depends on (ARM || PPC) && (BROKEN || !ARM || CPU_LITTLE_ENDIAN)
Why not make it:
depends on (ARM && CPU_LITTLE_ENDIAN) || PPC
drivers/net/can/Kconfig config CAN_JANZ_ICAN3 · line 110
Quoted 4 lines
drivers/net/can/Kconfig +0
-0---help--- Say Y here if you want to support for Freescale FlexCAN.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |