From nobody Fri Jan 16 14:04:40 2026 X-Original-To: dev-commits-src-main@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 4dt1nP2BBMz6NKgZ for ; Fri, 16 Jan 2026 14:04:41 +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 4dt1nN6gH9z3CnR for ; Fri, 16 Jan 2026 14:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768572281; 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=3R6EUC+E7TdkYIDFdoZw7MUPdfoOwyu8eQjT5c27IF0=; b=auL0aJkemvNQbO0FhQv2GbcDTkBkZO0wfyBjI1pPZne7MPQO8VK7P3hUCr1jI7VQwGnOhl ccuB7JX8ub3sYkkWsA78JAycb0LgWg6zjxa3uvUCGYzbQBMe+OOpbnkAWJKMNBuM0FQpKb pfIMf/1WYBxc4qwe6KfFO/JEtyZAnff7i4GS6N30P3JZvp7AADzTL2o7Cwyt4K3Uv73hDt 3RqyW+bdDJBHlR+oEVzsBzNgGvjsk96Jlru2J95IdjOA/CrSXliS1AxNrjQigO3cSoRwbc vrDppw9b7Ma4IHXTRQd1KMF5Cpw0hwyxTrTed8+2OelIXwMJ+hsOumF4o/vm/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768572281; 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=3R6EUC+E7TdkYIDFdoZw7MUPdfoOwyu8eQjT5c27IF0=; b=nqUiig5ZWz4XAYY+wCZSfiKU/JokEtoW8epSEQQjEFGMNmRCxGyY7IHlmBtg2mdFppzTls XTthVDWs8Q3BGM+xIY3LCOx7IhnzDvF54oBHKjMVAtW266ttgx6HIRC2gb598S4qzC1CCV 1j4L4AYlEPngBRPhmfetrHFpEDg9wFfH0Eosvup6kbIBzdBAg2279MQJ0dNggh4LXJqaIQ WsQZODVaxrJtRYezZO8zoDdg59zR1QP8VIwZ5CdiqcfqsFX/H8eODJyNu7hGlmLA1XfRr9 sp6okU5Cbq6RnulR8o38S0g+yozCfwlXHgikN7rM0eCREsasHlclmsE5CYyqMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768572281; a=rsa-sha256; cv=none; b=clVBjf6gloYaSDeo3Yl7BwvT/KUaC/SEdSN4wnF0NdhQF1oC+1mn8zWxebuM8QazBy/jzx Fp8ctGiMXZb/k4InuYQ4zsMo7KhnCHnicQ43Mk859HrhNKv49PECPGUk51ejQEUREILZHZ 1Wh5RapAvmHIFbIHCbhg9oYShWvAiSdhdYfZw/fLIWcJ7OqdrEZpyMW88cG3T1xWvNR+8r TEmvk6b2TXF2x2KfKZTJPCNmEvJyEpHLOEhUDQhTEpcnvQXAH2dJXC+aFf3R8tV/+22LqP Jxq1t0Vce29uMs43YIOWFHokL5NSaAUk4zT579LsbXy7cphHnMz/VZQTDrLIAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dt1nN5jGxz1SB for ; Fri, 16 Jan 2026 14:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id a964 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 16 Jan 2026 14:04:40 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: b39662fc3886 - main - vchiq: fix build with clang 21 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b39662fc388678db2b7b5fa3c900205252d15b3b Auto-Submitted: auto-generated Date: Fri, 16 Jan 2026 14:04:40 +0000 Message-Id: <696a4578.a964.6d78ea54@gitrepo.freebsd.org> The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b39662fc388678db2b7b5fa3c900205252d15b3b commit b39662fc388678db2b7b5fa3c900205252d15b3b Author: Dimitry Andric AuthorDate: 2026-01-16 14:02:25 +0000 Commit: Dimitry Andric CommitDate: 2026-01-16 14:02:35 +0000 vchiq: fix build with clang 21 When compiling vchiq with clang 21, the following -Werror warning is produced: sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c:728:27: error: default initialization of an object of type 'VCHIQ_QUEUE_MESSAGE32_T' with const member leaves the object uninitialized [-Werror,-Wdefault-const-init-field-unsafe] 728 | VCHIQ_QUEUE_MESSAGE32_T args32; | ^ sys/contrib/vchiq/interface/vchiq_arm/vchiq_ioctl.h:151:40: note: member 'elements' declared 'const' here 151 | const /*VCHIQ_ELEMENT_T * */ uint32_t elements; | ^ While the warning is formally correct, the 'args32' object is immediately initialized after its declaration. Therefore, suppress the warning. MFC after: 3 days --- sys/arm/broadcom/bcm2835/files.bcm283x | 2 +- sys/conf/files.arm64 | 2 +- sys/conf/kern.mk | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arm/broadcom/bcm2835/files.bcm283x b/sys/arm/broadcom/bcm2835/files.bcm283x index 44976f34d35a..cda5a28d3b76 100644 --- a/sys/arm/broadcom/bcm2835/files.bcm283x +++ b/sys/arm/broadcom/bcm2835/files.bcm283x @@ -32,7 +32,7 @@ contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq \ contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c optional vchiq \ compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_arm.c optional vchiq \ - compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" + compile-with "${NORMAL_C} -Wno-unused ${NO_WDEFAULT_CONST_INIT_FIELD_UNSAFE} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_connected.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_core.c optional vchiq \ diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64 index ee1108eca0d4..2efdb21f66ad 100644 --- a/sys/conf/files.arm64 +++ b/sys/conf/files.arm64 @@ -629,7 +629,7 @@ contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq soc_brcm_bcm2837 fdt \ contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c optional vchiq soc_brcm_bcm2837 fdt \ compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_arm.c optional vchiq soc_brcm_bcm2837 fdt \ - compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" + compile-with "${NORMAL_C} -Wno-unused ${NO_WDEFAULT_CONST_INIT_FIELD_UNSAFE} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_connected.c optional vchiq soc_brcm_bcm2837 fdt \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_core.c optional vchiq soc_brcm_bcm2837 fdt \ diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 4e18a1300791..e86ffb684f9a 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -37,6 +37,9 @@ NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical NO_WSTRICT_PROTOTYPES= -Wno-strict-prototypes NO_WDEPRECATED_NON_PROTOTYPE= -Wno-deprecated-non-prototype .endif +.if ${COMPILER_VERSION} >= 210000 +NO_WDEFAULT_CONST_INIT_FIELD_UNSAFE= -Wno-default-const-init-field-unsafe +.endif # Several other warnings which might be useful in some cases, but not severe # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually.