]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mld: fix PM_SLEEP -Wundef warning
authorJohannes Berg <johannes.berg@intel.com>
Tue, 1 Apr 2025 03:45:55 +0000 (06:45 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 2 Apr 2025 08:39:28 +0000 (10:39 +0200)
Config symbols are not defined if turned off, so need to
use #ifdef, not #if.

Fixes: d1e879ec600f9 ("wifi: iwlwifi: add iwlmld sub-driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Yedidya Ben Shimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250401064530.612020bcdaad.I4e885e6646576e29fb236250a1b5038d3f14b08e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/iface.h

index d1d56b081bf634a05bb6c5843357b42c60bd55be..ec14d0736cee6eda7bf4d129ee5fe82651a56197 100644 (file)
@@ -166,7 +166,7 @@ struct iwl_mld_vif {
 
        struct iwl_mld_emlsr emlsr;
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
        struct iwl_mld_wowlan_data wowlan_data;
 #endif
 #ifdef CONFIG_IWLWIFI_DEBUGFS