[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250702170005.GH41770@horms.kernel.org>
Date: Wed, 2 Jul 2025 18:00:05 +0100
From: Simon Horman <horms@...nel.org>
To: Jason Xing <kerneljasonxing@...il.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, michael.chan@...adcom.com, andrew+netdev@...n.ch,
pavan.chebbi@...adcom.com, netdev@...r.kernel.org,
Jason Xing <kernelxing@...cent.com>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH net v2] bnxt_en: eliminate the compile warning in
bnxt_request_irq due to CONFIG_RFS_ACCEL
On Wed, Jul 02, 2025 at 02:48:22PM +0800, Jason Xing wrote:
> From: Jason Xing <kernelxing@...cent.com>
>
> I received a kernel-test-bot report[1] that shows the
> [-Wunused-but-set-variable] warning. Since the previous commit I made, as
> the 'Fixes' tag shows, gives users an option to turn on and off the
> CONFIG_RFS_ACCEL, the issue then can be discovered and reproduced with
> GCC specifically.
>
> Like Simon and Jakub suggested, use fewer #ifdefs which leads to fewer
> bugs.
>
> [1]
> All warnings (new ones prefixed by >>):
>
> drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function 'bnxt_request_irq':
> >> drivers/net/ethernet/broadcom/bnxt/bnxt.c:10703:9: warning: variable 'j' set but not used [-Wunused-but-set-variable]
> 10703 | int i, j, rc = 0;
> | ^
>
> Fixes: 9b6a30febddf ("net: allow rps/rfs related configs to be switched")
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202506282102.x1tXt0qz-lkp@intel.com/
> Signed-off-by: Jason Xing <kernelxing@...cent.com>
> ---
> v2
> Link: https://lore.kernel.org/all/20250629003616.23688-1-kerneljasonxing@gmail.com/
> 1. use a better approach with fewer #ifdefs (Simon, Jakub)
Thanks for the update.
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists