arm64: patching: replace min_t with min in __text_poke
PATCH 1/1 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 <[email protected]>
--- arch/arm64/kernel/patching.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/kernel/patching.c +1 -2
@@ -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);
Quoted 4 lines · Thorsten Blum
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,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev