From nobody Sat Jul 23 08:58:55 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 4LqgG81Pswz4X73Q; Sat, 23 Jul 2022 08:58:56 +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 4LqgG76fTPz3ggs; Sat, 23 Jul 2022 08:58:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566735; 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=Wm9GHA5e74+928jO5eSzvNKd9EtGjADEN5U8+/FWGr0=; b=k6CGuzqdD8aioWQqzbwCVdXD749OlHKh11VjaEYAp7x9RJYYJnyPaddoaPOd6+CcwEiNRn oDHmSTJvggg9rgwubn3xPBN9rAivyfHv/95GKN6ipUqiDA3vHvmsVhuqt6lXUmOaSzEC8V HtE0ETAsyoTIK2luuinhQg3zi/UXzXpYmn3TM7Evc12qJoSgYG+hQKbj/8EwIn0uO6xPn6 E07zbcGkJVJQ/c5wDFVUzt62jnODpCKot29b0Lo+TaOakjzSQ4H6ba/SFZVaRotSzFeA5F SUSJOpwMOCdj3YRFv46Fov3850mTmRpAWI9y/eMJtm+zilfZ26i/PBEHCnvJMA== 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 4LqgG75QxtzYw5; Sat, 23 Jul 2022 08:58:55 +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 26N8wt5j013215; Sat, 23 Jul 2022 08:58:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wtRF013214; Sat, 23 Jul 2022 08:58:55 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:55 GMT Message-Id: <202207230858.26N8wtRF013214@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5bdaac89aeec - stable/12 - Adjust dtrace_getf_barrier() definition to avoid clang 15 warning 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 5bdaac89aeeca37c305e1e2af202b2698078aeb7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566735; 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=Wm9GHA5e74+928jO5eSzvNKd9EtGjADEN5U8+/FWGr0=; b=fSdVf6j7ipEZikak9swC75rvHL4c9YoeuKNdYX8mw3Asycp5Q38384wYrZYQjY4u5Sw5ay 1plQeUwFGZMgr5O2b543Tiu1wBzUFBdW024sR2blSmSA0QWV8yYaNIxJGxOlXeD0f3byQQ pH2/S555ib11ZwVAJrU7z5xOMmmfcH3fCLBeVDOKNHi/xZW7YmXX6tYv5mmvsJn494vaim wsY3Xgxr5MRXNjV/V9rLemFH+9GuqGTT37gh/2z2GPxTuzWMAGKSLDAPI89sjxpRPWEbct 28u+YUFIpN1nRo+Es4lkz3cwYOIeaim0SeTm2/E3Bmi/hIRSe0iEdvkNJij5EA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566735; a=rsa-sha256; cv=none; b=KZmttxVFAo57V08/yqK1SCcTtGLaUtZjCZDBI/FzRH6s6EiohofjXL3Mw4rOCMVjTLSo0Z AhbJt3K87lLbGLu6kxvrb/z/+4iU2nkkIobFoMhCFEXvGO76N+s2uJEfwVk/+rL0ch6Qwj jP9+1OL4JVcXv/WW60Ejl3sq+cBCeGyQdssb+mkSqPkDgggQg6dwrEZsYsUG7nyc60f2oW BD2jsFDtUOMV3Ob9wN3RKd2N9qmMPzrXOL5uaX9/c79Z7Cua6CSG0gzleHenkCJmVUFpYh J0SlYq5xzed6ZGlorBJwS3MldGPAmYJy/xtcDAzBGZtWKqA/OTTy9k0+R+C3iQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5bdaac89aeeca37c305e1e2af202b2698078aeb7 commit 5bdaac89aeeca37c305e1e2af202b2698078aeb7 Author: Dimitry Andric AuthorDate: 2022-07-19 18:46:18 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:41 +0000 Adjust dtrace_getf_barrier() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c:17019:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtrace_getf_barrier() ^ void This is because dtrace_getf_barrier() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit bd0e3cc2e71079f54785b7a395faf3a66426936e) --- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c index cab8c334d082..e9ba857726e9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -16988,7 +16988,7 @@ dtrace_toxrange_add(uintptr_t base, uintptr_t limit) } static void -dtrace_getf_barrier() +dtrace_getf_barrier(void) { #ifdef illumos /*