Re: Build regressions/improvements in v5.0-rc1
From: Geert Uytterhoeven
Date: Tue Jan 08 2019 - 04:01:38 EST
On Tue, Jan 8, 2019 at 9:49 AM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
> Below is the list of build error/warning regressions/improvements in
> v5.0-rc1[1] compared to v4.20[2].
>
> Summarized:
> - build errors: +12/-4
> - build warnings: +405/-350
>
> Happy fixing! ;-)
>
> Thanks to the linux-next team for providing the build service.
>
> [1] http://kisskb.ellerman.id.au/kisskb/branch/linus/head/bfeffd155283772bbe78c6a05dec7c0128ee500c/ (all 240 configs)
> [2] http://kisskb.ellerman.id.au/kisskb/branch/linus/head/8fe28cb58bcb235034b64cbbb7550a8a43fd88be/ (all 240 configs)
>
>
> *** ERRORS ***
>
> 12 error regressions:
> + /kisskb/src/arch/mips/generic/init.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/generic/irq.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/kernel/branch.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/kernel/cmpxchg.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/kernel/cpu-probe.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/mm/cache.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/mm/extable.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/mm/fault.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + /kisskb/src/arch/mips/net/bpf_jit.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
> + arch/mips/vdso/vdso-image.c: error: -ffunction-sections disabled; it makes profiling impossible [-Werror]: => 1:0
mips-allmodconfig
These are even more annoying than on powerpc, as mips enables -Werror for
arch/mips/ :-(
Can this be avoided, e.g. by making LD_DEAD_CODE_DATA_ELIMINATION and
profiling mutually exclusive?
> + error: arch/sparc/kernel/head_32.o: relocation truncated to fit: R_SPARC_WDISP22 against `.init.text': => (.head.text+0x5100), (.head.text+0x5040)
> + error: arch/sparc/kernel/head_32.o: relocation truncated to fit: R_SPARC_WDISP22 against symbol `leon_smp_cpu_startup' defined in .text section in arch/sparc/kernel/trampoline_32.o: => (.init.text+0xa4)
Same as before, just a different signature.
> 4 error improvements:
> - /kisskb/src/arch/s390/kernel/nospec-branch.c: error: macro "memcpy" passed 6 arguments, but takes just 3: 130:61 =>
> - /kisskb/src/sound/pci/hda/patch_ca0132.c: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration]: 8800:3 =>
> - error: arch/sparc/kernel/.tmp_head_32.o: relocation truncated to fit: R_SPARC_WDISP22 against `.init.text': (.head.text+0x5040), (.head.text+0x5100) =>
> - error: arch/sparc/kernel/.tmp_head_32.o: relocation truncated to fit: R_SPARC_WDISP22 against symbol `leon_smp_cpu_startup' defined in .text section in arch/sparc/kernel/trampoline_32.o: (.init.text+0xa4) =>
>
>
> *** WARNINGS ***
>
> [Deleted 490 lines about "warning: -ffunction-sections disabled; it makes profiling impossible [enabled by default]" on {mips,powerpc}-all{mod,yes}config*]
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds