From nobody Sun Aug 21 11:29:33 2022 X-Original-To: dev-commits-src-branches@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 4M9YDZ69cWz4ZYZJ; Sun, 21 Aug 2022 11:29:34 +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 4M9YDZ25jCz3ywp; Sun, 21 Aug 2022 11:29:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081374; 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=LaEwdRwLHlmMEhz4Ifz5sdhSxkqJvkxAaCrwH6K3r0M=; b=kEJJj/a60wcoy0LEfSFmLXyDR7VqGRseG5eX+LfnmC8h2yd2XpqCoWZ/d1krzm2A6OP4VX ovXdNIZdO68ZV4bCa5AUC8jz7jCuReBwp6Z54T3UsMFs5Q8QcUCwlUA5slyZt74WM5yOVA dfRSOFYuE2knq6/o9Zu11si4LN53/TRVTv3T7zwUSz6CSNeD7s1IzA2wg/vOYUiVsmdKEN YKA/fq9UJknTzjZWa6P1idsbFwoWfqi+Y0kKzvp2ObKWZM/vGDJUFfaoSP094nRSzNNqes IJwv2yC4tRpXPE9AqfCzn0SGqHAJLQG5by93L4j49Tp8ui6SdvDcJoSSVR0LPg== 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 4M9YDZ0WKhz1898; Sun, 21 Aug 2022 11:29:34 +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 27LBTXBT005057; Sun, 21 Aug 2022 11:29:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTXJm005056; Sun, 21 Aug 2022 11:29:33 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:33 GMT Message-Id: <202208211129.27LBTXJm005056@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: 1b632d8fe220 - stable/12 - Adjust function definition in arm's dtrace_subr.c to avoid clang 15 warning List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 1b632d8fe2205aed824ccbc34d33d725ddd22469 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081374; 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=LaEwdRwLHlmMEhz4Ifz5sdhSxkqJvkxAaCrwH6K3r0M=; b=RhRYa3E3ViknTnUcehmnGZyv1AJy2UFtx5AxEDlnk0nhOkvj6v0CDfpkNArSWTiz/tt4zm 0C2B1xh1T5zKHlNLAE/68Ar6f3ti230o17gchvl5lrYYrhCRCIrtueBrdRSm8eWYv9dCp8 0qe3YnQnmHYY2R1gtfNxdokomUE0/dZAaDi1fBahH44T46m8o9Debv9VrnFqsx7o4/iAWH pGPMuhCzDe6kiBTVk7b4KbmNYS6te2jMXIBziIOdCrn45NrDyxHwv0GNXGjRcBBdY9TLXW zeB75HY6Yi7lenk378RxvJORfAroW19Ro64PDAlBg2oXNe4AMsB3eilu60bwVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081374; a=rsa-sha256; cv=none; b=hS6y7Y+gLIoqHoStWWWTzY5lmCmiqEoyAIGdLOCBdJGD0HZlLJH+rP/QfNLIF+HHFD9ICZ car8WXGws57uSV6itPBYFeS1+Ns9QG0TBzS5AbPFyMP1fyAd+dgOiqGJJU4T3aiBOZTitW QUJlJM/N3LfA8UTzwLdETvARQo5YXZpK9BxQTRC2gkxW/u8VYmdu0bVt9xboaPAaWOlSj/ Ku80qlpeKWX1ATutpLork1a+g10tLfbgD3WdP5dxoh9xQG44KzyMz3Q6BOiqDfUtcZ9jcM MrqfgpCUgY6YsjzpGU9xQpxs48NKxzOlQzD+gzM92ztmANDdsiYEULCUkVXlMA== 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=1b632d8fe2205aed824ccbc34d33d725ddd22469 commit 1b632d8fe2205aed824ccbc34d33d725ddd22469 Author: Dimitry Andric AuthorDate: 2022-08-14 18:49:20 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:18:11 +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 (cherry picked from commit 7357c2e5a6a7c74eaf5c6732723df375ef4188b5) --- 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 8cd9c9c1f204..e0b54866b08f 100644 --- a/sys/cddl/dev/dtrace/arm/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/arm/dtrace_subr.c @@ -170,7 +170,7 @@ dtrace_sync(void) * Returns nanoseconds since boot. */ uint64_t -dtrace_gethrtime() +dtrace_gethrtime(void) { struct timespec curtime;