Article View: linux.kernel.netdev
Article #12615Re: [PATCH net-next v10 04/11] net: ethernet: oa_tc6: Move constant definitions to header file
From: netdev-bot+sashiko
Date: Sun, 08 Nov 2026 00:15
Date: Sun, 08 Nov 2026 00:15
82 lines
10981 bytes
10981 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Hygiene and commit-message problems in
drivers/net/ethernet/oa_tc6/oa_tc6_std_def.h, which the commit…
--
net: ethernet: oa_tc6: Move constant definitions to header file
This commit moves the TC6 protocol constants, struct oa_tc6 and the related
enums out of oa_tc6_main.c and into a new private header, oa_tc6_std_def.h,
so other source files in the oa_tc6 directory can share them.
oa_tc6_main.c now includes the new header in place of linux/oa_tc6.h.
> To help other source files within the module share the
> constant definitions, some of the definitions from oa_tc6.c
> are moved to a header file.
[Severity: Low]
This isn't a bug, but the previous patch in the series ("net: ethernet:
oa_tc6: Move oa_tc6.c to its own directory") already renamed this file to
drivers/net/ethernet/oa_tc6/oa_tc6_main.c.
Should the commit message say oa_tc6_main.c instead of oa_tc6.c?
[ ... ]
> diff --git a/drivers/net/ethernet/oa_tc6/oa_tc6_std_def.h b/drivers/net/ethernet/oa_tc6/oa_tc6_std_def.h
> new file mode 100644
> index 0000000000000..c61672aa618c4
> --- /dev/null
> +++ b/drivers/net/ethernet/oa_tc6/oa_tc6_std_def.h
> @@ -0,0 +1,126 @@
[ ... ]
> +#ifndef OA_TC6_STD_DEF_H
> +#define OA_TC6_STD_DEF_H
> +
> +#include <linux/bits.h>
> +#include <linux/ptp_clock_kernel.h>
> +#include <linux/net_tstamp.h>
> +#include <linux/netdevice.h>
> +#include <linux/spi/spi.h>
> +#include <linux/skbuff.h>
> +#include <linux/sched.h>
> +#include <linux/wait.h>
> +#include <linux/oa_tc6.h>
[Severity: Low]
This isn't a bug, but does this header need ptp_clock_kernel.h,
net_tstamp.h, sched.h and wait.h yet? Nothing in oa_tc6_std_def.h uses them
at this commit. Also, struct oa_tc6 has no hwtstamp_config, ptp_clock or
list_head members in this patch.
They only seem to be needed once the later "net: ethernet: oa_tc6: Support
for hardware timestamp" patch adds those members.
Could these includes move to that patch so this one stays a pure move? If
not, could the commit message mention them?
[ ... ]
> +enum oa_tc6_data_end_valid_info {
> + OA_TC6_DATA_END_INVALID,
> + OA_TC6_DATA_END_VALID,
> +};
> +#endif /* OA_TC6_STD_DEF_H */
> +
[Severity: Low]
This isn't a bug, but there is an extra blank line after the #endif at the
end of the file. git apply warns "new blank line at EOF" and checkpatch flags
it. The blank line is still there at the end of the series.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261106-s2500-mac-phy-support-v10-0-31b5a69b85b7%40onsemi.com
Technical Details
Message-ID:
<179409693545.994134.14195728930593325085@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358559-linux-kernel-netdev=dewy.ruReferences:
<20261106-s2500-mac-phy-support-v10-4-31b5a69b85b7@onsemi.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358559-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v10 04/11] net: ethernet: oa_tc6: Move constant definitions to header file Date: Sun, 08 Nov 2026 00:15:35 +0000 Organization: Usenet Network Message-ID: <179409693545.994134.14195728930593325085@kernel.org> References: <20261106-s2500-mac-phy-support-v10-4-31b5a69b85b7@onsemi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="26826"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:mRlnjo7/M71SfeBd5iBaurs8HX0= sha256:IqrIczvUVKbO0O34LP6F7KbZwnUz7QOV6Fvz8HjiibU= sha1:oA3qVp2hMqWyz3kXb3oe8q+aS64= sha256:Hi/rBtQ0Ky9nvGM0EXYaq8rSG3mZoQL+Kt3car8J1uY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id BB343113359; Sun, 8 Nov 2026 03:16:04 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jAXWzFK5-_Ep; Sun, 8 Nov 2026 03:16:01 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358559-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id C83731133B8; Sun, 8 Nov 2026 03:15:52 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id C9BB83F5B4; Sun, 8 Nov 2026 00:15:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794096938; b=aBclv/k7tck7A/dGpWTACtYPQHqaQoCYlq3YKUsLIZTo6QxyraSfLtTuvA9EaDAeb+nX 62cRqZySAWeeMf20aXwXUQYPrguom+yMRe5N1peFx2OEWX06hopCqVzqTavQG9O+EDEIv az+wdL/nQpv99ai/SvRidlheJdv0nGq+Hc1TP9YUWLubSolSkkYcX8lhWKhnja2/NFosE H+avM8AcZoFABsZ9b12c/DNG2qCUKI1yvIgGiyZ2a3KNvhzTCzEza3l5qhM3AhBktpV5L 19vq9j77EfsULJwMj4vEl0pGNpl1eedjDAjWt9DAQvmrDfeXM7gcAq26I/bsFqvlZLA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794096938; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=yqedvBZFUhxFyUcRlmdBRM43DLeyO2kyhxdn8hoc8+M=; b=xq+1DJw3Lm4VvzE7fJlfsTzZkSU5qwG0sQtSL6klH1/YluN+ZHOj6InLT+EbC1WfN7AN kNaO4MUExpMGUm/hlm57E837j/bz2hYk41W0QqmuJcbUy1rh7VLqt//2KAjR8grr3dAmH UIO6YCopJtC+id6FGkzc2N9RpOD6zd3KpBwh7qfum/93J70r2wMzQjNTDFN6LHWGjjA8a 9Btm/Nb599m5KiqFeEQ/6KrDrdvS8XWFzucjmYRMI0Vu/m/fGmAP3IqXgRkc7MRNpt7Qg Ek7S9VG1tR7qHMMp1hJ9ZiPx7u8NDTnjDZqb8K4S5Gb17EAufVxcVEcj6gtkutQsvHQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=l1O+3jCO; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1D21606A333; Sun, 8 Nov 2026 00:15:38 +0000 (UTC) X-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=l1O+3jCO X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794096937; b=5FrBek1PJ9s7NE+IXEdraNpElCHumHJDu8fDOruZr0Optw4WZYNRdJ6u+RNTjmkGd5j2 kjmHBRx8HEmvzr1H/NCSPuHg7YP7VQupxHr1ldMQjbshed3KHRZ0oFl0AIlMq+4oRNsar 5GHAM0Ccbid1jKotKA81SV6Boohw6/f97x7kb2MPIDxh3XNStyQLwHVtS3BK8utsqvoWI yCtDHP12r0deEbGD4LScTsGnWisjV+Sk2Gfh0Z48aPt4oAmi7B4VHsrCjmyHXqRSbZkWq zJAM3/xqzmYvanmyo9+pjS69Cr/UkVtA9wTLWe7P3A0eCYzSFxmKXBT62+hynt7dVUw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794096937; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=yqedvBZFUhxFyUcRlmdBRM43DLeyO2kyhxdn8hoc8+M=; b=0Mu8X928PdMAPfIRe3Od9jbxzkiSzyoNs4JlubX7aWYkL6fetCHk/rR0dAy9s87AAjeS Nlp5Gv/pIBVgEPGBfcV36hFy6efEwhHsA7koA8qe6Fg/xwyT/Iks7ttkw3EAZfeBjeXxy 8oXvC2rRgqwg1W/yzoLfjAGtb+sOLQCntj6EZeFX9EZLj07Ic0//2cCd8mZOk6619h8Am KonrhfcjWWV+ikbMdYeFQzANTzi8kPGFidATM8A4BoLq8sVeVV4of8qPLGbn82vYGk4j3 qige/mLs7P6i/clpXZiegKItIq5wMTW50ZqJNaEWtoGkOqxOMLkRUM3/UVp5ekdQE/w== X-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=l1O+3jCO; arc=none smtp.remote-ip=100.103.45.18 X-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 7FEC6606A337; Sun, 8 Nov 2026 00:15:37 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D562A1F008A1; Sun, 8 Nov 2026 00:15:35 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794096937; bh=yqedvBZFUhxFyUcRlmdBRM43DLeyO2kyhxdn8hoc8+M=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=l1O+3jCOxYSvLDSQTlDAZkvQdtFgi8onqQrJSGMudC1D5ZtzQb2+HYmKUzlm/Ldmk Kb9g4yADEJjNpF7PgbG0nzo3jVxKaZS4JzOF7CQ/LbB3GQYOIGfCFgZqP66hAOk/I4 HESaLzp/W21YZ3R/9+hhwNBQ4GGEnuk+QE5r/lE3ee7/P8iaEWtbs+I87qRk2eeOjY mU8FmpKMFe9ioHLsRTiyG+YkqM7pDp5clt0pBT70evk9ApXMsGQSGRDzrRAxw/QhxI JLjltGAJ7IMT78wUtU25DWAZgub/4ccNuQJ1vUYopxcbnanNt/WO0U4qQmIAoQEwqR Ibk4TzzLZCWFQ== X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, parthiban.veerasooran@microchip.com, horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, richardcochran@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, edumazet@kernel.org, piergiorgio.beruto@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, jerry.ray@microchip.com, ciprian.regus@analog.com X-In-Reply-To: <20261106-s2500-mac-phy-support-v10-4-31b5a69b85b7@onsemi.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list