mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/7] Remove the unused non-atomic local_t and local_64t functions
@ 2026-10-26 11:18 Jerome Marchand
  2026-10-26 11:18 ` [PATCH 1/7] alpha: Remove the unused non-atomic local_t functions Jerome Marchand
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jerome Marchand @ 2026-10-26 11:18 UTC (permalink / raw)
  To: Richard Henderson, Matt Turner, Magnus Lindholm, Huacai Chen,
	WANG Xuerui, Thomas Bogendoerfer, Madhavan Srinivasan,
	Michael Ellerman, Nicholas Piggin, Christophe Leroy,
	Ritesh Harjani, Shrikanth Hegde, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen
  Cc: linux-alpha, linux-kernel, loongarch, linux-mips, linuxppc-dev,
	linux-arch, Jerome Marchand

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(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-10-26 11:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 11:18 [PATCH 0/7] Remove the unused non-atomic local_t and local_64t functions Jerome Marchand
2026-10-26 11:18 ` [PATCH 1/7] alpha: Remove the unused non-atomic local_t functions Jerome Marchand
2026-10-26 11:18 ` [PATCH 2/7] loongarch: " Jerome Marchand
2026-10-26 11:18 ` [PATCH 3/7] mips: " Jerome Marchand
2026-10-26 11:18 ` [PATCH 4/7] powerpc: " Jerome Marchand
2026-10-26 11:18 ` [PATCH 5/7] x86: " Jerome Marchand
2026-10-26 11:18 ` [PATCH 6/7] asm-generic: " Jerome Marchand
2026-10-26 11:18 ` [PATCH 7/7] asm-generic: Remove the unused non-atomic local64_t functions Jerome Marchand

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

all inboxes | Powered by JetHome®