wifi: iwlwifi: fw: fix compile w/o CONFIG_ACPI
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Feb 2024 09:48:18 +0000 (10:48 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Sun, 4 Feb 2024 09:49:56 +0000 (10:49 +0100)
The user of this function passes a pointer to a value that
doesn't exist when compiled w/o CONFIG_ACPI. Since we don't
need the value then, make the non-ACPI version a macro to
allow it to still build.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402031454.syX4cSGN-lkp@intel.com/
Fixes: c4c954547755 ("wifi: iwlwifi: implement WPFC ACPI table loading")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/acpi.h

index 9cb10177688483b045f3a941ee6c81c35df86ef8..1d32b82f73db3c2811db2504f3d54d66696e5bab 100644 (file)
@@ -193,10 +193,8 @@ static inline int iwl_acpi_get_ppag_table(struct iwl_fw_runtime *fwrt)
        return -ENOENT;
 }
 
-static inline void iwl_acpi_get_phy_filters(struct iwl_fw_runtime *fwrt,
-                                           struct iwl_phy_specific_cfg *filters)
-{
-}
+/* macro since the second argument doesn't always exist */
+#define iwl_acpi_get_phy_filters(fwrt, filters) do { } while (0)
 
 static inline void iwl_acpi_get_guid_lock_status(struct iwl_fw_runtime *fwrt)
 {