linux/arch/mips/loongson64
Nathan Chancellor d49fc69293 MIPS: Loongson{2ef,64}: Wrap -mno-branch-likely with cc-option
This flag is not supported by clang, which results in a warning:

  clang-14: warning: argument unused during compilation: '-mno-branch-likely' [-Wunused-command-line-argument]

This breaks cc-option, which adds -Werror to make this warning fatal and
catch flags that are not supported.

Wrap this flag in cc-option so that it does not cause cc-option to fail,
which can cause randconfigs to be really noisy, due to warnings not
getting disabled that should be.

Additionally, move the cc-option check to Kconfig so that the check is
done at configuration time, rather than build time, as builds with no
configuration change will be quicker because the cc-option call will not
need to happen in those instances.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2022-02-07 18:30:12 +01:00
..
boardinfo.c MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo 2020-10-27 12:46:06 +01:00
cop2-ex.c MIPS: Loongson-3: Fix fp register access if MSA enabled 2020-09-22 13:07:22 +02:00
cpucfg-emul.c MIPS: Unify naming style of vendor CP0.Config6 bits 2020-07-08 11:15:53 +02:00
dma.c dma-direct: rename and cleanup __phys_to_dma 2020-09-11 09:14:43 +02:00
env.c MIPS: Loongson64: Remove a "set but not used" variable 2021-05-27 12:35:19 +02:00
hpet.c MIPS: Replace setup_irq() by request_irq() 2020-03-05 16:47:35 +01:00
init.c Merge branch 'akpm' (patches from Andrew) 2021-11-06 14:08:17 -07:00
Kconfig MIPS: Loongson64: Mark RS780 HPET as broken 2020-04-20 19:37:01 +02:00
Makefile MIPS: Loongson64: Remove unused sysconf members 2021-03-12 11:09:09 +01:00
numa.c MIPS: loongsoon64: Reserve memory below starting pfn to prevent Oops 2021-06-29 10:15:46 +02:00
Platform MIPS: Loongson{2ef,64}: Wrap -mno-branch-likely with cc-option 2022-02-07 18:30:12 +01:00
pm.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
reset.c MIPS: Loongson64: Fix build error 'secondary_kexec_args' undeclared under !SMP 2021-05-11 22:21:21 +02:00
setup.c MIPS: Loongson64: Load built-in dtbs 2020-03-25 16:07:12 +01:00
smp.c MIPS: loongson64: Drop call to irq_cpu_offline() 2021-10-26 11:18:33 +01:00
smp.h MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
time.c MIPS: Loongson64: Add support for the Loongson-2K1000 to get cpu_clock_freq 2021-03-25 10:44:01 +01:00
vbios_quirk.c PCI/sysfs: Find shadow ROM before static attribute initialization 2022-01-26 10:41:21 -06:00