From nobody Sun Aug 21 11:29:35 2022 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 4M9YDb4LDtz4ZYsc; Sun, 21 Aug 2022 11:29:35 +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 4M9YDb2llWz40Ct; Sun, 21 Aug 2022 11:29:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081375; 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=qXMl9p9I0ebofFXVq4paGyr2ovlrT4Kl/NoNAvCmdjM=; b=ltMcSSKnCjJE/95SU6317Fz5CH2swFcQRjafANI2yEB/tUAQzkgOazndE2oF5Ijp+lx3xr cAw7JjuYjnGI3z/pnTRO3W5CeZejwpqjabcq/sbJIh2uwgLjFA9jtgsGPEpSCm89YZpm3M EBPihAAir+PbiU86tRLv5XchEIagUE33LX8GiwiJT19RGQ/1OESQXW1+o6dE1myjdBp/Jr LIGzNvOyNSw0BZSx5ma3Ln24P9WXDmL7WN1XhCqzYyWD76C7HhTcnknxMlzolfeVl8uTJ3 Rbxv2IdDkriTakMvU5nGRNczU4AGKZMhCbwVMDojDv9wa/UsJaxc0cNMQh0l1A== 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 4M9YDb1YJhz186f; Sun, 21 Aug 2022 11:29:35 +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 27LBTZ1Q005084; Sun, 21 Aug 2022 11:29:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTZN9005083; Sun, 21 Aug 2022 11:29:35 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:35 GMT Message-Id: <202208211129.27LBTZN9005083@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: 77889d4ad0ed - stable/12 - Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: 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/12 X-Git-Reftype: branch X-Git-Commit: 77889d4ad0ede618664e40d1cd0257976bd2db64 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081375; 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=qXMl9p9I0ebofFXVq4paGyr2ovlrT4Kl/NoNAvCmdjM=; b=dOeRQ+YFvVqp2jemmrq7xg5KCVxd2zQ0rNpcSiTsn0q0nAJjM4M0WWWnPXpectzSVbK9XD wahJRay5nVV1ca9XhUNy+QuQ6iuWLgn648dYOiIWwmYWB+AL4iE2bfGHkj1e504Lv86vgo Pm+o2bNc9xx3/7Lck53yw4EOxgYp8AQWVQ1OVndVreTVkLTPDtKAP/V75sjhDCG8ECVWoO B7L7lbetzS9lGRsWUuvDSK7rEivvZNDBzKDljVasD53D9aSvrxoa1jKy9mfHcxcraMu8pe sxJGMrP4V5wdD4Y0FKFbnsFvdWsXWMypxkeuD1ozh3Z32iYg/L/jWbFqfja1bw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081375; a=rsa-sha256; cv=none; b=ETgZfJ312My2RC0yOZaWH9ZaXN2uQIA9XWRIwZbendIA0wzyrITmwxhbTqksvdvS8GAiZg md/HgWLZyhRIMsqua59yGiAHJZcVRvvWgSBz9Vtb11YKpdS7H0GKm5pm6LwMQrU0a/4mMx x00M/i4QM6hNPMNNaoAtwsgRBFgkjNnFhPIzTUj23/npxDcSsJ+/+1cLr+RnoFcOBBsYt/ 84gqYKifcgLkpf8kBnaBTZaEI1TWzCHcDDNSAdVtt1Gd8RErLud0oHCYzm+cuNtKPGJFTZ IjybFif7C5+B2AVaIaYaT081ECyB3Yj8AYjt92pC7Sx+UfH+KgDA9FO/+YTCoA== 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=77889d4ad0ede618664e40d1cd0257976bd2db64 commit 77889d4ad0ede618664e40d1cd0257976bd2db64 Author: Dimitry Andric AuthorDate: 2022-08-14 18:57:59 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:18:40 +0000 Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/dtrace/powerpc/dtrace_subr.c:237:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtrace_gethrtime() ^ void This is because dtrace_gethrtime() 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 7701f3015948f4ff25d4d26586c64847289325b2) --- sys/cddl/dev/dtrace/powerpc/dtrace_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c b/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c index ed171f1135e9..0707a40aa22e 100644 --- a/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/powerpc/dtrace_subr.c @@ -234,7 +234,7 @@ SYSINIT(dtrace_gethrtime_init, SI_SUB_SMP, SI_ORDER_ANY, dtrace_gethrtime_init, * Returns nanoseconds since boot. */ uint64_t -dtrace_gethrtime() +dtrace_gethrtime(void) { uint64_t timebase; uint32_t lo;