OSDN Git Service

ice: use static inline for dummy functions
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 6 May 2021 15:39:56 +0000 (08:39 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 7 Jun 2021 15:59:01 +0000 (08:59 -0700)
commit96cf4f689bf7e074c8ab8917a82a24114370cbeb
tree3c2eab26d3d5312b1f5970de0663c71d5b0a4ea5
parentb38b7f2bb418510397714c7fb3bed64b6fd024e5
ice: use static inline for dummy functions

Trivial:
The driver had previously attempted to use #define
macros to make functions that have no use in certain
configs disappear. Using static inlines instead allows
for certain static checkers to process the code better,
and results in no functional change.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_arfs.h
drivers/net/ethernet/intel/ice/ice_dcb_lib.h
drivers/net/ethernet/intel/ice/ice_dcb_nl.h
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h
drivers/net/ethernet/intel/ice/ice_xsk.h