From nobody Wed Apr 13 23:09:28 2022 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 B27E11B40A09; Wed, 13 Apr 2022 23:09:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kdyw93Kchz4lnl; Wed, 13 Apr 2022 23:09:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891369; 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=N82mdZWXqAz2SeKqnjU/Xrvzpiy0XFK3MS5luw7LRjw=; b=BGflKy3dL3HNh2IWM+TJ0LN/DX+Eoj7VPx4HRLspA8p0Agndye+ezCMZhp0FPMOHdcQVVv ZBT/NCAnwB1k+oDPGJMTja5iTqV4n4pcpwMtq1roj4pEzkVjWgkNcK/OV3VmNiYV8kLsEZ zkZdrJoW7smwKkfiwweahE5GUQDg4LUfa36M+sVHaeQu8cZoWVE9KoweVvn9YeqFNNomIl 0XgPZJ5LrEsspjVVIj5lhBAUQSHubvSzY8i6jS9I3af2Z1VJW6SaVDCXkd68F0GcXM/EYn R2LZDaXerB8R22z2mbEexsBSH7j9fxkUzSGgXPrNmNikVEN48OAhW9YZVgKB7w== 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 0D1E915261; Wed, 13 Apr 2022 23:09:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23DN9SaG074439; Wed, 13 Apr 2022 23:09:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9SVk074438; Wed, 13 Apr 2022 23:09:28 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:28 GMT Message-Id: <202204132309.23DN9SVk074438@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: a95c70012bc3 - main - zfs: Disable -Wunused-but-set-variable for dnode.c. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a95c70012bc318af325c1cc6da2fbea305d8afa4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891369; 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=N82mdZWXqAz2SeKqnjU/Xrvzpiy0XFK3MS5luw7LRjw=; b=GtdhhBbATsqREl4hzCEYw/LEBZ1hUBO/w+fKa7QltygN76TaQgIoqMLK3H5tcU0cgBpiSs YmVOO15e+JuABvOZk4MR56nivhGJ9YUy59sQqn8J65ygV+o37WD4z17ljt35HEI2wLeYMc nUf+OAQHK1COQs93b5s0lbqOh3W2P/uSB6rTDKMYf3xD/R25VCx9M4TGH/Tcr5S+h4DR7w 0NKYF1C0RLBG4FCwjoyvwHcHjr4llxR5L8sRJVR/qHocTV4hScac/orE/0uKMfcG6Xw3l0 KdYMhRMe+lP5KQVTuiDh8hCZvgKTdWbxMCldBvKTlLSeln9GjMI8PndeIB6DLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891369; a=rsa-sha256; cv=none; b=cVpA9B5u6xAe+i6mxjKnJhC7/c0F81oW6+BIp0z/DWTniZROBo7Z+36LSpzfzCkBloHlEe QKsPXKSTJc5p2X77r/xlHZ5fWv5naclONwKADUeMOLG0MSgsGROAsIxGvMHETXv59yf58x AkVKT0MSOMqX1k01l4skkqueY6fpGH2tZYiQTSHrEOY3yeojMix0FRAQ1BjwoA0ihOxv8M EsluWxPLYYIljyfXrzsE3EUmpBIr1/dN/D5k29dxivZUL7aVZTx8gIbwtwx6nHfyJxhCbG +O+IQ//DJv9lCrDcxYWIwikuQyD0mKq5ZRxxF/hAuMQbvpF1lxdbb4zmjNmZCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a95c70012bc318af325c1cc6da2fbea305d8afa4 commit a95c70012bc318af325c1cc6da2fbea305d8afa4 Author: John Baldwin AuthorDate: 2022-04-13 23:08:20 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:20 +0000 zfs: Disable -Wunused-but-set-variable for dnode.c. dn is only used by DNODE_VERIFY (conditional on ZFS_DEBUG) in dnode_special_open. --- sys/conf/files | 2 +- sys/modules/zfs/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/files b/sys/conf/files index 44b3982c0edb..e90e3e0ac5b7 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -266,7 +266,7 @@ contrib/openzfs/module/zfs/dmu_send.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_traverse.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_tx.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_zfetch.c optional zfs compile-with "${ZFS_C}" -contrib/openzfs/module/zfs/dnode.c optional zfs compile-with "${ZFS_C}" \ +contrib/openzfs/module/zfs/dnode.c optional zfs compile-with "${ZFS_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" \ warning "kernel contains CDDL licensed ZFS filesystem" contrib/openzfs/module/zfs/dnode_sync.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_bookmark.c optional zfs compile-with "${ZFS_C}" diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index 086d10a23730..510511a3e118 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -339,6 +339,7 @@ CFLAGS.zprop_common.c= -Wno-cast-qual CFLAGS.ddt.c= -Wno-cast-qual CFLAGS.dmu.c= -Wno-cast-qual CFLAGS.dmu_traverse.c= -Wno-cast-qual +CFLAGS.dnode.c+= ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.dsl_dir.c= -Wno-cast-qual CFLAGS.dsl_deadlist.c= -Wno-cast-qual CFLAGS.dsl_prop.c= -Wno-cast-qual