Message ID | 20130814200442.GA20372@8bytes.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Aug 14, 2013 at 10:04 PM, Joerg Roedel <joro@8bytes.org> wrote: > So when integrator does not depend on PCI this diff is more appropriate? > > diff --git a/arch/arm/mach-integrator/pci_v3.h b/arch/arm/mach-integrator/pci_v3.h > index 755fd29..51738e0 100644 > --- a/arch/arm/mach-integrator/pci_v3.h > +++ b/arch/arm/mach-integrator/pci_v3.h > @@ -1,2 +1,9 @@ > -/* Simple oneliner include to the PCIv3 early init */ > +/* Define PCIv3 early init */ > +#ifdef CONFIG_PCI > extern int pci_v3_early_init(void); > +#else > +static inline int pci_v3_early_init(void) > +{ > + return 0; > +} > +#endif Yes. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> And can you please create and send a proper patch with this content to arm@kernel.org and the mailing list on CC, with a request for the ARM SoC maintainers to apply it directly as a fix? You might as well add Cc: stable@vger.kernel.org as well. Yours, Linus Walleij
On Wed, Aug 28, 2013 at 09:26:57AM +0200, Linus Walleij wrote: > On Wed, Aug 14, 2013 at 10:04 PM, Joerg Roedel <joro@8bytes.org> wrote: > > > So when integrator does not depend on PCI this diff is more appropriate? > > > > diff --git a/arch/arm/mach-integrator/pci_v3.h b/arch/arm/mach-integrator/pci_v3.h > > index 755fd29..51738e0 100644 > > --- a/arch/arm/mach-integrator/pci_v3.h > > +++ b/arch/arm/mach-integrator/pci_v3.h > > @@ -1,2 +1,9 @@ > > -/* Simple oneliner include to the PCIv3 early init */ > > +/* Define PCIv3 early init */ > > +#ifdef CONFIG_PCI > > extern int pci_v3_early_init(void); > > +#else > > +static inline int pci_v3_early_init(void) > > +{ > > + return 0; > > +} > > +#endif > > Yes. > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > > And can you please create and send a proper patch with this > content to arm@kernel.org and the mailing list on CC, with > a request for the ARM SoC maintainers to apply it directly > as a fix? > > You might as well add Cc: stable@vger.kernel.org as well. Will do, thanks for your review. Cheers, Joerg
On Wed, Aug 28, 2013 at 09:26:57AM +0200, Linus Walleij wrote: > Yes. > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > > And can you please create and send a proper patch with this > content to arm@kernel.org and the mailing list on CC, with > a request for the ARM SoC maintainers to apply it directly > as a fix? > > You might as well add Cc: stable@vger.kernel.org as well. Okay, sorry, forgot about this one. But my compile-tests kindly reminded me and I sent the patch out again now :) Joerg
diff --git a/arch/arm/mach-integrator/pci_v3.h b/arch/arm/mach-integrator/pci_v3.h index 755fd29..51738e0 100644 --- a/arch/arm/mach-integrator/pci_v3.h +++ b/arch/arm/mach-integrator/pci_v3.h @@ -1,2 +1,9 @@ -/* Simple oneliner include to the PCIv3 early init */ +/* Define PCIv3 early init */ +#ifdef CONFIG_PCI extern int pci_v3_early_init(void); +#else +static inline int pci_v3_early_init(void) +{ + return 0; +} +#endif