From nobody Sun Aug 21 11:29:02 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 4M9YCy5Y30z4ZYbx; Sun, 21 Aug 2022 11:29:02 +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 4M9YCy4rn1z3wgP; Sun, 21 Aug 2022 11:29:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081342; 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=rVnn7NpPU8Lubjo5654EDLE0J23rGKI7/KNvElIMsvs=; b=t1BPWFv1jHgl4qc2Z610z0Zg7SpBS7WgZcPIpxuCst13WbgNkQlu/XNDjZoWuxF8MRQoky cMRL4j/K1cUnhADCfxFatbLSU7oV3jzGHBR/90t4NaCxvF5VyfYt6eEDbTrf8iQahE9pnP z2lXs9bzhvbhVJJvDH9QkUXJkwaOtVm09gC11YlDhp8cuMJIMhSK8wvHMZat0aWNpWeTw/ pEQMMLxFasPsLWSEZtHwjj9JfrU10JR0exkbVEQklYN57DYhG6ODJmFIXK8agY5WuTk/lH so8bnVVSaXAq4f61gfNrhudzJBo5eZgOgn0c632DcGKQdDJKsAs8XtxJWbaJAQ== 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 4M9YCy3rP2z17pB; Sun, 21 Aug 2022 11:29:02 +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 27LBT284004256; Sun, 21 Aug 2022 11:29:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBT2ek004255; Sun, 21 Aug 2022 11:29:02 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:02 GMT Message-Id: <202208211129.27LBT2ek004255@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: 6467d28c78cd - stable/13 - Adjust function definition in powerpc's dtrace_subr.c 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/13 X-Git-Reftype: branch X-Git-Commit: 6467d28c78cda81aa88d48e9167fd52d96c4452b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081342; 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=rVnn7NpPU8Lubjo5654EDLE0J23rGKI7/KNvElIMsvs=; b=Vc4SHltFa3hMmr+MdAClibwo/VBm2JozsaAuQ2KUgou46kFIszWQUhwbd483aKjccKS4Qj BVoIxn7187ZMGpglvcVDV/MBYpXsDpz2oMaAvr5UVYQwpmA8MsmNefecollUs0/mJ+AlaZ mkpu043I8Y+KrNNO6FU6k78M3rKnoTdtzKPbZqwJHSPoSiqVa3KjVe8Qi7ClkdWdAWmXxh LIXp/wvyIXyjacNtB8R4IhsidHH5LJsIfBJ2VOXS9G9QepYEG0VUbZzvbK1EC37jmDPHwz kxGjluuxlfFwfz+s4eFKcqE+adQhMQgwh4YtqboaZ+WtUYWyjapcW2o60DXmNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081342; a=rsa-sha256; cv=none; b=FtCR3PxlDvfarXMdLBYCjIOKOPDaf8OP2QdRLMJqeEj9t0Tr8nUXVWYS3IzKf7/PpCaKQA l10cGtGS7y18+zx7yF7SJCKyO8WHJblau2rIXWYYMtTlQL57vXbTASKCg/p/22Wb68LsKw DV5lhQpH8Cj9u8fbh51rq+DkcMeSN11kb+0uLEPinJZmUUNU276q/Qh+sJVrQ6p8cnS07a XKLdXoVVLcdwoXSt7cMwnYy9s1zgxJCROb4xjwJinBaWMaeirbBBy44qQAzcsZGsFAYLCb BVt56GahLKeoBuc/2dg6FLgiIVoodUEWlibfwxDf58uqCj3Qf44JqIoDWJH0zg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6467d28c78cda81aa88d48e9167fd52d96c4452b commit 6467d28c78cda81aa88d48e9167fd52d96c4452b Author: Dimitry Andric AuthorDate: 2022-08-14 18:57:59 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:10:50 +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;