OrangePi_CM5/arch/powerpc/platforms
Anders Roxell 031547f4c6 powerpc: Fix build errors with newer binutils
commit 8667d0d64dd1f84fd41b5897fd87fa9113ae05e3 upstream.

Building tinyconfig with gcc (Debian 11.2.0-16) and assembler (Debian
2.37.90.20220207) the following build error shows up:

  {standard input}: Assembler messages:
  {standard input}:1190: Error: unrecognized opcode: `stbcix'
  {standard input}:1433: Error: unrecognized opcode: `lwzcix'
  {standard input}:1453: Error: unrecognized opcode: `stbcix'
  {standard input}:1460: Error: unrecognized opcode: `stwcix'
  {standard input}:1596: Error: unrecognized opcode: `stbcix'
  ...

Rework to add assembler directives [1] around the instruction. Going
through them one by one shows that the changes should be safe.  Like
__get_user_atomic_128_aligned() is only called in p9_hmi_special_emu(),
which according to the name is specific to power9.  And __raw_rm_read*()
are only called in things that are powernv or book3s_hv specific.

[1] https://sourceware.org/binutils/docs/as/PowerPC_002dPseudo.html#PowerPC_002dPseudo

Cc: stable@vger.kernel.org
Co-developed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
[mpe: Make commit subject more descriptive]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220224162215.3406642-2-anders.roxell@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:40:37 +02:00
..
4xx
…
8xx powerpc: 8xx: fix a return value error in mpc8xx_pic_init 2022-04-08 14:40:20 +02:00
40x
…
44x powerpc/44x/fsp2: add missing of_node_put 2021-11-18 14:04:21 +01:00
52xx powerpc/52xx: Fix an invalid ASM expression ('addi' used instead of 'add') 2021-05-14 09:50:42 +02:00
82xx
…
83xx
…
85xx powerpc/85xx: Fix oops when CONFIG_FSL_PMC=n 2021-12-22 09:30:56 +01:00
86xx
…
512x
…
amigaone
…
cell powerpc/cell: Fix clang -Wimplicit-fallthrough warning 2022-01-27 10:54:30 +01:00
chrp
…
embedded6xx powerpc/6xx: add missing of_node_put 2022-01-27 10:54:21 +01:00
maple
…
pasemi
…
powermac powerpc/powermac: Add missing lockdep_register_key() 2022-01-27 10:54:22 +01:00
powernv powerpc: Fix build errors with newer binutils 2022-04-08 14:40:37 +02:00
ps3 powerpc/ps3: Add dma_mask to ps3_dma_region 2021-07-20 16:05:42 +02:00
pseries powerpc/pseries: Get entry and uaccess flush required bits from H_GET_CPU_CHARACTERISTICS 2022-01-20 09:17:52 +01:00
Kconfig
…
Kconfig.cputype powerpc/powermac: Fix low_sleep_handler with CONFIG_VMAP_STACK 2020-12-30 11:53:43 +01:00
Makefile
…
fsl_uli1575.c
…