[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7546804.XWPgHM2sst@wuerfel>
Date: Thu, 04 Sep 2014 23:42:43 +0200
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Xia Kaixu <kaixu.xia@...aro.org>, linux-kernel@...r.kernel.org,
Felix Fietkau <nbd@...nwrt.org>,
linaro-kernel@...ts.linaro.org, Anton Vorontsov <anton@...msg.org>,
Imre Kaloz <kaloz@...nwrt.org>
Subject: Re: [PATCH] ARM: cns3xxx: fix allmodconfig panic in pci driver
On Wednesday 03 September 2014 21:18:12 Xia Kaixu wrote:
>
> +#ifdef CONFIG_PCI
> +extern int __init cns3xxx_pcie_init_late(void);
> +#else
> +static inline int __init cns3xxx_pcie_init_late(void)
> +{
> + return -ENXIO;
> +}
> +#endif
> +
> void __init cns3xxx_map_io(void);
>
I found another problem: we get a new compile-time warning
because the function returns an 'int' while the .init_late
callback expects a function returning 'void'.
I've fixed it up locally, but please be more careful about
introducing warnings in the future.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists