All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Fan Gong <gongfan1@huawei.com>
Cc: Zhu Yikai <zhuyikai1@h-partners.com>, <netdev@vger.kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Ioana Ciornei <ioana.ciornei@nxp.com>,
	Mohsin Bashir <mohsin.bashr@gmail.com>,
	<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>,
	luosifu <luosifu@huawei.com>, Xin Guo <guoxin09@huawei.com>,
	Zhou Shuai <zhoushuai28@huawei.com>, Wu Like <wulike1@huawei.com>,
	Shi Jing <shijing34@huawei.com>,
	Zheng Jiezhen <zhengjiezhen@h-partners.com>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>
Subject: Re: [PATCH net-next v06 3/6] hinic3: Add ethtool coalesce ops
Date: Wed, 27 May 2026 09:28:50 -0700	[thread overview]
Message-ID: <20260527092850.0c30c375@kernel.org> (raw)
In-Reply-To: <4bead457b595de335c10878bc09af9b86cea65d0.1779867397.git.zhuyikai1@h-partners.com>

On Wed, 27 May 2026 15:55:58 +0800 Fan Gong wrote:
>   Implement following ethtool callback function:
> .get_coalesce
> .set_coalesce
> 
>   These callbacks allow users to utilize ethtool for detailed
> RX coalesce configuration and monitoring.
> 
> Co-developed-by: Zhu Yikai <zhuyikai1@h-partners.com>
> Signed-off-by: Zhu Yikai <zhuyikai1@h-partners.com>
> Signed-off-by: Fan Gong <gongfan1@huawei.com>

The NIPA CI coccicheck test is failing on the hinic3 ethtool series
(coalesce ops and/or rss ops patches).  Four new Coccinelle warnings
were introduced in drivers/net/ethernet/huawei/hinic3/hinic3_ethtool.c:

  hinic3_ethtool.c:1021:11-45: WARNING avoid newline at end of message in NL_SET_ERR_MSG_FMT_MOD
  hinic3_ethtool.c:1055:12-37: WARNING avoid newline at end of message in NL_SET_ERR_MSG_FMT_MOD
  hinic3_ethtool.c:1078:11-62: WARNING avoid newline at end of message in NL_SET_ERR_MSG_FMT_MOD
  hinic3_ethtool.c:1215:29-58: WARNING avoid newline at end of message in NL_SET_ERR_MSG_MOD

The NL_SET_ERR_MSG_MOD() and NL_SET_ERR_MSG_FMT_MOD() macros must not
be given a message string that ends with '\n'.  The netlink error-message
infrastructure handles message termination itself; a trailing newline
results in malformed extack messages visible to user space.

Please remove the trailing '\n' from all four call sites, e.g.:

  - NL_SET_ERR_MSG_FMT_MOD(extack, "some message\n");
  + NL_SET_ERR_MSG_FMT_MOD(extack, "some message");

The same rule applies to NL_SET_ERR_MSG_MOD() and the other
NL_SET_ERR_MSG* family of macros throughout the driver.

  reply	other threads:[~2026-05-27 16:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-27  7:55 [PATCH net-next v06 0/6] net: hinic3: PF initialization Fan Gong
2026-05-27  7:55 ` [PATCH net-next v06 1/6] hinic3: Add ethtool queue ops Fan Gong
2026-05-27  7:55 ` [PATCH net-next v06 2/6] hinic3: Add ethtool statistic ops Fan Gong
2026-05-27  7:55 ` [PATCH net-next v06 3/6] hinic3: Add ethtool coalesce ops Fan Gong
2026-05-27 16:28   ` Jakub Kicinski [this message]
2026-05-27  7:55 ` [PATCH net-next v06 4/6] hinic3: Add ethtool rss ops Fan Gong
2026-05-27  7:56 ` [PATCH net-next v06 5/6] hinic3: Configure netdev->watchdog_timeo to set nic tx timeout Fan Gong
2026-05-27  7:56 ` [PATCH net-next v06 6/6] hinic3: Remove unneeded coalesce parameters Fan Gong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260527092850.0c30c375@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gongfan1@huawei.com \
    --cc=guoxin09@huawei.com \
    --cc=horms@kernel.org \
    --cc=ioana.ciornei@nxp.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luosifu@huawei.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mohsin.bashr@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shijing34@huawei.com \
    --cc=wulike1@huawei.com \
    --cc=zhengjiezhen@h-partners.com \
    --cc=zhoushuai28@huawei.com \
    --cc=zhuyikai1@h-partners.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.