From nobody Thu Sep 18 09:58:12 2025 X-Original-To: dev-commits-src-all@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 4cSB0P2bPVz686bw; Thu, 18 Sep 2025 09:58:13 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cSB0P1t0Nz40nW; Thu, 18 Sep 2025 09:58:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758189493; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j1TL1uGhAyAjCGufOJRNpclzq8m9AFCgXyhoZkWjfrQ=; b=Z7sEuJzZ44ks2SLlNjFJ0U8GZgFZRnjw1OgVt4EAZzgrWfzkm2YfUNETq3YVwVfWdVfsCp ydQBqoUSLAIZegqF4TIoRyLea195s6jKnAyhvJJClg+v3m7IpbQE7O8FNvins0CU7oLzhW Y23eFRfKSJ1x89wWbuxhm4ONeelScU4RPMtQhGTv7phyWzCh2oZyt4iT1+mKf8YTCTTlNh Z5b20GA3PGVudsK66g5sQCc5J5LoVFS1rvcNC2NUGgGva/OCxTAQGPcu6snODueY3XYrS5 ix4zv0VWABzBa/gqn936Vm0CMzie6Y5NUgMkMvZOIW+lHe24/m1jpM2m6I+wgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758189493; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j1TL1uGhAyAjCGufOJRNpclzq8m9AFCgXyhoZkWjfrQ=; b=cuftgcXuvo33ialU2XTajy6fM/Xphpz9rWg7KaTkzpPIm1kQ4a/+Nu90ZAiNuZBihn62H8 Xv3VqpvjsAnFHZXE/YxNU2thpKCZzHb6HpWu13RSZy/6oe9MpQNnoW6MeiJk908cT5Y0oP JqDubtsgwMJ9qAdRjQaKu0T1eG+63wvP8zagZXUFdM7d84o0wwnsfGokjJP14RNirYJuN4 FGk32Je3GcJb+1yR3EGBgydWv8TGQJNlS3CaKx5Elm8p9hv/sDEdD+5mqjfJBrqno24cFD eBk1YOTJb90YeF9hoTO8C+bnbNaugp9g9w8iI8gOMh5niwNZuP32A38E9Ry1cw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758189493; a=rsa-sha256; cv=none; b=RqmyDcGUGcRFmm+Q17ThTW9rjhSSOzmx2m0v/SQfIjtiI6EWQIpuhupQiPffJNSx8+sBnG XQteAmzPNtB1/H7nwSZTVtWrKLFdQyyysq5/whGYnvmm1ELQZ+GP5iKik5xHqRQZVPLt60 EcXfHDWLc4otBLk3cO1XfzE6XaCT9FgdmAfMGzPqVD9nLzADxaBZBbHZm+Q4NRt3c0x+9A g0Ni1wY2YafKBhCnrX+BOv08dc8RWI2jofGkmmzW0eTQY1OQHRSfqKRmf5ylv8bSLsYKmO 0JEp+/7tUDI6SbXWqMoseg7+7kE5C/9Giw3migJW0hxQSKfIs2JyEkXHgVaKtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cSB0P0ytwz160R; Thu, 18 Sep 2025 09:58:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58I9wCEq034778; Thu, 18 Sep 2025 09:58:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58I9wCan034775; Thu, 18 Sep 2025 09:58:12 GMT (envelope-from git) Date: Thu, 18 Sep 2025 09:58:12 GMT Message-Id: <202509180958.58I9wCan034775@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 8813774cebc9 - stable/15 - ng_hci: Cast NG_HCI_BDADDR_ANY to const bdaddr_t * List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 8813774cebc975d7c031beb9b162007bde959f3c Auto-Submitted: auto-generated The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=8813774cebc975d7c031beb9b162007bde959f3c commit 8813774cebc975d7c031beb9b162007bde959f3c Author: Christos Margiolis AuthorDate: 2025-09-15 13:09:42 +0000 Commit: Christos Margiolis CommitDate: 2025-09-18 09:57:07 +0000 ng_hci: Cast NG_HCI_BDADDR_ANY to const bdaddr_t * This is needed to address some compiler errors cleanly, where consumer functions want this address to be a const pointer. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D52310 (cherry picked from commit 680f9acc3657efcea07d8ac0954645b6eaf8dac8) --- sys/netgraph/bluetooth/include/ng_hci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h index 44a14e62f4ed..ce3291770740 100644 --- a/sys/netgraph/bluetooth/include/ng_hci.h +++ b/sys/netgraph/bluetooth/include/ng_hci.h @@ -448,7 +448,7 @@ typedef struct { typedef bdaddr_t * bdaddr_p; /* Any BD_ADDR. Note: This is actually 7 bytes (count '\0' terminator) */ -#define NG_HCI_BDADDR_ANY ((bdaddr_p) "\000\000\000\000\000\000") +#define NG_HCI_BDADDR_ANY (&(const bdaddr_t){"\000\000\000\000\000\000"}) /* HCI status return parameter */ typedef struct {