diff options
author | 2023-07-03 13:30:48 +0200 | |
---|---|---|
committer | 2023-07-20 11:25:24 -0700 | |
commit | 6910e2eb39254d279bce5bc0f8eb6af45b59357c (patch) | |
tree | 90b64d79df05e674d10330fd8354bca1c853900a /scripts/generate_rust_analyzer.py | |
parent | Bluetooth: ISO: fix iso_conn related locking and validity issues (diff) | |
download | wireguard-linux-6910e2eb39254d279bce5bc0f8eb6af45b59357c.tar.xz wireguard-linux-6910e2eb39254d279bce5bc0f8eb6af45b59357c.zip |
Bluetooth: coredump: fix building with coredump disabled
The btmtk driver uses an IS_ENABLED() check to conditionally compile
the coredump support, but this fails to build because the hdev->dump
member is in an #ifdef:
drivers/bluetooth/btmtk.c: In function 'btmtk_process_coredump':
drivers/bluetooth/btmtk.c:386:30: error: 'struct hci_dev' has no member named 'dump'
386 | schedule_delayed_work(&hdev->dump.dump_timeout,
| ^~
The struct member doesn't really make a huge difference in the total size,
so just remove the #ifdef around it to avoid adding similar checks
around each user.
Fixes: 872f8c253cb9e ("Bluetooth: btusb: mediatek: add MediaTek devcoredump support")
Fixes: 9695ef876fd12 ("Bluetooth: Add support for hci devcoredump")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions