Skip to content

Commit d76c750

Browse files
committed
wifi: iwlwifi: mld: fix PM_SLEEP -Wundef warning
JIRA: https://issues.redhat.com/browse/RHEL-89168 commit 676b902 Author: Johannes Berg <johannes.berg@intel.com> Date: Tue Apr 1 06:45:55 2025 +0300 wifi: iwlwifi: mld: fix PM_SLEEP -Wundef warning Config symbols are not defined if turned off, so need to use #ifdef, not #if. Fixes: d1e879e ("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> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent afb7070 commit d76c750

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/mld

1 file changed

+1
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mld/iface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ struct iwl_mld_vif {
166166

167167
struct iwl_mld_emlsr emlsr;
168168

169-
#if CONFIG_PM_SLEEP
169+
#ifdef CONFIG_PM_SLEEP
170170
struct iwl_mld_wowlan_data wowlan_data;
171171
#endif
172172
#ifdef CONFIG_IWLWIFI_DEBUGFS

0 commit comments

Comments
 (0)