linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* arch/riscv doesn't support xchg() on bool
@ 2019-10-21 20:40 Eric Biggers
  2019-10-22  1:23 ` Paul Walmsley
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Biggers @ 2019-10-21 20:40 UTC (permalink / raw)
  To: linux-riscv

Hi,

The kbuild test robot reported a build error on RISC-V in this patch:

	https://patchwork.kernel.org/patch/11182389/

... because of the line:

	if (!xchg(&mode->logged_impl_name, true)) {

where logged_impl_name is a 'bool'.  The problem is that unlike most (or all?)
other kernel architectures, arch/riscv/ doesn't support xchg() on bytes.
See: arch/riscv/include/asm/cmpxchg.h

Is there any chance this could be implemented, to avoid this
architecture-specific quirk?  Note, there's at least one other
place in the kernel that also uses xchg() on a bool.

- Eric

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-22  1:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-21 20:40 arch/riscv doesn't support xchg() on bool Eric Biggers
2019-10-22  1:23 ` Paul Walmsley
2019-10-22  1:45   ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).