[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <df1c269a-085a-47cc-83ef-294ea84b98a2@huawei.com>
Date: Mon, 14 Jul 2025 09:04:56 +0800
From: Jijie Shao <shaojijie@...wei.com>
To: Simon Horman <horms@...nel.org>
CC: <shaojijie@...wei.com>, <davem@...emloft.net>, <edumazet@...gle.com>,
<kuba@...nel.org>, <pabeni@...hat.com>, <andrew+netdev@...n.ch>,
<shenjian15@...wei.com>, <liuyonglong@...wei.com>, <chenhao418@...wei.com>,
<jonathan.cameron@...wei.com>, <shameerali.kolothum.thodi@...wei.com>,
<salil.mehta@...wei.com>, <arnd@...nel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V2 net-next 00/11] net: hns3: use seq_file for debugfs
on 2025/7/12 20:19, Simon Horman wrote:
> On Fri, Jul 11, 2025 at 02:17:14PM +0800, Jijie Shao wrote:
>> Arnd reported that there are two build warning for on-stasck
>> buffer oversize. As Arnd's suggestion, using seq file way
>> to avoid the stack buffer or kmalloc buffer allocating.
>>
>> ---
>> ChangeLog:
>> v1 -> v2:
>> - Remove unused functions in advance to eliminate compilation warnings, suggested by Jakub Kicinski
>> - Remove unnecessary cast, suggested by Andrew Lunn
>> v1: https://lore.kernel.org/all/20250708130029.1310872-1-shaojijie@huawei.com/
>> ---
>>
>> Jian Shen (5):
>> net: hns3: clean up the build warning in debugfs by use seq file
>> net: hns3: use seq_file for files in queue/ in debugfs
>> net: hns3: use seq_file for files in tm/ in debugfs
>> net: hns3: use seq_file for files in tx_bd_info/ and rx_bd_info/ in
>> debugfs
> Thanks for the update, but unfortunately I don't think this is enough.
>
> W=1 builds with bouth Clang 20.1.7 and GCC 15.1.0 warn that
> hns3_dbg_fops is unused with the patch (10/11) above applied.
>
>> net: hns3: remove the unused code after using seq_file
> I suspect this patch (11/11) needs to be squashed into the previous one (10/11).
>
> ...
Yes, it looks like so...
However, in this case, the operation of patch10 is not singular.
It modified a debugfs file through a patch while also removing unused code frameworks.
In fact, this warning was cleared in patch 11...
...
I will merge patch 11 into patch 10 in v3.
Thanks,
Jijie Shao
Powered by blists - more mailing lists