Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796454678; b=HZ66qT3HmiaN3hg/ANaXJJ8RHLd/F7V8DOfqzKmTEddTidjG1Qt8Y1WM4bLxp7oVOXSw mUQCjQ5pPImR9N3SSgfALjuzSaYeggZXQmiw+jXxgIMTLHRHtfulk171I/3y/5wlIM68m ReyytYVy7ug1cgIahqMh/fmw5On91JWXDqkoFcyZI4AqrlEi4u9mP1CKtjp3KwUBUVCHZ X0TEsbBdojE6o5NxmCRHUWzJ5OCzrSjDLCbt/gprtrlbsKGKBe8ScGp7RpADLmAhG9xGH B9kwNaRIQWYT4ymfb7OCYOaI0TgMdFS9c8Djo7xb/jB4GOZY0P9ZPOl1D1F6uK7zGpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796454678; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=IA3fLY/xeSwjH+uq3p5M6Ts6YqS5VPquCj4SgQlnj0A=; b=2wpoEwU8QwFy5PtLxFIrIr63y5M5VtTXgdJ48CBxeJN6n5ljpLoIq+b7d5GIP8hZ/Hew KgwEPrmACtSLTHomwDpqzcCLhKqzYyh/bFty7vvVmCcakKGyFOjUVzf4nx1g/hUpRM09s DQ7a8g2dGCWXZin3HLcBKCMCbOg3xSd9mmLahP8NOIDomUcTAZRQB1T81Zyfzbllmd+3C PSEE9XLN3aaiE18gULvEkQLC48VWyeP+HXxndN2yUCFacVDH9hs/1ytPUon0I1uQ/fJ6/ 4r9l51KvBda84PhTZD+Et7TnqGsWKoqyjZ7wX/q6h8Jsh47w7rfDS6CIGUJEPYW4r9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="QuvBt/Zw"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7A5E606A322 for ; Sat, 5 Dec 2026 07:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QuvBt/Zw Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16C361F00936; Sat, 5 Dec 2026 07:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796454678; bh=IA3fLY/xeSwjH+uq3p5M6Ts6YqS5VPquCj4SgQlnj0A=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=QuvBt/ZwQdyW9Uwx5eX8EoaotRhOQq6GKCJDyiv2fFVWtnkrM2kO/3Wkmei5z4rV0 vG+FzADd3A0bWHHm7L84bNu5/Jcc6ExOTAmNOqUqYPnHCqMvQIsAgie6bpktUvnoXX uIEyVpeM1vph92I/a0wrhP0zcraGMYLqAK+0pxoNEy2VhvsFV1tbBhxKIzYrzNi+o7 k6h94AJMaaKsJ60F52ZABf1qPmEa+p7usL8Jrrr+9ax0bMezLvNzm5Mllgv7q+3F/x drwbQ2ErYTB1cmpLbuO8mUBj4970yF4LmKRamNVjjvF+RfyoCT5TD68JrFskdgGKBq 8cGU3S6mT0lVQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 07/14] net: enetc: decouple BPT logical config from hardware wire format Reply-To: sashiko-reviews@lists.linux.dev To: wei.fang@oss.nxp.com Cc: imx@lists.linux.dev, Frank.Li@kernel.org In-Reply-To: <20261204071410.692071-8-wei.fang@oss.nxp.com> References: <20261204071410.692071-1-wei.fang@oss.nxp.com> <20261204071410.692071-8-wei.fang@oss.nxp.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 07:11:17 +0000 X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: enetc: ntmp_bpt_update_entry() drops const on read-only entry parameter -- commit fbe7cf81ae49d6c8c8ad83bd20d5b13948b8a75d Author: Wei Fang net: enetc: decouple BPT logical config from hardware wire format This commit introduces a version-agnostic struct bpt_entry_data with native CPU types, moves the BPT hardware wire structures into ntmp_private.h with a v0 pack callback, and updates ntmp_bpt_update_entry() and the netc DSA driver to use the new logical structure. > diff --git a/include/linux/fsl/ntmp.h b/include/linux/fsl/ntmp.h > index 23a612ec0b969..c54bf95739960 100644 > --- a/include/linux/fsl/ntmp.h > +++ b/include/linux/fsl/ntmp.h [ ... ] > @@ -319,8 +320,8 @@ int ntmp_ett_update_entry(struct ntmp_user *user, > const struct ett_entry_data *entry); > int ntmp_ett_delete_entry(struct ntmp_user *user, u32 entry_id); > int ntmp_ect_update_entry(struct ntmp_user *user, u32 entry_id); > -int ntmp_bpt_update_entry(struct ntmp_user *user, u32 entry_id, > - const struct bpt_cfge_data *cfge); > +int ntmp_bpt_update_entry(struct ntmp_user *user, > + struct bpt_entry_data *entry); [Severity: Low] Should entry remain const in ntmp_bpt_update_entry() (both here and in drivers/net/ethernet/freescale/enetc/ntmp.c)? ntmp_bpt_update_entry() only reads entry->entry_id and passes entry to ops->pack(), which takes a const void *. Dropping const prevents callers with a const struct bpt_entry_data pointer from calling it without a cast and diverges from sibling helpers like ntmp_ett_update_entry(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204071410.6920= 71-1-wei.fang@oss.nxp.com?part=3D7