From: Thorsten Blum Date: Sun, 31 May 2026 22:08:16 +0000 (+0200) Subject: arm64: patching: replace min_t with min in __text_poke X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6c2ccb4979b2c8aa83cbea827a714a74db7d2398;p=thirdparty%2Fkernel%2Flinux.git arm64: patching: replace min_t with min in __text_poke Use the simpler min() macro since both values are unsigned and compatible. Signed-off-by: Thorsten Blum Signed-off-by: Will Deacon --- diff --git a/arch/arm64/kernel/patching.c b/arch/arm64/kernel/patching.c index 1041bc67a3eee..09f019c6547a0 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);