Re: linux-next: build failure after merge of the pci tree

From: Michael Ellerman
Date: Sun Jan 28 2018 - 23:41:59 EST


Rob Herring <robh@xxxxxxxxxx> writes:

> On Wed, Jan 24, 2018 at 11:49 PM, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>> Hi Bjorn,
>>
>> After merging the pci tree, today's linux-next build (powerpc
>> ppc64_defconfig) failed like this:
>>
>> arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup
>> _device':
>> arch/powerpc/kernel/pci-common.c:406:15: error: 'virq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>> pci_dev->irq = virq;
>> ~~~~~~~~~~~~~^~~~~~
>> arch/powerpc/kernel/pci-common.c:365:15: note: 'virq' was declared here
>> unsigned int virq;
>> ^~~~
>
> I guess I need to update my PPC compiler from 4.8.0. It doesn't warn
> or error on this. Neither did 0-day.

https://toolchains.free-electrons.com/

Has 5.4.0 and 7.2.0 for both big and little endian.

cheers