]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: mark unused parameters with __always_unused
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 8 Jul 2019 23:12:34 +0000 (16:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 4 Aug 2019 11:36:49 +0000 (04:36 -0700)
commit1360c8a5fdc92ce10194d2623a747343a351772c
treeab7211c401ca9e82e71eb917d0f0c4abd5edb964
parentdcc396660d89fc5721a18874cf1d2bf3f170fbfe
fm10k: mark unused parameters with __always_unused

Several functions in the fm10k driver have specific function templates,
as they are used as function pointers. The parameters in these functions
are not always used. Explicitly mark unused parameters with the
__always_unused macro, so that the compiler will not warn about them
when building with the -Wunused-parameter warning enabled.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
drivers/net/ethernet/intel/fm10k/fm10k_pf.c
drivers/net/ethernet/intel/fm10k/fm10k_tlv.c
drivers/net/ethernet/intel/fm10k/fm10k_type.h
drivers/net/ethernet/intel/fm10k/fm10k_vf.c