lkml.org 
[lkml]   [2014]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] ARM: cns3xxx: fix allmodconfig panic in pci driver
Date
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


\
 
 \ /
  Last update: 2014-09-05 00:21    [W:1.645 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site