]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ice: use proper format for function pointer as a function parameter
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 22 Jan 2020 15:21:36 +0000 (07:21 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 16 Feb 2020 01:54:20 +0000 (17:54 -0800)
Compiling with gcc-9.2.1 with W=1 points out warnings about the improper
function parameter list.  Fix it.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_xsk.c

index 4adb8a3ba06e7b0e74b7712e8efb0647497e029b..b6b0f1180b13ef9e0bee0cce46f4456a4f5fc525 100644 (file)
@@ -609,7 +609,7 @@ ice_alloc_buf_slow_zc(struct ice_ring *rx_ring, struct ice_rx_buf *rx_buf)
  */
 static bool
 ice_alloc_rx_bufs_zc(struct ice_ring *rx_ring, int count,
-                    bool alloc(struct ice_ring *, struct ice_rx_buf *))
+                    bool (*alloc)(struct ice_ring *, struct ice_rx_buf *))
 {
        union ice_32b_rx_flex_desc *rx_desc;
        u16 ntu = rx_ring->next_to_use;