Skip to content

Remove the unused non-atomic local_t and local_64t functions

Jerome Marchand linux-alpha linux-arch linux-mips linuxppc-dev lkml loongarch 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7alpha: Remove the unused non-atomic local_t functionsarch/alpha/include/asm/local.h+0 -60 replies
2/7loongarch: Remove the unused non-atomic local_t functionsarch/loongarch/include/asm/local.h+0 -100 replies
3/7mips: Remove the unused non-atomic local_t functionsarch/mips/include/asm/local.h+0 -100 replies
4/7powerpc: Remove the unused non-atomic local_t functionsarch/powerpc/include/asm/local.h+0 -100 replies
5/7x86: Remove the unused non-atomic local_t functionsarch/x86/include/asm/local.h+0 -90 replies
6/7asm-generic: Remove the unused non-atomic local_t functionsinclude/asm-generic/local.h+0 -70 replies
7/7asm-generic: Remove the unused non-atomic local64_t functionsinclude/asm-generic/local64.h+0 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Remove the unused non-atomic local_t and local_64t functions

While working on a fix for a tracing soft lockup , it came to my attention that __local_dec() was broken on ppc64 and other arches (it actually increment the value). My first instinct was to fix it but the fact that this function was utterly broken for so long, decades for some arches makes me thing that those functions have not been used for a long time, if ever.

At any rate, they're not used now, so it's probably better to remove them.

The local64_t don't have broken arch specific versions, but aren't used either, so remove them too.

Jerome Marchand (7):
alpha: Remove the unused non-atomic local_t functions
loongarch: Remove the unused non-atomic local_t functions
mips: Remove the unused non-atomic local_t functions
powerpc: Remove the unused non-atomic local_t functions
x86: Remove the unused non-atomic local_t functions
asm-generic: Remove the unused non-atomic local_t functions
asm-generic: Remove the unused non-atomic local64_t functions

 arch/alpha/include/asm/local.h     |  6 ------
 arch/loongarch/include/asm/local.h | 10 ----------
 arch/mips/include/asm/local.h      | 10 ----------
 arch/powerpc/include/asm/local.h   | 10 ----------
 arch/x86/include/asm/local.h       |  9 ---------
 include/asm-generic/local.h        |  7 -------
 include/asm-generic/local64.h      | 14 --------------
 7 files changed, 66 deletions(-)
Signature · 1 line
2.56.0