public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] riscv/barrier: tidying up barrier-related macro
@ 2024-02-13 20:09 Eric Chan
  2024-02-13 20:11 ` [PATCH v4 1/4] riscv/barrier: Define __{mb,rmb,wmb} Eric Chan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Eric Chan @ 2024-02-13 20:09 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou; +Cc: linux-riscv, linux-kernel, ericchancf

This series makes barrier-related macro more neat and clear.
This is a follow-up to [0](v1 and v2) and [0](v3), change to multiple patches,
for readability, create new message thread.

v3 -> v4: fix [PATCH 1/4] commit message weird line breaks and let [PATCH 3/4]
fix the form that can pass the checking of checkpatch.pl.

v2 -> v3: split the patch into multiple patches for one problem per patch.
Also review the changelog to make the description more precise.

v1 -> v2: makes compilation pass with allyesconfig instead of
defconfig only, also satisfy scripts/checkpatch.pl.
- (__asm__ __volatile__ (RISCV_FENCE_ASM(p, s) : : : "memory"))
+ ({ __asm__ __volatile__ (RISCV_FENCE_ASM(p, s) : : : "memory"); })

[0] https://lore.kernel.org/lkml/20240209125048.4078639-1-ericchancf@google.com/
[1] https://lore.kernel.org/lkml/20240213142856.2416073-1-ericchancf@google.com/

Eric Chan (4):
  riscv/barrier: Define __{mb,rmb,wmb}
  riscv/barrier: Define RISCV_FULL_BARRIER
  riscv/barrier: Consolidate fence definitions
  riscv/barrier: Resolve checkpatch.pl error

 arch/riscv/include/asm/atomic.h  | 24 ++++++++++--------------
 arch/riscv/include/asm/barrier.h | 21 ++++++++++-----------
 arch/riscv/include/asm/cmpxchg.h |  5 ++---
 arch/riscv/include/asm/fence.h   | 10 ++++++++--
 arch/riscv/include/asm/io.h      |  8 ++++----
 arch/riscv/include/asm/mmio.h    |  5 +++--
 arch/riscv/include/asm/mmiowb.h  |  2 +-
 7 files changed, 38 insertions(+), 37 deletions(-)

--
2.43.0.687.g38aa6559b0-goog

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

end of thread, other threads:[~2024-02-13 22:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 20:09 [PATCH v4 0/4] riscv/barrier: tidying up barrier-related macro Eric Chan
2024-02-13 20:11 ` [PATCH v4 1/4] riscv/barrier: Define __{mb,rmb,wmb} Eric Chan
2024-02-13 20:11 ` [PATCH v4 2/4] riscv/barrier: Define RISCV_FULL_BARRIER Eric Chan
2024-02-13 20:12 ` [PATCH v4 3/4] riscv/barrier: Consolidate fence definitions Eric Chan
2024-02-13 21:31   ` Samuel Holland
2024-02-13 22:43     ` Eric Chan
2024-02-13 20:12 ` [PATCH v4 4/4] riscv/barrier: Resolve checkpatch.pl error Eric Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox