Commit 6221595f authored by Tony Nguyen's avatar Tony Nguyen

ice: fix unused parameter warning

Depending on PAGE_SIZE, the following unused parameter warning can be
reported:

drivers/net/ethernet/intel/ice/ice_txrx.c: In function ‘ice_rx_frame_truesize’:
drivers/net/ethernet/intel/ice/ice_txrx.c:513:21: warning: unused parameter ‘size’ [-Wunused-parameter]
        unsigned int size)

The 'size' variable is used only when PAGE_SIZE >= 8192. Add __maybe_unused
to remove the warning.
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
parent 7dfff9ff
...@@ -509,8 +509,8 @@ static unsigned int ice_rx_offset(struct ice_ring *rx_ring) ...@@ -509,8 +509,8 @@ static unsigned int ice_rx_offset(struct ice_ring *rx_ring)
return 0; return 0;
} }
static unsigned int ice_rx_frame_truesize(struct ice_ring *rx_ring, static unsigned int
unsigned int size) ice_rx_frame_truesize(struct ice_ring *rx_ring, unsigned int __maybe_unused size)
{ {
unsigned int truesize; unsigned int truesize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment