Skip to content

Commit 6910e2e

Browse files
arndbVudentz
authored andcommitted
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: 872f8c2 ("Bluetooth: btusb: mediatek: add MediaTek devcoredump support") Fixes: 9695ef8 ("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>
1 parent d40ae85 commit 6910e2e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/net/bluetooth/hci_core.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,7 @@ struct hci_dev {
593593
const char *fw_info;
594594
struct dentry *debugfs;
595595

596-
#ifdef CONFIG_DEV_COREDUMP
597596
struct hci_devcoredump dump;
598-
#endif
599597

600598
struct device dev;
601599

0 commit comments

Comments
 (0)