diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2025-02-25 15:53:53 +0100 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2025-02-26 15:42:08 +0100 |
| commit | cf6b9ba172ddc1eb989695225c456c219370f1a5 (patch) | |
| tree | 3f9f24b7872df8c4bab75cf92412cdf1af93c881 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | Merge tag 'rtw-next-2025-02-10-v2' of https://github.com/pkshih/rtw (diff) | |
| download | linux-cf6b9ba172ddc1eb989695225c456c219370f1a5.tar.gz linux-cf6b9ba172ddc1eb989695225c456c219370f1a5.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
