Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753427AbaAFJAq (ORCPT ); Mon, 6 Jan 2014 04:00:46 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:55122 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753324AbaAFJAp (ORCPT ); Mon, 6 Jan 2014 04:00:45 -0500 Message-ID: <52CA70B3.5020004@pengutronix.de> Date: Mon, 06 Jan 2014 10:00:35 +0100 From: Marc Kleine-Budde User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Guenter Roeck CC: Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: can: Disable broken flexcan driver build for big endian CPU on ARM References: <1388944283-29990-1-git-send-email-linux@roeck-us.net> In-Reply-To: <1388944283-29990-1-git-send-email-linux@roeck-us.net> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KLRVP1ajhAdnpIXU12PQGGVjt9qLKNMg2" X-SA-Exim-Connect-IP: 2001:6f8:1178:4:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KLRVP1ajhAdnpIXU12PQGGVjt9qLKNMg2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/05/2014 06:51 PM, Guenter Roeck wrote: > Building arm:allmodconfig fails with >=20 > 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' >=20 > 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. I think there isn't any ARM with this CAN core that supports BE (at least on Linux). > Signed-off-by: Guenter Roeck > --- > If there is a better solution, please let me know and I'll be happy > to provide a patch. >=20 > drivers/net/can/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig > index 3c06947..8d202f4 100644 > --- a/drivers/net/can/Kconfig > +++ b/drivers/net/can/Kconfig > @@ -104,7 +104,7 @@ config CAN_JANZ_ICAN3 > =20 > 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 > ---help--- > Say Y here if you want to support for Freescale FlexCAN. > =20 >=20 Marc --=20 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 | --KLRVP1ajhAdnpIXU12PQGGVjt9qLKNMg2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlLKcLMACgkQjTAFq1RaXHOjMgCfaoiOijjMdGb7W7JGoUb/rxqR NtEAn2BXIkcFk5/5fkKkGaaliQHVGjix =bgyR -----END PGP SIGNATURE----- --KLRVP1ajhAdnpIXU12PQGGVjt9qLKNMg2-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/