summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-02-04 10:48:18 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-02-04 10:49:56 +0100
commit5f9c1f8f9adaf32e4e39fcf260d4fc20dbfb77c9 (patch)
tree423203fced54f3adf77ab518beaa23bc86bbeaf8 /drivers/net/wireless/intel
parent5932ad87828b267649d750869c89c0f1a3873477 (diff)
downloadlinux-stable-5f9c1f8f9adaf32e4e39fcf260d4fc20dbfb77c9.tar.gz
linux-stable-5f9c1f8f9adaf32e4e39fcf260d4fc20dbfb77c9.tar.bz2
linux-stable-5f9c1f8f9adaf32e4e39fcf260d4fc20dbfb77c9.zip
wifi: iwlwifi: fw: fix compile w/o CONFIG_ACPI
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>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/fw/acpi.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/acpi.h b/drivers/net/wireless/intel/iwlwifi/fw/acpi.h
index 9cb101776884..1d32b82f73db 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/acpi.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/acpi.h
@@ -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)
{