2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/wireless/intel/iwlegacy
Arnd Bergmann cf6b9ba172 wifi: iwlegacy: don't warn for unused variables with DEBUG_FS=n
The reference to il_rate_mcs is inside of an #ifdef, causing a W=1 warning:

drivers/net/wireless/intel/iwlegacy/4965-rs.c:189:38: error: unused variable 'il_rate_mcs' [-Werror,-Wunused-const-variable]
static const struct il_rate_mcs_info il_rate_mcs[RATE_COUNT] = {

Replace the #ifdef with a PTR_IF() for better compile time analysis.
The dead code will still get eliminated, but the warning goes away.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20250225145359.1126786-1-arnd@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-02-26 15:42:08 +01:00
..
3945-debug.c
3945-mac.c wifi: iwlegacy: Remove unused il3945_calc_db_from_ratio() 2025-01-10 15:12:38 +02:00
3945-rs.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
3945.c Revert "wifi: iwlegacy: do not skip frames with bad FCS" 2024-11-12 20:24:45 +02:00
3945.h wifi: iwlegacy: Remove unused il3945_calc_db_from_ratio() 2025-01-10 15:12:38 +02:00
4965-calib.c
4965-debug.c
4965-mac.c Revert "wifi: iwlegacy: do not skip frames with bad FCS" 2024-11-12 20:24:45 +02:00
4965-rs.c wifi: iwlegacy: don't warn for unused variables with DEBUG_FS=n 2025-02-26 15:42:08 +01:00
4965.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
4965.h wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
commands.h wifi: iwlegacy: Avoid multiple -Wflex-array-member-not-at-end warnings 2024-08-22 11:40:59 +03:00
common.c wifi: iwlegacy: Remove unused il_get_single_channel_number() 2025-01-10 15:12:38 +02:00
common.h wifi: iwlegacy: don't warn for unused variables with DEBUG_FS=n 2025-02-26 15:42:08 +01:00
csr.h
debug.c
iwl-spectrum.h
Kconfig iwlwifi: fix LED dependencies 2021-12-08 20:17:06 +02:00
Makefile
prph.h