[Buildroot] [PATCH] configs/qemu_sparc_ss10: add Linux kernel patch to fix build with gcc 7.x
Peter Korsgaard
peter at korsgaard.com
Sun Feb 4 12:38:29 UTC 2018
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:
> This commit adds a Linux kernel patch that fixes the build of the
> qemu_sparc_ss10 defconfig when used with gcc 7.x:
> arch/sparc/kernel/pcic.c: In function ‘pcibios_fixup_bus’:
> arch/sparc/kernel/pcic.c:647:8: error: ‘cmd’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> cmd |= PCI_COMMAND_IO;
> ^~
> The patch has been submitted upstream.
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
> I don't know if we want to merge this patch in Buildroot. Indeed:
> - The defconfig doesn't use gcc 7.x currently, so the problem doesn't
> exist with the defconfig as-is.
> - This problem exists for essentially all SPARC configurations that
> have PCI support enabled.
> The reason why I encountered this problem is because I'm testing
> bleeding edge toolchains (based on gcc 7.x) with our Qemu defconfigs.
I see this is mainline since 4.13, so I've marked this as rejected in
patchwork. When we move to gcc7.x we can just bump the kernel version.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list