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=1796454679; b=IKT9ddXFV2OZ3AkRudlQlG4gqe4wuCoMobRL17OLZP/vf0dEd+LbeZtC0+4pmp3hGwas 5LTzJliTWQJNzCp349eYErITsuO9BNtES1aQcs0MmDcLVG4wh0zhgxI57VaglWiDpO1+r iuS6zW/QlK9qlOJYq76JQ8Xvh1Id6ajmOdJRArTjsvAa74V+gqSLpE6e7Yvn5ckuqY7Z2 e5vV9pgqj98XVtxOwOu0/eaoF3wbhpEooVlGmV3pj9EBTHlonL3fO2D+AVXvrWlwLidCL KB1ylgXQRJJe0fxCjhM57v1NEw9+uIhAIV4hwXbPCmbS2RiXLTeIKybT4Cg63Y9CHIg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796454679; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=zNWb9Vw74dI4NEYvkdK/Z6hYP9LVLt14exZWIuYrna8=; b=3oh/OEQa7w3csgYvDP6q0D+3Uw01yOsn/CTl4H9DrguDETUAPUYtMFSyEmc+p0TeMMpF ld87FhABp1SODMQ5yN+KOqruETEEVN5c0JMFAcWAWEKanRVlrvXYiL6h2HXJczQxDpMSi 26CVujOKbsH/kzWp6RXf5rX/tlyo6E7b7K5X4aqOdCxfaAQXxnDpYqw6+PVEuQXW+af/0 fiu2DdEMsQil1S/WOrTr3CpE1grgVCsZ3llWFEeD9PQDzz94nEOJYNHsyweJaVTJYzYew iEeo0txiCKMe4quoWL0cHNQKpTlOR25xxFoSyYZwnWR44ZNZUZnmIZULNBaz/WINyMw== 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=hhDxKCM7; 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 21D7D606A322 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=hhDxKCM7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFDB61F00A07; 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=zNWb9Vw74dI4NEYvkdK/Z6hYP9LVLt14exZWIuYrna8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=hhDxKCM7n2f7yr+KnNmL+uHFQFk9mXtAImvxtQSuAqKwjtuzddW9y8yl7sQf5bhbE d0jskDV+hv7fJomwr4bryFzuySohHPxDbvHLEIik86e0DIqFqyiz7HD8oFwRx/ZBnl AFn6Q34i3umk+wEPA2S/0eM82iUIHZNhDaXchQQswRXBBmIHzM0y+A0mcbrTJzcXzl 5DHSrfQsIB7XCorow1EWLxlXo5eG2TXAXLhePPaQejyieffC2la4EnC1Yj4ZtAXlBa Jma5bf0bdq02+32eIkCc2c3I5XyUq3DK+znkKSCAbd7Zkx90NmTHn/e97QYYIcSDC9 7mtBrfKZk/29A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 08/14] net: enetc: add generic ntmp_add_entry_by_id() helper 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-9-wei.fang@oss.nxp.com> References: <20261204071410.692071-1-wei.fang@oss.nxp.com> <20261204071410.692071-9-wei.fang@oss.nxp.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 07:11:18 +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_add_entry_by_id() drops const on entry parameter -- commit e300fa241d1465c5e37208357188a334c8cb8639 Author: Wei Fang net: enetc: add generic ntmp_add_entry_by_id() helper This commit adds ntmp_add_entry_by_id() and ntmp_table_ops() to factor out common logic for adding NTMP table entries with software-allocated entry IDs, and converts the MAFT and ETT add paths to use it. > diff --git a/drivers/net/ethernet/freescale/enetc/ntmp.c b/drivers/net/et= hernet/freescale/enetc/ntmp.c > index 07a9117273220..fec6c3fcfd2e4 100644 > --- a/drivers/net/ethernet/freescale/enetc/ntmp.c > +++ b/drivers/net/ethernet/freescale/enetc/ntmp.c > @@ -640,6 +640,76 @@ static const struct ntmp_tbl_ops *ntmp_get_bpt_ops(u= 8 version) [ ... ] > +static int ntmp_add_entry_by_id(struct ntmp_user *user, int tbl_id, > + u32 entry_id, void *entry, u16 ua) > +{ > + u8 version =3D user->tbl_ver[tbl_id]; > + const struct ntmp_tbl_ops *ops; > + struct netc_swcbd swcbd; > + struct netc_cbdr *cbdr; > + union netc_cbd cbd; > + void *buf; > + int err; > + > + ops =3D ntmp_table_ops(tbl_id, version); > + if (!ops) > + return -EOPNOTSUPP; > + > + swcbd.size =3D ops->req_ua_len; > + err =3D ntmp_alloc_data_mem(user->dev, &swcbd, &buf); > + if (err) > + return err; > + > + ntmp_fill_crd_eid(buf, version, 0, ua, entry_id); > + ops->pack(entry, buf, NTMP_AM_ENTRY_ID); [Severity: Low] Can the entry parameter in ntmp_add_entry_by_id() be const void *? ntmp_add_entry_by_id() only passes entry to ops->pack(), which already takes const void *. Taking non-const void * forces ntmp_ett_add_entry() to cast away const (triggering -Wcast-qual) and requires an unnecessary (void *) cast in ntmp_maft_add_entry(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204071410.6920= 71-1-wei.fang@oss.nxp.com?part=3D8