From nobody Sun Aug 14 19:27:50 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 4M5S9g12R4z4YvN7; Sun, 14 Aug 2022 19:27:51 +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 4M5S9g0W89z3LdH; Sun, 14 Aug 2022 19:27:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505271; 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=dwNUlReQnZ3AulS7Dh+PqB2zQC+x6vgg800XMZivCmM=; b=QiduClsyzVyugDDW+2Upa35MZMK+iipgjfPYszqzyS/TKH3LureIZ6DaafDAdLgGXFnrJ4 5p2tdvq0pIUWPVwqg2DN3KC83gpd9NB5rzeWgBlJdIhNLqa+jLt2jQTlL2A1scX9p5BrtQ 0HrPH9es5aBRrfj1LIvdv+ilFw+r+7FuNeV9RTFzZ4yxnZMeZMJTLLymbVX9NzYLz81s93 NoJeAkLoN/CCDTGAilfbtJGu7uB0hdrUA8xSKz7Ed06hIlepOEzGS7kbnfO6n+eDt6W2ro 6/zWETDwrNRFOoC44cJzrqIaPdiQiG8IeQNHY3q4ddJs/m4HgBs+lZ4HA3iVSQ== 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 4M5S9f6gZRz12Zw; Sun, 14 Aug 2022 19:27:50 +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 27EJRoYg044202; Sun, 14 Aug 2022 19:27:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRod6044201; Sun, 14 Aug 2022 19:27:50 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:50 GMT Message-Id: <202208141927.27EJRod6044201@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 7357c2e5a6a7 - main - Adjust function definition in arm'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/main X-Git-Reftype: branch X-Git-Commit: 7357c2e5a6a7c74eaf5c6732723df375ef4188b5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505271; 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=dwNUlReQnZ3AulS7Dh+PqB2zQC+x6vgg800XMZivCmM=; b=R9dReWB1CWDJkbePGjH7wsmKSnACLr3coqY1AM5mqkS67YEvrg9WV69YNYhiucFVvHKUdw ANgkoMIMjE1A/zFYzdUrRLKetS4DrC1VjiL09kz5T4adMQpRGoXClbTM4I5nEMOER++9j9 +mohhowFlzF7m52PRDUK1tUwdR7vzEq8tjskfXYg7bhVIJNl0UfLLt6UcwiH9n831NyHvP xwDwu/d9s49CZoPEMfWRb4AFtoFLiDiNaVkD/+1u2bgjFFmfp6yHQkkdcUKm+L/SwXPbDe DHD7gme0eGsiO9RAhh6hENKluNOUpr1VlVDjMEu48KYZ9NPeY1wZ+sSHrMQQ2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505271; a=rsa-sha256; cv=none; b=QSGg7D+Ml6wYm/DDcWkZwGXx2/GNLo/uo/lHzEUUSQxcmR3y1As0FEJ8VxpiCexxqRuWbD wrzV2SQL1IVu4YzUv+LFmFYeJHxJ7bk0XdmkKZDNvTl3Zsh61Oz864d5FJzLSwg2le99A4 oRBss3aoUHFxyb0uyKKrLs6M3CD3drGBul1zp0UX5YzNu5y1JmiV0f4YrMtYp2D7oBQoLh I+5B2899MPKwcxTxDUYRWjPVCdSKNhI7xvUjZo0mRrDPDw/K2GhD9FaTuoc54C/yLnPNY2 u6n/9r4e0eTSmeV3iAhe87ZmjKK+x12kR9aFA6LQx9yheG4MzeyEq9R3IuJeXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7357c2e5a6a7c74eaf5c6732723df375ef4188b5 commit 7357c2e5a6a7c74eaf5c6732723df375ef4188b5 Author: Dimitry Andric AuthorDate: 2022-08-14 18:49:20 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:34 +0000 Adjust function definition in arm's dtrace_subr.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/cddl/dev/dtrace/arm/dtrace_subr.c:174: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 --- sys/cddl/dev/dtrace/arm/dtrace_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/arm/dtrace_subr.c b/sys/cddl/dev/dtrace/arm/dtrace_subr.c index e98a9ded5442..367d8d75eea4 100644 --- a/sys/cddl/dev/dtrace/arm/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/arm/dtrace_subr.c @@ -171,7 +171,7 @@ dtrace_sync(void) * Returns nanoseconds since boot. */ uint64_t -dtrace_gethrtime() +dtrace_gethrtime(void) { struct timespec curtime;