From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 66-220-144-179.mail-mxout.facebook.com (66-220-144-179.mail-mxout.facebook.com [66.220.144.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 276D7169AD2 for ; Fri, 17 Apr 2026 03:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.220.144.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776397636; cv=none; b=LecG0FEHfkXUQtLS3EFh3uX3pp954vDxPLfZe1yy/XTslrkuE8ECDT83jKhqTw6kOWP4daLULFjeGV4C+iv5Pyg9Bkh1oXVqIpmyDRJHocXryJp2OysoduKSNcEtiCHmyZWO4Fry21rE0/M9/Ov1QBGpB/OV3kWFVKCM10D4uI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776397636; c=relaxed/simple; bh=3hA0FnXHT0ET5FTfWaEvYzTnxoR30cE9sP9zQgwam6M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CmekD1h5wHYFY2lswRqOw6FhTbWxJ75Tzo+V09+2ql7ABMeNY1N33P/FHbMugJSI/VK69BbFO2lz7VzmLc/qHePgBEDM9sjarA5wzy1QYWVKHoCKU9Y5L8KtKNSoMO4L6ZObuR1604hW9D451s69oAKupd1si8oVVBeXBiU8jYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.dev; spf=fail smtp.mailfrom=linux.dev; arc=none smtp.client-ip=66.220.144.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.dev Received: by devvm16039.vll0.facebook.com (Postfix, from userid 128203) id BD44F403C22FF; Thu, 16 Apr 2026 20:47:03 -0700 (PDT) From: Yonghong Song To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , "Jose E . Marchesi" , kernel-team@fb.com, Martin KaFai Lau Subject: [PATCH bpf-next v5 01/16] bpf: Remove unused parameter from check_map_kptr_access() Date: Thu, 16 Apr 2026 20:47:03 -0700 Message-ID: <20260417034703.2625849-1-yonghong.song@linux.dev> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260417034658.2625353-1-yonghong.song@linux.dev> References: <20260417034658.2625353-1-yonghong.song@linux.dev> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The parameter 'regno' in check_map_kptr_access() is unused. Remove it. Signed-off-by: Yonghong Song --- kernel/bpf/verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 9e4980128151..44d0af8f73d1 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -4711,7 +4711,7 @@ static int mark_uptr_ld_reg(struct bpf_verifier_env= *env, u32 regno, return 0; } =20 -static int check_map_kptr_access(struct bpf_verifier_env *env, u32 regno= , +static int check_map_kptr_access(struct bpf_verifier_env *env, int value_regno, int insn_idx, struct btf_field *kptr_field) { @@ -6358,7 +6358,7 @@ static int check_mem_access(struct bpf_verifier_env= *env, int insn_idx, u32 regn kptr_field =3D btf_record_find(reg->map_ptr->record, off + reg->var_off.value, BPF_KPTR | BPF_UPTR); if (kptr_field) { - err =3D check_map_kptr_access(env, regno, value_regno, insn_idx, kptr= _field); + err =3D check_map_kptr_access(env, value_regno, insn_idx, kptr_field)= ; } else if (t =3D=3D BPF_READ && value_regno >=3D 0) { struct bpf_map *map =3D reg->map_ptr; =20 --=20 2.52.0