]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: debugfs depends on CFG80211's one
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 10 Feb 2025 12:31:05 +0000 (20:31 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 10 Feb 2025 12:56:47 +0000 (20:56 +0800)
The wiphy_locked_debugfs_read() and wiphy_locked_debugfs_write() used
by rtw89 are defined if CFG80211_DEBUGFS enabled. Add the dependency
accordingly.

Fixes: 8fdf78f3cd5f ("wifi: rtw89: debugfs: use wiphy_locked_debugfs_{read,write}() if needed")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202502101810.3CUpUL7p-lkp@intel.com/
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250210123105.10466-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/Kconfig

index b1c86cdd9c0e89446ab23859b2c7a8e4e4d18ad9..205d7ecca7d7807229d1669c53024b959441296a 100644 (file)
@@ -123,7 +123,7 @@ config RTW89_DEBUGMSG
 
 config RTW89_DEBUGFS
        bool "Realtek rtw89 debugfs support"
-       depends on RTW89_CORE
+       depends on RTW89_CORE && CFG80211_DEBUGFS
        select RTW89_DEBUG
        help
          Enable debugfs support