linux_dsm_epyc7002/drivers/net/ethernet/intel/ixgbevf
Arnd Bergmann 954b54dea0 ixgbevf: fix unused variable warning
The new ixgbevf_set_rx_buffer_len() function causes a harmless warnings
in configurations with large page size:

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c: In function 'ixgbevf_set_rx_buffer_len':
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:1758:15: error: unused variable 'max_frame' [-Werror=unused-variable]

This rephrases the code so that the compiler can see the use of that
variable, making it slightly easier to read in the process.

Fixes: f15c5ba5b6 ("ixgbevf: add support for using order 1 pages to receive large frames")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-03-12 11:05:11 -07:00
..
defines.h ixgbevf: add VF support for new hardware 2016-07-22 01:27:47 -07:00
ethtool.c ixgbevf: add ethtool private flag for legacy Rx 2018-02-26 09:20:35 -08:00
ixgbevf_main.c ixgbevf: fix unused variable warning 2018-03-12 11:05:11 -07:00
ixgbevf.h ixgbevf: allocate the rings as part of q_vector 2018-02-26 09:32:46 -08:00
Makefile ixgbevf: Update copyright notices 2012-02-03 03:07:09 -08:00
mbx.c ixgbevf: ixgbevf_write/read_posted_mbx should use IXGBE_ERR_MBX to initialize ret_val 2016-06-29 09:18:06 -07:00
mbx.h ixgbevf: Add support for VF promiscuous mode 2017-01-03 13:03:40 -08:00
regs.h ixgbevf: Fix code comments and whitespace 2015-03-13 15:41:07 -07:00
vf.c ixgbevf: use ARRAY_SIZE for various array sizing calculations 2018-01-26 10:25:15 -08:00
vf.h locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00