From nobody Fri Jan 30 16:33:18 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f2hQQ6z9jz6Q59f for ; Fri, 30 Jan 2026 16:33:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f2hQQ2nFPz40kP for ; Fri, 30 Jan 2026 16:33:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769790798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e3T/CLNL5Iuz2Bt6wEtqS3mfymqVBtUYBUQFYd2kDVo=; b=QsErgF4mJHop1ZxXW5gc5i9vHxIuW39wJbUw25fbanDYu8jsOiZPLvJBFYytHoZeMXM5uM 7XlHmUlOsZgTYe4GM6cOldn1lURXWaHcnWfPvZ4x2fwHUFm9pLbJaQoSrFb43Zu7j9iU93 IjouCYIayQ/XBEtC2gtkjw2EY3I06XaIvMAAkpPURWvY8WAnIIGCS+8ke/E19+SYBjKKGX jwPhJcsi2N5EcxGL+0c9WvjEsLLrCc/WKAAyH5AbgEvEKDk0BQMv+Jg6CTDEMe13UFXdyS R5TfiqhStXc04LcH2b+dacSJz5EWoM9IiblbgmsV6ZeAlhrJ3p/GCj9yHp9raw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769790798; a=rsa-sha256; cv=none; b=jVBiWpCrEHjdCmOgf/3TbKWEwx+SywSqzvhTMDeHm5IqrmPgL2eiY6QgmBimi/tiUug31O YRkfAl5eqHPmwPWC0AoL3Ad/+Rg7NmPxy1dFjL2KmhfFMkzj0vGS+OfaF+c0aQ+HaHEqCn QuZiVO/EYlYYxuq4SM+0/CQoutZYzK1OZfGVacrzwCi3FAsVEnQeSts9VWRe/6OdDuqIDl SnhWZPhTxvAG1M203XywNHR73fphkmi0PN0wTVHrcdldxspj9u+SyE7C9rnI2+FoCDMNUh fxbC9v5j+Tup5LhFzHFwy7IZZETHQMBYSB0qMfcLKvt0LOMDeVxnqTakE0Qp8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769790798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e3T/CLNL5Iuz2Bt6wEtqS3mfymqVBtUYBUQFYd2kDVo=; b=iPtKIQIFZNmL3S/amSrXS9yCtKV8Daij3zDdskGj3qbg7eCIAo8L2O96g0IphFHtbSEMYZ 1r2dSgkJVW5KuZpaBKWvEbnNHxUr64KgWRt+JzXc+4Cwakr0OoEW8GMg98ZrQl5yRRlFwc g2Hnjlu4GtzsB/vzlbTpfjvv5ETgJUIPYKH9qNHlCuqFcYBkUn5xHNokeFmEk2b9ZY/eaN ON3wv29IkkFcZ8WDcvvQhZe1Edeps+DkCGz9Q0gtTZ/AKgIvvWGUtRILJ5Qz703LCopTOy o7KfyquGex95v26zAexA0k8dAc3AN/AqRmQ+WrppdYT5/7dr+4Y1LXW6ivPJ9w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f2hQQ1432znW for ; Fri, 30 Jan 2026 16:33:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d8f4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 30 Jan 2026 16:33:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: John Baldwin From: Christos Margiolis Subject: git: dcdb18bd3cda - stable/15 - bluetooth: Don't use a non-string to initialize NG_HCI_BDADDR_ANY List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: dcdb18bd3cdac4a7ab01bfaa25dda3b41cd745ea Auto-Submitted: auto-generated Date: Fri, 30 Jan 2026 16:33:18 +0000 Message-Id: <697cdd4e.3d8f4.5ce1501c@gitrepo.freebsd.org> The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=dcdb18bd3cdac4a7ab01bfaa25dda3b41cd745ea commit dcdb18bd3cdac4a7ab01bfaa25dda3b41cd745ea Author: John Baldwin AuthorDate: 2026-01-27 18:40:38 +0000 Commit: Christos Margiolis CommitDate: 2026-01-30 16:30:10 +0000 bluetooth: Don't use a non-string to initialize NG_HCI_BDADDR_ANY Explicitly use an array of 6 zeroes instead of a C string containing nul characters. GCC 15 warns about the truncation, but this is cleaner regardless. In file included from /usr/obj/.../amd64.amd64/tmp/usr/include/bluetooth.h:51, from usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c:45: usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c: In function 'register_sdp': usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c:96:13: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (7 chars into 6 available) [-Werror=unterminated-string-initialization] 96 | NG_HCI_BDADDR_ANY, (const uint8_t *)&record, sizeof(record), | ^~~~~~~~~~~~~~~~~ Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D54869 (cherry picked from commit 72a6991b80c6e6c47a3b84337f62f0a02bd30391) --- sys/netgraph/bluetooth/include/ng_hci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h index 54980e128bba..bbe9541c25c9 100644 --- a/sys/netgraph/bluetooth/include/ng_hci.h +++ b/sys/netgraph/bluetooth/include/ng_hci.h @@ -447,8 +447,8 @@ typedef struct { } __attribute__ ((packed)) bdaddr_t; typedef bdaddr_t * bdaddr_p; -/* Any BD_ADDR. Note: This is actually 7 bytes (count '\0' terminator) */ -#define NG_HCI_BDADDR_ANY (&(const bdaddr_t){"\000\000\000\000\000\000"}) +/* Any BD_ADDR. */ +#define NG_HCI_BDADDR_ANY (&(const bdaddr_t){ { 0, 0, 0, 0, 0, 0 } }) /* HCI status return parameter */ typedef struct {