Commit 5f9c1f8f authored by Johannes Berg's avatar Johannes Berg

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: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402031454.syX4cSGN-lkp@intel.com/
Fixes: c4c95454 ("wifi: iwlwifi: implement WPFC ACPI table loading")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 5932ad87
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment