transport: Fix build with A2DP support disabled
PATCH 1/1 transport: Fix build with A2DP support disabled
$ ./bootstrap-configure --disable-a2dp && make
[...]
profiles/audio/transport.c: In function ‘media_transport_update_delay’:
profiles/audio/transport.c:2653:33: error: implicit declaration of function ‘a2dp_avdtp_get’ [-Wimplicit-function-declaration]
2653 | a2dp->session = a2dp_avdtp_get(transport->device);
| ^~~~~~~~~~~~~~
profiles/audio/transport.c:2653:31: error: assignment to ‘struct avdtp *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2653 | a2dp->session = a2dp_avdtp_get(transport->device);
| ^--- profiles/audio/transport.c | 2 ++ 1 file changed, 2 insertions(+)
profiles/audio/transport.c +2 -0
@@ -2643,6 +2643,7 @@ void *media_transport_get_stream(struct media_transport *transport)void media_transport_update_delay (struct media_transport *transport,uint16_t delay) { +#ifdef HAVE_A2DP struct a2dp_transport *a2dp = transport->data;/* Check if delay really changed */
@@ -2657,6 +2658,7 @@ void media_transport_update_delay(struct media_transport *transport,g_dbus_emit_property_changed (btd_get_dbus_connection (), transport->path,MEDIA_TRANSPORT_INTERFACE ,"Delay" ); +#endif /* HAVE_A2DP */ }struct btd_device *media_transport_get_dev (struct media_transport *transport)
Signature · 1 line
2.51.0
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=1001555
---Test result---
Test Summary:
CheckPatch PENDING 0.26 seconds GitLint PENDING 0.30 seconds BuildEll PASS 20.01 seconds BluezMake PASS 2523.90 seconds MakeCheck PASS 19.96 seconds MakeDistcheck PASS 185.95 seconds CheckValgrind PASS 235.61 seconds CheckSmatch PASS 305.31 seconds bluezmakeextell PASS 127.97 seconds IncrementalBuild PENDING 0.33 seconds ScanBuild PASS 911.05 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 11 lines · On Fri, 12 Sep 2025 02:32:19 +0200 you wrote:
$ ./bootstrap-configure --disable-a2dp && make [...] profiles/audio/transport.c: In function ‘media_transport_update_delay’: profiles/audio/transport.c:2653:33: error: implicit declaration of function ‘a2dp_avdtp_get’ [-Wimplicit-function-declaration] 2653 | a2dp->session = a2dp_avdtp_get(transport->device); | ^~~~~~~~~~~~~~ profiles/audio/transport.c:2653:31: error: assignment to ‘struct avdtp *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2653 | a2dp->session = a2dp_avdtp_get(transport->device); | ^[...]
Here is the summary with links:
- [BlueZ] transport: Fix build with A2DP support disabled
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=61d3e447f9d4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html