locking/atomic: atomic64 type cleanup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 22 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | locking/atomic: crypto: nx: prepare for atomic64_read() conversiondrivers/ | +6 | 0 replies | |
| 2/18 | locking/atomic: s390/pci: prepare for atomic64_read() conversionarch/ | +2 | 0 replies | |
| 3/18 | locking/atomic: generic: use s64 for atomic64include/ lib/ | +26 | 1 reply | |
| 4/18 | locking/atomic: alpha: use s64 for atomic64arch/ | +10 | 0 replies | |
| 5/18 | locking/atomic: arc: use s64 for atomic64arch/ | +20 | 1 reply | |
| 6/18 | locking/atomic: arm: use s64 for atomic64arch/ | +24 | 0 replies | |
| 7/18 | locking/atomic: arm64: use s64 for atomic64arch/ arch/ | +27 | 0 replies | |
| 8/18 | locking/atomic: ia64: use s64 for atomic64arch/ | +10 | 0 replies | |
| 9/18 | locking/atomic: mips: use s64 for atomic64arch/ | +11 | 0 replies | |
| 10/18 | locking/atomic: powerpc: use s64 for atomic64arch/ | +22 | 1 reply | |
| 11/18 | locking/atomic: riscv: fix atomic64_sub_if_positive() offset argumentarch/ | +1 | 1 reply | |
| 12/18 | locking/atomic: riscv: use s64 for atomic64arch/ | +23 | 2 replies | |
| 13/18 | locking/atomic: s390: use s64 for atomic64arch/ | +19 | 0 replies | |
| 14/18 | locking/atomic: sparc: use s64 for atomic64arch/ | +4 | 0 replies | |
| 15/18 | locking/atomic: x86: use s64 for atomic64arch/ arch/ | +51 | 0 replies | |
| 16/18 | locking/atomic: use s64 for atomic64_t on 64-bitinclude/ | +1 | 0 replies | |
| 17/18 | locking/atomic: crypto: nx: remove redundant castsdrivers/ | +3 | 0 replies | |
| 18/18 | locking/atomic: s390/pci: remove redundant castsarch/ | +1 | 0 replies |
Reviews trailers per patch
4 of 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Palmer Dabbelt | Arnd Bergmann | Michael Ellerman | Vineet Gupta | Greg Kroah-Hartman | Will Deacon |
|---|---|---|---|---|---|---|
| Series | R-b R-b | A-b A-b | ||||
| 1/18 | ||||||
| 2/18 | ||||||
| 3/18 | A-b | |||||
| 4/18 | ||||||
| 5/18 | A-b | |||||
| 6/18 | ||||||
| 7/18 | ||||||
| 8/18 | ||||||
| 9/18 | ||||||
| 10/18 | R-b | |||||
| 11/18 | R-b | |||||
| 12/18 | Reviwed-by | |||||
| 13/18 | ||||||
| 14/18 | ||||||
| 15/18 | ||||||
| 16/18 | ||||||
| 17/18 | ||||||
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH 00/18] locking/atomic: atomic64 type cleanup
Currently architectures return inconsistent types for atomic64 ops. Some return long (e..g. powerpc), some return long long (e.g. arc), and some return s64 (e.g. x86).
This is a bit messy, and causes unnecessary pain (e.g. as values must be cast before they can be printed [1]).
This series reworks all the atomic64 implementations to use s64 as the base type for atomic64_t (as discussed [2]), and to ensure that this type is consistently used for parameters and return values in the API, avoiding further problems in this area.
This series (based on v5.1-rc1) can also be found in my atomics/type-cleanup branch [3] on kernel.org.
Thanks,
Mark.
[1] https://lkml.kernel.org/r/[email protected]
[2] https://lkml.kernel.org/r/[email protected]
[3] git://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git atomics/type-cleanup
Mark Rutland (18):
locking/atomic: crypto: nx: prepare for atomic64_read() conversion locking/atomic: s390/pci: prepare for atomic64_read() conversion locking/atomic: generic: use s64 for atomic64 locking/atomic: alpha: use s64 for atomic64 locking/atomic: arc: use s64 for atomic64
locking/atomic: arm: use s64 for atomic64
locking/atomic: arm64: use s64 for atomic64 locking/atomic: ia64: use s64 for atomic64
locking/atomic: mips: use s64 for atomic64
locking/atomic: powerpc: use s64 for atomic64 locking/atomic: riscv: fix atomic64_sub_if_positive() offset argument locking/atomic: riscv: use s64 for atomic64 locking/atomic: s390: use s64 for atomic64
locking/atomic: sparc: use s64 for atomic64 locking/atomic: x86: use s64 for atomic64
locking/atomic: use s64 for atomic64_t on 64-bit locking/atomic: crypto: nx: remove redundant casts locking/atomic: s390/pci: remove redundant casts
arch/alpha/include/asm/atomic.h | 20 +++++------ arch/arc/include/asm/atomic.h | 41 +++++++++++----------- arch/arm/include/asm/atomic.h | 50 +++++++++++++------------- arch/arm64/include/asm/atomic_ll_sc.h | 20 +++++------ arch/arm64/include/asm/atomic_lse.h | 34 +++++++++--------- arch/ia64/include/asm/atomic.h | 20 +++++------ arch/mips/include/asm/atomic.h | 22 ++++++------ arch/powerpc/include/asm/atomic.h | 44 +++++++++++------------ arch/riscv/include/asm/atomic.h | 44 ++++++++++++----------- arch/s390/include/asm/atomic.h | 38 ++++++++++---------- arch/s390/pci/pci_debug.c | 2 +- arch/sparc/include/asm/atomic_64.h | 8 ++--- arch/x86/include/asm/atomic64_32.h | 66 +++++++++++++++++------------------ arch/x86/include/asm/atomic64_64.h | 38 ++++++++++---------- drivers/crypto/nx/nx-842-pseries.c | 6 ++-- include/asm-generic/atomic64.h | 20 +++++------ include/linux/types.h | 2 +- lib/atomic64.c | 32 ++++++++--------- 18 files changed, 252 insertions(+), 255 deletions(-)
Signature · 1 line
2.11.0