* [PATCH] arm64: patching: replace min_t with min in __text_poke
@ 2026-05-31 22:08 Thorsten Blum
2026-06-03 21:06 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-05-31 22:08 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon
Cc: Thorsten Blum, linux-arm-kernel, linux-kernel
Use the simpler min() macro since both values are unsigned and
compatible.
Signed-off-by: Thorsten Blum <thorsten.blum@linux•dev>
---
arch/arm64/kernel/patching.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm64/kernel/patching.c b/arch/arm64/kernel/patching.c
index 1041bc67a3ee..09f019c6547a 100644
--- a/arch/arm64/kernel/patching.c
+++ b/arch/arm64/kernel/patching.c
@@ -116,8 +116,7 @@ static void *__text_poke(text_poke_f func, void *addr, void *src, size_t len)
while (patched < len) {
ptr = addr + patched;
- size = min_t(size_t, PAGE_SIZE - offset_in_page(ptr),
- len - patched);
+ size = min(PAGE_SIZE - offset_in_page(ptr), len - patched);
waddr = patch_map(ptr, FIX_TEXT_POKE0);
func(waddr, src, patched, size);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: patching: replace min_t with min in __text_poke
2026-05-31 22:08 [PATCH] arm64: patching: replace min_t with min in __text_poke Thorsten Blum
@ 2026-06-03 21:06 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2026-06-03 21:06 UTC (permalink / raw)
To: Catalin Marinas, Thorsten Blum
Cc: kernel-team, Will Deacon, linux-arm-kernel, linux-kernel
On Mon, 01 Jun 2026 00:08:16 +0200, Thorsten Blum wrote:
> Use the simpler min() macro since both values are unsigned and
> compatible.
>
>
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: patching: replace min_t with min in __text_poke
https://git.kernel.org/arm64/c/6c2ccb4979b2
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-03 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-31 22:08 [PATCH] arm64: patching: replace min_t with min in __text_poke Thorsten Blum
2026-06-03 21:06 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox