mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] powerpc/boot: Drop unused min_t()/max_t() helpers
@ 2026-08-28 13:06 Thorsten Blum
  2026-08-28 13:08 ` Jared Baldridge
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-08-28 13:06 UTC (permalink / raw)
  To: Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy (CS GROUP)
  Cc: Thorsten Blum, linuxppc-dev, linux-kernel

Commit c762c69e106f ("powerpc/boot: Add support for XZ compression")
added min_t() and max_t() to support XZ in the boot wrapper. However,
since commit 9f121705503a ("lib/xz: replace min_t with min") XZ no
longer depends on these helpers. Remove them from the boot wrapper.

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
Changes in v2:
- Mention the commit that removed XZ's dependency on min_t(), fixing the
  build failure seen with v1
- v1: https://lore.kernel.org/r/20260525091839.817778-3-thorsten.blum@linux.dev/
---
 arch/powerpc/boot/types.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/powerpc/boot/types.h b/arch/powerpc/boot/types.h
index 8a4c418b7260..c5085c2632bf 100644
--- a/arch/powerpc/boot/types.h
+++ b/arch/powerpc/boot/types.h
@@ -37,9 +37,6 @@ typedef s64 int64_t;
 	(void) (&_x == &_y);	\
 	_x > _y ? _x : _y; })
 
-#define min_t(type, a, b) min(((type) a), ((type) b))
-#define max_t(type, a, b) max(((type) a), ((type) b))
-
 typedef int bool;
 
 #ifndef true

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

end of thread, other threads:[~2026-08-28 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:06 [PATCH v2] powerpc/boot: Drop unused min_t()/max_t() helpers Thorsten Blum
2026-08-28 13:08 ` Jared Baldridge

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®