Closed cotequeiroz closed 4 years ago
When compiled without debugfs, this generates this warning:
ath10k-5.4/coredump.c:1124:43: warning: unused variable 'dbglog_storage' [-Wunused-variable]
struct ath10k_dbglog_entry_storage_user *dbglog_storage;
^~~~~~~~~~~~~~
I don't know if I should leave it there or not. At first I had it conditionally removed, then changed my mind, as it is is just a harmless warning (there's the warning about disabling DEBUGFS already anyway), and it may be used in the future for other stuff.
I'd rather not add compile warnings, so please fix that unused variable warning.
Done.
The debug record in struct ath10k can only be used when compiled with debugfs. This fixes some unconditional uses in coredump.c and wmi.c.
Signed-off-by: Eneas U de Queiroz cotequeiroz@gmail.com
This was only compile-tested with openwrt, but the changes are somewhat trivial.