From nobody Sun Aug 14 19:27:53 2022 X-Original-To: dev-commits-src-main@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 4M5S9j32k1z4YvLM; Sun, 14 Aug 2022 19:27:53 +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 4M5S9j2bxpz3Lqk; Sun, 14 Aug 2022 19:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505273; 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=HqOskUDP+N8u27oR/Z0GJiJBnI+j+m4FBcPBQYRo7SQ=; b=kq8ED5mB15UOUKQYysE1a1U2eHT7GX9e6y/KneH5sebtCpOwiFrJ68l7fLxDPSDGC8i9x6 12rVzEM4q33Hv2aQCvAavHDYO+gLZLp2hoUXMTcBn/I6WMaQFFDXQ46LmVub2utYjz1oqo rkxU0plH+HvBCCFhkymxT+LlOmjVv5EqWqXjqHgX3uXsU1FKz9d90GAIGp9v+TwnuM73za TkKkGRAD+s5Jx89lsg7Wz48CYR0YuMPu7TW6YDMTs0RbmdXTlBWLXZAkJKru+2899EakQk K0DDyzoR/aQttxFkZEf4wGP0RJhYbJzkhlW0P6mO3getjXjeVhOjBbL885XNww== 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 4M5S9j1gmkz12CV; Sun, 14 Aug 2022 19:27:53 +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 27EJRrgb044257; Sun, 14 Aug 2022 19:27:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRrfh044256; Sun, 14 Aug 2022 19:27:53 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:53 GMT Message-Id: <202208141927.27EJRrfh044256@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: 0beb88a242af - main - Adjust function definition in riscv's dtrace_subr.c to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 0beb88a242afbf7923e97cf317640d0f29310ca1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505273; 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=HqOskUDP+N8u27oR/Z0GJiJBnI+j+m4FBcPBQYRo7SQ=; b=HxG7Ar/sVrEzIXxzgSJexZfDZcUcqcWnHQ7CjgAOS143TZxHkeVQ3LCKwYqjrLHnF16TLL DgpJJ26HhlugWrD7QlVq3NQwZXynikOv4Il9svog+OKs/bSGXuNFBhrFk1st88wn9zvs6x CO2bxNgOmKoJMnNDqUyGTjQQsdM9XrEbKpTFF5hTq2gel3IkXgqJXYARdS5Lqyyvl7Sut+ nqoamppeI+gRSfhxnggl7tjtnrmUom+JDqKdql1z5xQomSuI8DmR5D15/dvTq3U8KMIK84 UQ71+oU6ZH3z+aAfw1oh2WcofXqswvhow9md5n7uK3VoxV32fx5huceF9Xx37w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505273; a=rsa-sha256; cv=none; b=flhf4G5nHVT1n85OFaxXrbrIa9tqkr70X1bVMHWyB3dbOOVO4GA68ZE/QO7sNkh+JUfMLF ckeM+bhm/jsdPxK6rZhKfnJ/2ZXiegUDB7YT2Jllio/Q0m71Ki2b+9C58oEbwmUIlhvt3V hwJpxV+KPW5OTpc4ruZD+UN060aERXasiH6jCJOT3Te8buyjXJBa/T8R7kFqXoYWnbXa9R +Pq/IaJFfGgilz0WtNsib/z2fX6JiMTTZlQ9OF6+27aQzLHw9YibS93EPZeQVrx3QtVgVD Kp6CEN5TLBEpy86OYDxTACE52kftwyPZ4ydc73uwWyebRggiYrw2vFcwnk/9Zw== 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=0beb88a242afbf7923e97cf317640d0f29310ca1 commit 0beb88a242afbf7923e97cf317640d0f29310ca1 Author: Dimitry Andric AuthorDate: 2022-08-14 19:00:34 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:34 +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 --- 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;