From nobody Sun Aug 21 11:29:31 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 4M9YDW6ckSz4ZYZB; Sun, 21 Aug 2022 11:29:31 +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 4M9YDW6BF9z3ynP; Sun, 21 Aug 2022 11:29:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081371; 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=RqZP4d01Rt8weSPKeg47PhVYwEuzIvzMbdexBNn+4YM=; b=pNyGH9z93fTnAdfq+ebVKLaVsfMySgUeE3/VJAKQ96xs92QZlV/8FegBiObg100PlrzU0X 6DgWy4jMo8SSTA3hGuCwTuxdl+aN05lVVT6Q7Ojhcs1w6AZGK5prh4inKozPHcdLx+NGbV +QHMfewtJFXXBNRobXFffjNsn6o8tEi2nzU9l91sLBe8YOsAr9P48cMK1aBl1FKnAltm9R gdGQD5O5yyIjNpbHwizCRnujZL2Uf3b5zrvp84YFtVl5m2pwpy0Z24mPbdq5lOMrbd5Rhe B4b5S9WM2AVDBfu1m649WKZANB43+y3aWnka6utWyC/UtgYJ28cRju3oAoRLbQ== 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 4M9YDW5JKmz17xr; Sun, 21 Aug 2022 11:29:31 +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 27LBTV4l005005; Sun, 21 Aug 2022 11:29:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTV7g005004; Sun, 21 Aug 2022 11:29:31 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:31 GMT Message-Id: <202208211129.27LBTV7g005004@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: 745039007600 - stable/12 - Adjust function definition in riscv'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/12 X-Git-Reftype: branch X-Git-Commit: 745039007600cb8899bf1b642fc68c985adf1d9d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081371; 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=RqZP4d01Rt8weSPKeg47PhVYwEuzIvzMbdexBNn+4YM=; b=pglN1o+Inx4PUJP4s02bv5H6lpH+wkutqUvyl9VDvJDABsCuMyaWqRnqRRPvZBsmYOljD8 QxXfuecMMv1xqeWQfiB9CYhcb54hsmoQJvurbCfqNJ2woiusggpmvTsFQY1Ne93aIgw342 D/YyStH/Y+OATbQKFp42wz1RBP+Fdjr6xG5eBZoNUIU/+E8nt/sJdrLX0tsEJrZaLzTOtS S6aCUc4J/AbOTpDfQ0uZTXFfVzVnDpx7whBblzy0lhNP3rF43AvT6/2rvb2uxzTKcqfpEA ApRmd3AUSNQSwQ0tP1yFt/+FhQfZeYfLEshwNkhQFzDLkF2wTtPms10o5dzdLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081371; a=rsa-sha256; cv=none; b=hzaR56t0LIwScc1RXius1nn/9g50e0OjYUh1x4JLHMsHE3YN1dZjHMBuk/1bOE0rceSyQt csmzygxaF8cMC42Z21xSosvLMONDo8WU6NHp/dhTuE8Qy4H6Fsnzs66EiOCYTM1w52hB97 ynIX5jpzhvNuhIS7WBJK6bzVbdQQFpUc1uVbuMWUd93GMNR86rxXi9rUKquYD5FLQvh2gw hRl9vb6kYEarZ59me58YaXbaxKgLueLRcRYl/gR+CdvN72jbJMJmZflTbd98HWfPZNSFT/ kobgjBv/FBEe2ut6ePY3Iz1ibTmbO4PZ5AnYvvXswnVDkq0WF4jM8Wo2obqiEg== 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=745039007600cb8899bf1b642fc68c985adf1d9d commit 745039007600cb8899bf1b642fc68c985adf1d9d Author: Dimitry Andric AuthorDate: 2022-08-14 19:00:34 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:18:11 +0000 Adjust function definition in riscv's dtrace_subr.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/dtrace/riscv/dtrace_subr.c:165: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 0beb88a242afbf7923e97cf317640d0f29310ca1) --- sys/cddl/dev/dtrace/riscv/dtrace_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/riscv/dtrace_subr.c b/sys/cddl/dev/dtrace/riscv/dtrace_subr.c index 68d98db30c83..fb935c751a0d 100644 --- a/sys/cddl/dev/dtrace/riscv/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/riscv/dtrace_subr.c @@ -161,7 +161,7 @@ dtrace_sync(void) * Returns nanoseconds since boot. */ uint64_t -dtrace_gethrtime() +dtrace_gethrtime(void) { struct timespec curtime;