summaryrefslogtreecommitdiff
path: root/kernel/debug
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2026-09-24 21:16:00 -0700
committerVineet Gupta <vgupta@kernel.org>2026-11-13 21:21:13 -0800
commit603b4fd69b4e77770761ea03451e2164186f8590 (patch)
tree4c0925ecd1ef1c7fb1e688c27eb087fbee512927 /kernel/debug
parent7475ea8b58616b33c04afb976cf0fbaad9dd63fb (diff)
ARC: io: work around GCC PR127718 in __raw_write{w,l}()
The __raw_write{w,l}() accessors use inline asm with an "m" operand for the store destination. GCC's ARC backend lets "m" match any legitimate address, including the register-indexed [b,c] forms that only loads support: stores only have [reg], [reg,s9] and [limm] addressing. With newer GCC (late-combine in GCC 15, combine in GCC 16), a writew() with a scaled, non-constant offset gets stw.as r2,[r0,r1] which the assembler rejects: Error: inappropriate arguments for opcode 'stw' With GCC 16 this breaks even hsdk_defconfig (drivers/net/pcs/ pcs-xpcs-plat.c) and axs101_defconfig. allyesconfig additionally trips in drivers/pinctrl/renesas/pinctrl-rza2.c and drivers/video/fbdev/ s3c-fb.c. Work around it by passing the address in a register and using a fixed [%1] address in the asm template, so the compiler can't pick an addressing mode that stores don't support. This is the minimal fix. The next patch drops the inline asm altogether. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127718 Cc: stable@vger.kernel.org Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions