From nobody Mon Jan 26 08:42:06 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 4f028Z2L12z6Px1F for ; Mon, 26 Jan 2026 08:42:06 +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 4f028Z0gGyz481W for ; Mon, 26 Jan 2026 08:42:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769416926; 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=mf6eobJIkrh/7rk8F+jI2zllo1/6YW4n4cyzOzQqF1w=; b=oahoxoZR/BXnHMJIrGz3ABYUeW8dt1LZKvnaef+lifPqpX0bh0LuiLJezbiUzlfJH/0v1d w+erOepIBvfLEw1HEyDc9Si6x5HCYq2IjlwGd7qSnE1smDJMIScC2i/pCAUHLWKII8gth4 98/lyXkdGeaxfQGC8B/U4iWfIkcu9YFehzYZBSq/08vN7GBXhmWGQyo0P8xsDbIxsiCSdW 1W4T3b4WywY3e2wwzqXOy1kqUB5nDnOrL6Bf325hGRO33ZtEQCDUS3sfkMnoV4ZaHdkMXO rBuUF+7CnnKRWga8HLksh7Frp6CWf0mA1kUTqjE/bgPxV50B4lgEsid1/V7DkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769416926; 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=mf6eobJIkrh/7rk8F+jI2zllo1/6YW4n4cyzOzQqF1w=; b=RKqewBwUU+Wm1KCeyFynZEdJas7Q9oAB+PV6G9HgsWccNOIPGnKel4aTcwvSOMuFvShI+7 2bVF/8ZoHCh4bajqsEblYcvpgz5i8SMls7uDucU218RS42vwFJs8XIgeXAEEKVr40Nnj/W x2DYWgD2jybDJ1seqNzufGo5A1DPT27bk6d4nobXPa2peqrW5wphFoZEP2O1MdC5oFuSxy zyNNotFms3xMQ796KS3WuFw/FxTFTclAWTErwIsj/mZ3Vo3M4nQPzEqArLVcDooG+GUb2g mWh8JYrfcZkw6X9Wzrawd49mxzoZVhZxERz435DPAXaeAxMZVRscBOgRFD8G3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769416926; a=rsa-sha256; cv=none; b=K2Q2zUy+KQvnr87+JE323dQTtBkARcWfk/5I60Ac8TpP9m2h9TrrP020meqW33++JV0e9w O7x32fXak+4cxW3KbJLzLGvDY/Ts5d4bbnhwn0jhPDJkYxM1Pd47id/ZO4pWntqeuPy1+x j9ce+MmA4TnBAFjPpuAbj5v5DSDRnmUVkDqj++UHWtIeiC1Ci/NWsFcw2ccd7mwoiBUa1P 5/kQIhZTxZxd3XlJ1uwEBidBKIbWiirIw0scBgPHjpepK33sJmugPV8Djq2lSzB1gM1E0P IHek6m6j3iIfO7PnkNcylP9a/+Hg+QBgh9iSTUI7M24QNRKuE/RL9M2RW+M32w== 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 4f028Z09TDz1C6N for ; Mon, 26 Jan 2026 08:42:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26994 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 26 Jan 2026 08:42:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: a4e3ff911cbd - stable/13 - vchiq: fix build with clang 21 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a4e3ff911cbdea09f42ae70ac37660df9fc8884e Auto-Submitted: auto-generated Date: Mon, 26 Jan 2026 08:42:06 +0000 Message-Id: <697728de.26994.620e3e03@gitrepo.freebsd.org> The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a4e3ff911cbdea09f42ae70ac37660df9fc8884e commit a4e3ff911cbdea09f42ae70ac37660df9fc8884e Author: Dimitry Andric AuthorDate: 2026-01-16 14:02:25 +0000 Commit: Dimitry Andric CommitDate: 2026-01-26 08:29:54 +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 (cherry picked from commit b39662fc388678db2b7b5fa3c900205252d15b3b) --- 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 a3bf60ddd450..456a19a29a55 100644 --- a/sys/conf/files.arm64 +++ b/sys/conf/files.arm64 @@ -425,7 +425,7 @@ contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq soc_brcm_bcm2837 \ contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c optional vchiq soc_brcm_bcm2837 \ 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 \ - 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 \ 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 \ diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 5e79dd2af66a..18ce026094f8 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -36,6 +36,9 @@ NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical .if ${COMPILER_VERSION} >= 150000 NO_WSTRICT_PROTOTYPES= -Wno-strict-prototypes .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.