From nobody Sun Aug 21 11:28:57 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 4M9YCt1PZtz4ZYW8; Sun, 21 Aug 2022 11:28:58 +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 4M9YCt0fdgz3w5h; Sun, 21 Aug 2022 11:28:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081338; 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=PQXOytD1LSX3Fj+Bh+LD0P0CGSRxO5Z2zpRR8eTJMGM=; b=i21Vol5zz8Q4VIurKCGkW9vqqoNgI7D4o6B2WVNdIUDnPNV1XS7LzAgW/8OkKEXwKqON6p JZWBQf9YdJoPpElg4N/C6CJbmBsl8B3heJSBVc2vTB8v/u4jl5omkZvdqEUyMy0piqYbcD lAEQBfURYkuSkN2kUMB0Uz/BorDIlPR9Zsp6jloa2Xk/+s6F659AqkGePEa1M1nK7RRzof HvFQU/prr5WhTFDlSJ0iU8r00ZDZDe1oML22OurRejn9Bt9bPx1Uv7EGnT9h2VFz+Mz2VK wD5aNXSHdesSOx4LOr1blXiZY/kewvNYvgZiQySlezbNFsZE+VATlRV6bttTag== 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 4M9YCs6mHHz1891; Sun, 21 Aug 2022 11:28:57 +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 27LBSvsr004122; Sun, 21 Aug 2022 11:28:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBSvMl004121; Sun, 21 Aug 2022 11:28:57 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:28:57 GMT Message-Id: <202208211128.27LBSvMl004121@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: d669421c9884 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: d669421c98847cb2e2e08bc843ee08d957347a3f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081338; 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=PQXOytD1LSX3Fj+Bh+LD0P0CGSRxO5Z2zpRR8eTJMGM=; b=KLTU7xd7+rWoOBt+NkogVKqRCFKD3D4tJqp1nFkh/ZVFNQJd6agUMJ3ce1TxA83PqKkWar CUfDZ8soNkCYQKKJrfsrGApjeSufffEsuwtyjCFwsVdACKN5XfIwIZtu1SDE/N3VFDNfrl IC7uEf4/K9kEmyNE5iZSwoYjKH4o727hUD8PCotQft9g3N7tkE+lGipKMFfa5dni0ArOVz MY4ztTbuA9k+rEcp601Nfm12+cCWsgCCQ1bqAvC+6DE8jSQWJ4gC41C0mKW0jpBNtjM4e6 SErMizVWtY7YmNIJdmLsRj54ZgU3D2OkmJ3hZOvbl/Ps9VQLvy9Lstr0bxTWdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081338; a=rsa-sha256; cv=none; b=qmk3X+hATX3bQ3GSh1Oj+KfQBOrDbt6tc9bUx5cYXjmC2mxo5YpAIrJOEMtQ4/9av89ZEz TpGmghxaZwDYgvFWOuU8hpviAHxVdggbMj0x7XYdh+jQVFEitLFyYaNxvW6ayXUpdGsu2j QQwDJmMmHkYV7QTLjECLJgLgJQ7pORUxXmycOweBqX12rwY4ox1L/WAXhcExOGrV/4vA/u 3OwGmtQBG3z2wX6qBC2gNhzjWnAVXokhUWQJftdB9iHLIZt6+9/AwjUjmyR3dVoRAC9nVT bFs9wliYnxImm4d/7iKQOamstM3fc9huoEHN63+4LOFSTAyHdWYN2njHB+E2Jg== 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=d669421c98847cb2e2e08bc843ee08d957347a3f commit d669421c98847cb2e2e08bc843ee08d957347a3f Author: Dimitry Andric AuthorDate: 2022-08-14 19:00:34 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:10:49 +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 c1ac339b3a26..964be9571098 100644 --- a/sys/cddl/dev/dtrace/riscv/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/riscv/dtrace_subr.c @@ -162,7 +162,7 @@ dtrace_sync(void) * Returns nanoseconds since boot. */ uint64_t -dtrace_gethrtime() +dtrace_gethrtime(void) { struct timespec curtime;