From nobody Mon Jun 8 07:21:48 2026 Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BB502E7377 for ; Sun, 31 May 2026 22:09:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780265359; cv=none; b=P2EGdHkLQ+WmY7INbhVerpERwCVipHKXXr+U7i79Ojv74QlAemK2rGvlYaOYm9NxzZhfpDFnRNAGIa5fuYZCIyj0fwuPlplzKLkPUJ5CsInQNK+ueTZTDplPw1UuyY59aWNuz2f8t2o0mk33As5/4affyc/6uKbM6o1LQWEA1pY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780265359; c=relaxed/simple; bh=XM4Mj8knoES15YzfCHRN5BQR3Hmdw/AP4VY7DvQniQE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EV77KH4ITo0sKGaNPeMuAlVE+pZXxCR66AtkEcswDBEibM4Q6XA2tbWwPffGc6/HsHbFL1Y3anzjlud6+EGtytTq6zirFdeBeEd/FuIdczJ5PNjUTOtApwC1hxLlF+gWk8V4EFIY+NSfr8uSt9wdBUPC2Tta5Tlf0roynwbPgZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=wfj553Vr; arc=none smtp.client-ip=95.215.58.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wfj553Vr" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1780265354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3d+b2xcvsjVrWaPpn6WtYYoLjMGe7dIwqDd2QcDn+XI=; b=wfj553VrOZTCoyYd+rEsZYHjR1OFjh6BOTtCOL0u14gNbkiM2Sbfv/HFD47a+S/9+QI0k5 Ub4aEl/2PfafVpVFcNZbxpv2tYLCvYL5aIFCx46NPqSxFGPf++P6n9fYqcVrkcKWMKXvCN +xL1IQce4rhs15YmFgiKxa1FC6cMAUM= From: Thorsten Blum To: Catalin Marinas , Will Deacon Cc: Thorsten Blum , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: patching: replace min_t with min in __text_poke Date: Mon, 1 Jun 2026 00:08:16 +0200 Message-ID: <20260531220817.738904-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=804; i=thorsten.blum@linux.dev; h=from:subject; bh=XM4Mj8knoES15YzfCHRN5BQR3Hmdw/AP4VY7DvQniQE=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFkyGwP9zm+X+53me1vG7cUByc6Z/GY9+Ttu3Sr13vilz eLzAv6ejlIWBjEuBlkxRZYHs37M8C2tqdxkErETZg4rE8gQBi5OAZiI1SSG/74cIhzP+5g7FAJX /zHk3pDccOtqjrJDc0iU5aemlJVySxkZ/r9rPnT+urQWu9g/3s0N+83ZTHiVu3d9llHa4St7/aY 7NwA= X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Use the simpler min() macro since both values are unsigned and compatible. Signed-off-by: Thorsten Blum --- 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) =20 while (patched < len) { ptr =3D addr + patched; - size =3D min_t(size_t, PAGE_SIZE - offset_in_page(ptr), - len - patched); + size =3D min(PAGE_SIZE - offset_in_page(ptr), len - patched); =20 waddr =3D patch_map(ptr, FIX_TEXT_POKE0); func(waddr, src, patched, size);