Skip to content

Commit 7382fbd

Browse files
RISC-V: __io_writes should respect the length argument
2 parents 07f8ba7 + da894ff commit 7382fbd

File tree

1 file changed

+1
-1
lines changed
  • arch/riscv/include/asm

1 file changed

+1
-1
lines changed

arch/riscv/include/asm/io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
250250
const ctype *buf = buffer; \
251251
\
252252
do { \
253-
__raw_writeq(*buf++, addr); \
253+
__raw_write ## len(*buf++, addr); \
254254
} while (--count); \
255255
} \
256256
afence; \

0 commit comments

Comments
 (0)