Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data
@ 2026-11-19  6:56 Archie Pusaka
  2026-11-19  9:29 ` [BlueZ] " bluez.test.bot
  2026-12-04 16:15 ` bluez.test.bot
  0 siblings, 2 replies; 3+ messages in thread
From: Archie Pusaka @ 2026-11-19  6:56 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: James Y Knight

From: James Y Knight <jyknight@google.com>

bt_ad_has_data() returns a pointer, but its NULL-ad check returns
false. In C23, false is no longer a valid null pointer constant and
cannot be implicitly converted to a pointer type, which breaks the
build. Return NULL instead.
---
 src/shared/ad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/ad.c b/src/shared/ad.c
index 236e71950..c772d4b51 100644
--- a/src/shared/ad.c
+++ b/src/shared/ad.c
@@ -1245,7 +1245,7 @@ struct bt_ad_data *bt_ad_has_data(struct bt_ad *ad,
 					const struct bt_ad_data *data)
 {
 	if (!ad)
-		return false;
+		return NULL;
 
 	return queue_find(ad->data, data_match, data);
 }
-- 
2.56.1.708.g77570a6a1d-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data
  2026-11-19  6:56 [PATCH BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data Archie Pusaka
@ 2026-11-19  9:29 ` bluez.test.bot
  2026-12-04 16:15 ` bluez.test.bot
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-11-19  9:29 UTC (permalink / raw)
  To: linux-bluetooth, apusaka

[-- Attachment #1: Type: text/plain, Size: 1096 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/series/1215766/

---Test result---

Test Summary:
CheckPatch                    PASS      0.39 seconds
GitLint                       PASS      0.29 seconds
BuildEll                      PASS      14.12 seconds
BluezMake                     PASS      208.35 seconds
CheckSmatch                   PASS      185.82 seconds
bluezmakeextell               PASS      67.33 seconds
TestFunctional                FAIL      957.68 seconds
IncrementalBuild              PASS      209.37 seconds
ScanBuild                     PASS      709.73 seconds

Details
##############################
Test: TestFunctional - FAIL
Desc: Run test-functional
Output:
FAIL functional.test_bap::test_bass_past_earbuds_transport_acquire[hosts11-vm3]: AssertionError: Failed to acquire: org.bluez.Error.Failed


https://github.com/bluez/bluez/pull/2847

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data
  2026-11-19  6:56 [PATCH BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data Archie Pusaka
  2026-11-19  9:29 ` [BlueZ] " bluez.test.bot
@ 2026-12-04 16:15 ` bluez.test.bot
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-12-04 16:15 UTC (permalink / raw)
  To: linux-bluetooth, apusaka

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

This is an automated email and please do not reply to this email.

Dear Submitter,

This series was picked up by the CI more than 2 weeks ago and the pull
request created for it is still open, which means the series was never
applied to the tree.

   Series:       [BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data
   Pull Request: https://github.com/bluez/bluez/pull/2847
   Created:      2026-11-19 08:48:38+00:00

The pull request has been closed and no further action is taken on this
series.

If the change should still be considered, it must be resent to the Linux
Bluetooth mailing list (linux-bluetooth@vger.kernel.org) so that it is
picked up again.

---
Regards,
Linux Bluetooth

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19  6:56 [PATCH BlueZ] shared/ad: Return NULL instead of false in bt_ad_has_data Archie Pusaka
2026-11-19  9:29 ` [BlueZ] " bluez.test.bot
2026-12-04 16:15 ` bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox