* [PATCH v1 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support @ 2023-05-01 12:00 Sai Teja Aluvala 2023-05-01 12:39 ` [v1,1/2] " bluez.test.bot 0 siblings, 1 reply; 3+ messages in thread From: Sai Teja Aluvala @ 2023-05-01 12:00 UTC (permalink / raw) To: marcel, johan.hedberg, luiz.dentz Cc: linux-kernel, linux-bluetooth, quic_hemantg, quic_bgodavar, jiangzp, mmandlik, Sai Teja Aluvala This patch implements the hci_qca driver side .coredump() callback to trigger a devcoredump via sysfs Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com> Reviewed-by: Manish Mandlik <mmandlik@google.com> v1:Initial Patch --- drivers/bluetooth/hci_qca.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 1b06450..ca98f6d 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -2380,6 +2380,18 @@ static const struct acpi_device_id qca_bluetooth_acpi_match[] = { MODULE_DEVICE_TABLE(acpi, qca_bluetooth_acpi_match); #endif +#ifdef CONFIG_DEV_COREDUMP +static void hciqca_coredump(struct device *dev) +{ + struct serdev_device *serdev = to_serdev_device(dev); + struct qca_serdev *qcadev = serdev_device_get_drvdata(serdev); + struct hci_uart *hu = &qcadev->serdev_hu; + struct hci_dev *hdev = hu->hdev; + + if (hdev->dump.coredump) + hdev->dump.coredump(hdev); +} +#endif static struct serdev_device_driver qca_serdev_driver = { .probe = qca_serdev_probe, @@ -2390,6 +2402,9 @@ static struct serdev_device_driver qca_serdev_driver = { .acpi_match_table = ACPI_PTR(qca_bluetooth_acpi_match), .shutdown = qca_serdev_shutdown, .pm = &qca_pm_ops, +#ifdef CONFIG_DEV_COREDUMP + .coredump = hciqca_coredump, +#endif }, }; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. ^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [v1,1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support 2023-05-01 12:00 [PATCH v1 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support Sai Teja Aluvala @ 2023-05-01 12:39 ` bluez.test.bot 0 siblings, 0 replies; 3+ messages in thread From: bluez.test.bot @ 2023-05-01 12:39 UTC (permalink / raw) To: linux-bluetooth, quic_saluvala [-- Attachment #1: Type: text/plain, Size: 11484 bytes --] This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=744132 ---Test result--- Test Summary: CheckPatch PASS 1.34 seconds GitLint PASS 0.57 seconds SubjectPrefix PASS 0.20 seconds BuildKernel FAIL 27.06 seconds CheckAllWarning FAIL 29.49 seconds CheckSparse FAIL 33.02 seconds CheckSmatch FAIL 89.25 seconds BuildKernel32 FAIL 25.92 seconds TestRunnerSetup PASS 451.81 seconds TestRunner_l2cap-tester PASS 16.54 seconds TestRunner_iso-tester PASS 20.42 seconds TestRunner_bnep-tester PASS 5.33 seconds TestRunner_mgmt-tester PASS 112.23 seconds TestRunner_rfcomm-tester PASS 8.61 seconds TestRunner_sco-tester PASS 7.86 seconds TestRunner_ioctl-tester PASS 9.12 seconds TestRunner_mesh-tester PASS 6.83 seconds TestRunner_smp-tester PASS 7.79 seconds TestRunner_userchan-tester PASS 5.64 seconds IncrementalBuild FAIL 35.49 seconds Details ############################## Test: BuildKernel - FAIL Desc: Build Kernel for Bluetooth Output: drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1903:45: error: passing argument 3 of ‘hci_devcd_register’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1903 | hci_devcd_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~ | | | int (*)(struct hci_dev *, char *, size_t) {aka int (*)(struct hci_dev *, char *, long unsigned int)} In file included from ./include/net/bluetooth/hci_core.h:36, from drivers/bluetooth/hci_qca.c:37: ./include/net/bluetooth/coredump.h:68:20: note: expected ‘dmp_hdr_t’ {aka ‘void (*)(struct hci_dev *, struct sk_buff *)’} but argument is of type ‘int (*)(struct hci_dev *, char *, size_t)’ {aka ‘int (*)(struct hci_dev *, char *, long unsigned int)’} 68 | dmp_hdr_t dmp_hdr, notify_change_t notify_change); | ~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 ############################## Test: CheckAllWarning - FAIL Desc: Run linux kernel with all warning enabled Output: drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1903:45: error: passing argument 3 of ‘hci_devcd_register’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1903 | hci_devcd_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~ | | | int (*)(struct hci_dev *, char *, size_t) {aka int (*)(struct hci_dev *, char *, long unsigned int)} In file included from ./include/net/bluetooth/hci_core.h:36, from drivers/bluetooth/hci_qca.c:37: ./include/net/bluetooth/coredump.h:68:20: note: expected ‘dmp_hdr_t’ {aka ‘void (*)(struct hci_dev *, struct sk_buff *)’} but argument is of type ‘int (*)(struct hci_dev *, char *, size_t)’ {aka ‘int (*)(struct hci_dev *, char *, long unsigned int)’} 68 | dmp_hdr_t dmp_hdr, notify_change_t notify_change); | ~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 ############################## Test: CheckSparse - FAIL Desc: Run sparse tool with linux kernel Output: net/bluetooth/af_bluetooth.c:178:25: warning: context imbalance in 'bt_accept_enqueue' - different lock contexts for basic block drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1903:45: error: passing argument 3 of ‘hci_devcd_register’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1903 | hci_devcd_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~ | | | int (*)(struct hci_dev *, char *, size_t) {aka int (*)(struct hci_dev *, char *, long unsigned int)} In file included from ./include/net/bluetooth/hci_core.h:36, from drivers/bluetooth/hci_qca.c:37: ./include/net/bluetooth/coredump.h:68:20: note: expected ‘dmp_hdr_t’ {aka ‘void (*)(struct hci_dev *, struct sk_buff *)’} but argument is of type ‘int (*)(struct hci_dev *, char *, size_t)’ {aka ‘int (*)(struct hci_dev *, char *, long unsigned int)’} 68 | dmp_hdr_t dmp_hdr, notify_change_t notify_change); | ~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): ./include/net/bluetooth/hci.h:2646:47: warning: array of flexible structures ./include/net/bluetooth/hci.h:2732:43: warning: array of flexible structures net/bluetooth/hci_codec.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures net/bluetooth/sco.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures make: *** [Makefile:2025: .] Error 2 ############################## Test: CheckSmatch - FAIL Desc: Run smatch tool with source Output: drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1903:45: error: passing argument 3 of ‘hci_devcd_register’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1903 | hci_devcd_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~ | | | int (*)(struct hci_dev *, char *, size_t) {aka int (*)(struct hci_dev *, char *, long unsigned int)} In file included from ./include/net/bluetooth/hci_core.h:36, from drivers/bluetooth/hci_qca.c:37: ./include/net/bluetooth/coredump.h:68:20: note: expected ‘dmp_hdr_t’ {aka ‘void (*)(struct hci_dev *, struct sk_buff *)’} but argument is of type ‘int (*)(struct hci_dev *, char *, size_t)’ {aka ‘int (*)(struct hci_dev *, char *, long unsigned int)’} 68 | dmp_hdr_t dmp_hdr, notify_change_t notify_change); | ~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): ./include/net/bluetooth/hci.h:2646:47: warning: array of flexible structures ./include/net/bluetooth/hci.h:2732:43: warning: array of flexible structures net/bluetooth/hci_codec.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures net/bluetooth/sco.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures make: *** [Makefile:2025: .] Error 2 ############################## Test: BuildKernel32 - FAIL Desc: Build 32bit Kernel for Bluetooth Output: drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1903:45: error: passing argument 3 of ‘hci_devcd_register’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1903 | hci_devcd_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~ | | | int (*)(struct hci_dev *, char *, size_t) {aka int (*)(struct hci_dev *, char *, unsigned int)} In file included from ./include/net/bluetooth/hci_core.h:36, from drivers/bluetooth/hci_qca.c:37: ./include/net/bluetooth/coredump.h:68:20: note: expected ‘dmp_hdr_t’ {aka ‘void (*)(struct hci_dev *, struct sk_buff *)’} but argument is of type ‘int (*)(struct hci_dev *, char *, size_t)’ {aka ‘int (*)(struct hci_dev *, char *, unsigned int)’} 68 | dmp_hdr_t dmp_hdr, notify_change_t notify_change); | ~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 ############################## Test: IncrementalBuild - FAIL Desc: Incremental build with the patches in the series Output: [v1,2/2] Bluetooth: hci_qca: Add qcomm devcoredump support drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1903:45: error: passing argument 3 of ‘hci_devcd_register’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1903 | hci_devcd_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~ | | | int (*)(struct hci_dev *, char *, size_t) {aka int (*)(struct hci_dev *, char *, long unsigned int)} In file included from ./include/net/bluetooth/hci_core.h:36, from drivers/bluetooth/hci_qca.c:37: ./include/net/bluetooth/coredump.h:68:20: note: expected ‘dmp_hdr_t’ {aka ‘void (*)(struct hci_dev *, struct sk_buff *)’} but argument is of type ‘int (*)(struct hci_dev *, char *, size_t)’ {aka ‘int (*)(struct hci_dev *, char *, long unsigned int)’} 68 | dmp_hdr_t dmp_hdr, notify_change_t notify_change); | ~~~~~~~~~~^~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make: *** [Makefile:2025: .] Error 2 --- Regards, Linux Bluetooth ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v1 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support @ 2023-04-28 7:16 Sai Teja Aluvala 2023-04-28 7:56 ` [v1,1/2] " bluez.test.bot 0 siblings, 1 reply; 3+ messages in thread From: Sai Teja Aluvala @ 2023-04-28 7:16 UTC (permalink / raw) To: marcel, johan.hedberg Cc: linux-kernel, linux-bluetooth, quic_hemantg, quic_bgodavar, quic_rameshn, jiangzp, mmandlik, Sai Teja Aluvala This patch implements the hci_qca driver side .coredump() callback to trigger a devcoredump via sysfs and .enable_coredump() callback to check if the devcoredump functionality is enabled for a device. Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com> Reviewed-by: Manish Mandlik <mmandlik@google.com> --- drivers/bluetooth/hci_qca.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 1b06450..e21180d 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1702,6 +1702,15 @@ static int qca_power_on(struct hci_dev *hdev) return ret; } +#ifdef CONFIG_DEV_COREDUMP +static bool hciqca_coredump_enabled(struct hci_dev *hdev) +{ + struct hci_uart *hu = hci_get_drvdata(hdev); + + return !hu->serdev->dev.coredump_disabled; +} +#endif + static int qca_setup(struct hci_uart *hu) { struct hci_dev *hdev = hu->hdev; @@ -1780,6 +1789,9 @@ static int qca_setup(struct hci_uart *hu) qca_debugfs_init(hdev); hu->hdev->hw_error = qca_hw_error; hu->hdev->cmd_timeout = qca_cmd_timeout; +#ifdef CONFIG_DEV_COREDUMP + hu->hdev->dump.enabled = hciqca_coredump_enabled; +#endif if (device_can_wakeup(hu->serdev->ctrl->dev.parent)) hu->hdev->wakeup = qca_wakeup; } else if (ret == -ENOENT) { @@ -2380,6 +2392,18 @@ static const struct acpi_device_id qca_bluetooth_acpi_match[] = { MODULE_DEVICE_TABLE(acpi, qca_bluetooth_acpi_match); #endif +#ifdef CONFIG_DEV_COREDUMP +static void hciqca_coredump(struct device *dev) +{ + struct serdev_device *serdev = to_serdev_device(dev); + struct qca_serdev *qcadev = serdev_device_get_drvdata(serdev); + struct hci_uart *hu = &qcadev->serdev_hu; + struct hci_dev *hdev = hu->hdev; + + if (!dev->coredump_disabled && hdev->dump.coredump) + hdev->dump.coredump(hdev); +} +#endif static struct serdev_device_driver qca_serdev_driver = { .probe = qca_serdev_probe, @@ -2390,6 +2414,9 @@ static struct serdev_device_driver qca_serdev_driver = { .acpi_match_table = ACPI_PTR(qca_bluetooth_acpi_match), .shutdown = qca_serdev_shutdown, .pm = &qca_pm_ops, +#ifdef CONFIG_DEV_COREDUMP + .coredump = hciqca_coredump, +#endif }, }; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. ^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [v1,1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support 2023-04-28 7:16 [PATCH v1 1/2] " Sai Teja Aluvala @ 2023-04-28 7:56 ` bluez.test.bot 0 siblings, 0 replies; 3+ messages in thread From: bluez.test.bot @ 2023-04-28 7:56 UTC (permalink / raw) To: linux-bluetooth, quic_saluvala [-- Attachment #1: Type: text/plain, Size: 20047 bytes --] This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=743760 ---Test result--- Test Summary: CheckPatch PASS 1.57 seconds GitLint PASS 0.69 seconds SubjectPrefix PASS 0.25 seconds BuildKernel FAIL 26.11 seconds CheckAllWarning FAIL 28.77 seconds CheckSparse FAIL 32.42 seconds CheckSmatch FAIL 85.67 seconds BuildKernel32 FAIL 25.21 seconds TestRunnerSetup PASS 445.15 seconds TestRunner_l2cap-tester PASS 17.21 seconds TestRunner_iso-tester PASS 21.48 seconds TestRunner_bnep-tester PASS 5.59 seconds TestRunner_mgmt-tester PASS 116.11 seconds TestRunner_rfcomm-tester PASS 9.04 seconds TestRunner_sco-tester PASS 8.37 seconds TestRunner_ioctl-tester PASS 9.72 seconds TestRunner_mesh-tester PASS 7.19 seconds TestRunner_smp-tester PASS 8.22 seconds TestRunner_userchan-tester PASS 5.96 seconds IncrementalBuild FAIL 23.85 seconds Details ############################## Test: BuildKernel - FAIL Desc: Build Kernel for Bluetooth Output: drivers/bluetooth/hci_qca.c: In function ‘qca_controller_memdump’: drivers/bluetooth/hci_qca.c:1070:10: error: implicit declaration of function ‘hci_devcoredump_init’; did you mean ‘hci_devcd_init’? [-Werror=implicit-function-declaration] 1070 | ret = hci_devcoredump_init(hu->hdev, qca_memdump->ram_dump_size); | ^~~~~~~~~~~~~~~~~~~~ | hci_devcd_init drivers/bluetooth/hci_qca.c:1119:4: error: implicit declaration of function ‘hci_devcoredump_append_pattern’; did you mean ‘hci_devcd_append_pattern’? [-Werror=implicit-function-declaration] 1119 | hci_devcoredump_append_pattern(hu->hdev, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append_pattern drivers/bluetooth/hci_qca.c:1136:4: error: implicit declaration of function ‘hci_devcoredump_append’; did you mean ‘hci_devcd_append’? [-Werror=implicit-function-declaration] 1136 | hci_devcoredump_append(hu->hdev, skb); | ^~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append drivers/bluetooth/hci_qca.c:1150:4: error: implicit declaration of function ‘hci_devcoredump_complete’; did you mean ‘hci_devcd_complete’? [-Werror=implicit-function-declaration] 1150 | hci_devcoredump_complete(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_complete drivers/bluetooth/hci_qca.c: In function ‘qca_hw_error’: drivers/bluetooth/hci_qca.c:1561:3: error: implicit declaration of function ‘hci_devcoredump_abort’; did you mean ‘hci_devcd_abort’? [-Werror=implicit-function-declaration] 1561 | hci_devcoredump_abort(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~ | hci_devcd_abort drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump_enabled’: drivers/bluetooth/hci_qca.c:1732:25: error: ‘struct device’ has no member named ‘coredump_disabled’ 1732 | return !hu->serdev->dev.coredump_disabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1874:17: error: ‘struct hci_devcoredump’ has no member named ‘enabled’ 1874 | hu->hdev->dump.enabled = hciqca_coredump_enabled; | ^ drivers/bluetooth/hci_qca.c:1914:2: error: implicit declaration of function ‘hci_devcoredump_register’; did you mean ‘hci_devcd_register’? [-Werror=implicit-function-declaration] 1914 | hci_devcoredump_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_register drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump’: drivers/bluetooth/hci_qca.c:2487:10: error: ‘struct device’ has no member named ‘coredump_disabled’ 2487 | if (!dev->coredump_disabled && hdev->dump.coredump) | ^~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 ############################## Test: CheckAllWarning - FAIL Desc: Run linux kernel with all warning enabled Output: drivers/bluetooth/hci_qca.c:981:5: warning: no previous prototype for ‘qca_dmp_hdr’ [-Wmissing-prototypes] 981 | int qca_dmp_hdr(struct hci_dev *hdev, char *buf, size_t size) | ^~~~~~~~~~~ drivers/bluetooth/hci_qca.c: In function ‘qca_controller_memdump’: drivers/bluetooth/hci_qca.c:1070:10: error: implicit declaration of function ‘hci_devcoredump_init’; did you mean ‘hci_devcd_init’? [-Werror=implicit-function-declaration] 1070 | ret = hci_devcoredump_init(hu->hdev, qca_memdump->ram_dump_size); | ^~~~~~~~~~~~~~~~~~~~ | hci_devcd_init drivers/bluetooth/hci_qca.c:1119:4: error: implicit declaration of function ‘hci_devcoredump_append_pattern’; did you mean ‘hci_devcd_append_pattern’? [-Werror=implicit-function-declaration] 1119 | hci_devcoredump_append_pattern(hu->hdev, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append_pattern drivers/bluetooth/hci_qca.c:1136:4: error: implicit declaration of function ‘hci_devcoredump_append’; did you mean ‘hci_devcd_append’? [-Werror=implicit-function-declaration] 1136 | hci_devcoredump_append(hu->hdev, skb); | ^~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append drivers/bluetooth/hci_qca.c:1150:4: error: implicit declaration of function ‘hci_devcoredump_complete’; did you mean ‘hci_devcd_complete’? [-Werror=implicit-function-declaration] 1150 | hci_devcoredump_complete(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_complete drivers/bluetooth/hci_qca.c: In function ‘qca_hw_error’: drivers/bluetooth/hci_qca.c:1561:3: error: implicit declaration of function ‘hci_devcoredump_abort’; did you mean ‘hci_devcd_abort’? [-Werror=implicit-function-declaration] 1561 | hci_devcoredump_abort(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~ | hci_devcd_abort drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump_enabled’: drivers/bluetooth/hci_qca.c:1732:25: error: ‘struct device’ has no member named ‘coredump_disabled’ 1732 | return !hu->serdev->dev.coredump_disabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1874:17: error: ‘struct hci_devcoredump’ has no member named ‘enabled’ 1874 | hu->hdev->dump.enabled = hciqca_coredump_enabled; | ^ drivers/bluetooth/hci_qca.c:1914:2: error: implicit declaration of function ‘hci_devcoredump_register’; did you mean ‘hci_devcd_register’? [-Werror=implicit-function-declaration] 1914 | hci_devcoredump_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_register drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump’: drivers/bluetooth/hci_qca.c:2487:10: error: ‘struct device’ has no member named ‘coredump_disabled’ 2487 | if (!dev->coredump_disabled && hdev->dump.coredump) | ^~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 ############################## Test: CheckSparse - FAIL Desc: Run sparse tool with linux kernel Output: net/bluetooth/af_bluetooth.c:178:25: warning: context imbalance in 'bt_accept_enqueue' - different lock contexts for basic block drivers/bluetooth/hci_qca.c: In function ‘qca_controller_memdump’: drivers/bluetooth/hci_qca.c:1070:10: error: implicit declaration of function ‘hci_devcoredump_init’; did you mean ‘hci_devcd_init’? [-Werror=implicit-function-declaration] 1070 | ret = hci_devcoredump_init(hu->hdev, qca_memdump->ram_dump_size); | ^~~~~~~~~~~~~~~~~~~~ | hci_devcd_init drivers/bluetooth/hci_qca.c:1119:4: error: implicit declaration of function ‘hci_devcoredump_append_pattern’; did you mean ‘hci_devcd_append_pattern’? [-Werror=implicit-function-declaration] 1119 | hci_devcoredump_append_pattern(hu->hdev, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append_pattern drivers/bluetooth/hci_qca.c:1136:4: error: implicit declaration of function ‘hci_devcoredump_append’; did you mean ‘hci_devcd_append’? [-Werror=implicit-function-declaration] 1136 | hci_devcoredump_append(hu->hdev, skb); | ^~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append drivers/bluetooth/hci_qca.c:1150:4: error: implicit declaration of function ‘hci_devcoredump_complete’; did you mean ‘hci_devcd_complete’? [-Werror=implicit-function-declaration] 1150 | hci_devcoredump_complete(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_complete drivers/bluetooth/hci_qca.c: In function ‘qca_hw_error’: drivers/bluetooth/hci_qca.c:1561:3: error: implicit declaration of function ‘hci_devcoredump_abort’; did you mean ‘hci_devcd_abort’? [-Werror=implicit-function-declaration] 1561 | hci_devcoredump_abort(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~ | hci_devcd_abort drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump_enabled’: drivers/bluetooth/hci_qca.c:1732:25: error: ‘struct device’ has no member named ‘coredump_disabled’ 1732 | return !hu->serdev->dev.coredump_disabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1874:17: error: ‘struct hci_devcoredump’ has no member named ‘enabled’ 1874 | hu->hdev->dump.enabled = hciqca_coredump_enabled; | ^ drivers/bluetooth/hci_qca.c:1914:2: error: implicit declaration of function ‘hci_devcoredump_register’; did you mean ‘hci_devcd_register’? [-Werror=implicit-function-declaration] 1914 | hci_devcoredump_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_register drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump’: drivers/bluetooth/hci_qca.c:2487:10: error: ‘struct device’ has no member named ‘coredump_disabled’ 2487 | if (!dev->coredump_disabled && hdev->dump.coredump) | ^~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): ./include/net/bluetooth/hci.h:2646:47: warning: array of flexible structures ./include/net/bluetooth/hci.h:2732:43: warning: array of flexible structures net/bluetooth/hci_codec.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures net/bluetooth/sco.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures make: *** [Makefile:2025: .] Error 2 ############################## Test: CheckSmatch - FAIL Desc: Run smatch tool with source Output: drivers/bluetooth/hci_qca.c: In function ‘qca_controller_memdump’: drivers/bluetooth/hci_qca.c:1070:10: error: implicit declaration of function ‘hci_devcoredump_init’; did you mean ‘hci_devcd_init’? [-Werror=implicit-function-declaration] 1070 | ret = hci_devcoredump_init(hu->hdev, qca_memdump->ram_dump_size); | ^~~~~~~~~~~~~~~~~~~~ | hci_devcd_init drivers/bluetooth/hci_qca.c:1119:4: error: implicit declaration of function ‘hci_devcoredump_append_pattern’; did you mean ‘hci_devcd_append_pattern’? [-Werror=implicit-function-declaration] 1119 | hci_devcoredump_append_pattern(hu->hdev, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append_pattern drivers/bluetooth/hci_qca.c:1136:4: error: implicit declaration of function ‘hci_devcoredump_append’; did you mean ‘hci_devcd_append’? [-Werror=implicit-function-declaration] 1136 | hci_devcoredump_append(hu->hdev, skb); | ^~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append drivers/bluetooth/hci_qca.c:1150:4: error: implicit declaration of function ‘hci_devcoredump_complete’; did you mean ‘hci_devcd_complete’? [-Werror=implicit-function-declaration] 1150 | hci_devcoredump_complete(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_complete drivers/bluetooth/hci_qca.c: In function ‘qca_hw_error’: drivers/bluetooth/hci_qca.c:1561:3: error: implicit declaration of function ‘hci_devcoredump_abort’; did you mean ‘hci_devcd_abort’? [-Werror=implicit-function-declaration] 1561 | hci_devcoredump_abort(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~ | hci_devcd_abort drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump_enabled’: drivers/bluetooth/hci_qca.c:1732:25: error: ‘struct device’ has no member named ‘coredump_disabled’ 1732 | return !hu->serdev->dev.coredump_disabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1874:17: error: ‘struct hci_devcoredump’ has no member named ‘enabled’ 1874 | hu->hdev->dump.enabled = hciqca_coredump_enabled; | ^ drivers/bluetooth/hci_qca.c:1914:2: error: implicit declaration of function ‘hci_devcoredump_register’; did you mean ‘hci_devcd_register’? [-Werror=implicit-function-declaration] 1914 | hci_devcoredump_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_register drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump’: drivers/bluetooth/hci_qca.c:2487:10: error: ‘struct device’ has no member named ‘coredump_disabled’ 2487 | if (!dev->coredump_disabled && hdev->dump.coredump) | ^~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h): ./include/net/bluetooth/hci.h:2646:47: warning: array of flexible structures ./include/net/bluetooth/hci.h:2732:43: warning: array of flexible structures net/bluetooth/hci_codec.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures net/bluetooth/sco.c: note: in included file: ./include/net/bluetooth/hci_core.h:150:35: warning: array of flexible structures make: *** [Makefile:2025: .] Error 2 ############################## Test: BuildKernel32 - FAIL Desc: Build 32bit Kernel for Bluetooth Output: drivers/bluetooth/hci_qca.c: In function ‘qca_controller_memdump’: drivers/bluetooth/hci_qca.c:1070:10: error: implicit declaration of function ‘hci_devcoredump_init’; did you mean ‘hci_devcd_init’? [-Werror=implicit-function-declaration] 1070 | ret = hci_devcoredump_init(hu->hdev, qca_memdump->ram_dump_size); | ^~~~~~~~~~~~~~~~~~~~ | hci_devcd_init drivers/bluetooth/hci_qca.c:1119:4: error: implicit declaration of function ‘hci_devcoredump_append_pattern’; did you mean ‘hci_devcd_append_pattern’? [-Werror=implicit-function-declaration] 1119 | hci_devcoredump_append_pattern(hu->hdev, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append_pattern drivers/bluetooth/hci_qca.c:1136:4: error: implicit declaration of function ‘hci_devcoredump_append’; did you mean ‘hci_devcd_append’? [-Werror=implicit-function-declaration] 1136 | hci_devcoredump_append(hu->hdev, skb); | ^~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_append drivers/bluetooth/hci_qca.c:1150:4: error: implicit declaration of function ‘hci_devcoredump_complete’; did you mean ‘hci_devcd_complete’? [-Werror=implicit-function-declaration] 1150 | hci_devcoredump_complete(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_complete drivers/bluetooth/hci_qca.c: In function ‘qca_hw_error’: drivers/bluetooth/hci_qca.c:1561:3: error: implicit declaration of function ‘hci_devcoredump_abort’; did you mean ‘hci_devcd_abort’? [-Werror=implicit-function-declaration] 1561 | hci_devcoredump_abort(hu->hdev); | ^~~~~~~~~~~~~~~~~~~~~ | hci_devcd_abort drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump_enabled’: drivers/bluetooth/hci_qca.c:1732:25: error: ‘struct device’ has no member named ‘coredump_disabled’ 1732 | return !hu->serdev->dev.coredump_disabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1874:17: error: ‘struct hci_devcoredump’ has no member named ‘enabled’ 1874 | hu->hdev->dump.enabled = hciqca_coredump_enabled; | ^ drivers/bluetooth/hci_qca.c:1914:2: error: implicit declaration of function ‘hci_devcoredump_register’; did you mean ‘hci_devcd_register’? [-Werror=implicit-function-declaration] 1914 | hci_devcoredump_register(hdev, hci_coredump_qca, qca_dmp_hdr, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~ | hci_devcd_register drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump’: drivers/bluetooth/hci_qca.c:2487:10: error: ‘struct device’ has no member named ‘coredump_disabled’ 2487 | if (!dev->coredump_disabled && hdev->dump.coredump) | ^~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 ############################## Test: IncrementalBuild - FAIL Desc: Incremental build with the patches in the series Output: [v1,1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump_enabled’: drivers/bluetooth/hci_qca.c:1710:25: error: ‘struct device’ has no member named ‘coredump_disabled’ 1710 | return !hu->serdev->dev.coredump_disabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘qca_setup’: drivers/bluetooth/hci_qca.c:1793:17: error: ‘struct hci_devcoredump’ has no member named ‘enabled’ 1793 | hu->hdev->dump.enabled = hciqca_coredump_enabled; | ^ drivers/bluetooth/hci_qca.c: In function ‘hciqca_coredump’: drivers/bluetooth/hci_qca.c:2403:10: error: ‘struct device’ has no member named ‘coredump_disabled’ 2403 | if (!dev->coredump_disabled && hdev->dump.coredump) | ^~ make[3]: *** [scripts/Makefile.build:252: drivers/bluetooth/hci_qca.o] Error 1 make[2]: *** [scripts/Makefile.build:494: drivers/bluetooth] Error 2 make[1]: *** [scripts/Makefile.build:494: drivers] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2025: .] Error 2 --- Regards, Linux Bluetooth ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-01 12:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-05-01 12:00 [PATCH v1 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support Sai Teja Aluvala 2023-05-01 12:39 ` [v1,1/2] " bluez.test.bot -- strict thread matches above, loose matches on Subject: below -- 2023-04-28 7:16 [PATCH v1 1/2] " Sai Teja Aluvala 2023-04-28 7:56 ` [v1,1/2] " bluez.test.bot
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.