Commit b9fd988
bnxt_en: eliminate the compile warning in bnxt_request_irq due to CONFIG_RFS_ACCEL
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: 9b6a30f ("net: allow rps/rfs related configs to be switched")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506282102.x1tXt0qz-lkp@intel.com/
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 17bbde2 commit b9fd988
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11607 | 11607 | | |
11608 | 11608 | | |
11609 | 11609 | | |
| 11610 | + | |
11610 | 11611 | | |
11611 | 11612 | | |
11612 | | - | |
11613 | | - | |
11614 | | - | |
11615 | 11613 | | |
11616 | 11614 | | |
11617 | 11615 | | |
| |||
11632 | 11630 | | |
11633 | 11631 | | |
11634 | 11632 | | |
11635 | | - | |
11636 | | - | |
| 11633 | + | |
| 11634 | + | |
11637 | 11635 | | |
11638 | 11636 | | |
11639 | 11637 | | |
11640 | 11638 | | |
11641 | 11639 | | |
11642 | 11640 | | |
11643 | | - | |
| 11641 | + | |
11644 | 11642 | | |
11645 | 11643 | | |
11646 | 11644 | | |
| |||
0 commit comments