diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-06-01 00:08:16 +0200 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-06-03 21:15:24 +0100 |
| commit | 6c2ccb4979b2c8aa83cbea827a714a74db7d2398 (patch) | |
| tree | 4a44794699d5bedf9d9c2b0609806e3e9c98a17b | |
| parent | 32e4c96d6a7121cb378ebf9ce2167bb1918eeaa5 (diff) | |
| download | linux-6c2ccb4979b2c8aa83cbea827a714a74db7d2398.tar.gz linux-6c2ccb4979b2c8aa83cbea827a714a74db7d2398.zip | |
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 <thorsten.blum@linux.dev>
Signed-off-by: Will Deacon <will@kernel.org>
| -rw-r--r-- | arch/arm64/kernel/patching.c | 3 |
1 files changed, 1 insertions, 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); |
