From nobody Fri Jul 29 18:47:21 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 4Lvc2L0GXHz4Y1nH; Fri, 29 Jul 2022 18:47:22 +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 4Lvc2K5wkPz3pB5; Fri, 29 Jul 2022 18:47:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120441; 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=9GnegifYd2W52/wl/j9tVGWhTnPaox1o/wb6C8boKj4=; b=ysEm4T3ywvHl5ITRbJqPjskpmwKku/QuIW29FO55bOjxXt+bXx7dP/V/+MMlob6WhS4vnP 7ZkosOM6sMGh9cpfaoRAIt2kertVncDjLgHSaVX9WdqJJLrkWiRCeF/JHHGtB05b89/TGp nBWOujV8VnGmMF4+wT/tTKZJvw+y8dc0nvLOtffeACrBKaQEOjgMLIjvXUhu8mWgT9Dkxt ddI1NgXXeGmNlzD4RTi+x4ednUBec84rJJCrIBXMpFzI0rP3PilsmStnz3qd2Jgrkpegk5 v8WDS5Op9niOrarwZAt8C4mLE5d34qMzNiAVENBbmuefCkwRTTafL79Kmw7RJQ== 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 4Lvc2K52MHzmB0; Fri, 29 Jul 2022 18:47:21 +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 26TIlL43023992; Fri, 29 Jul 2022 18:47:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlLrv023991; Fri, 29 Jul 2022 18:47:21 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:21 GMT Message-Id: <202207291847.26TIlLrv023991@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: 659dce0635b1 - stable/13 - Adjust function definition in acpi_timer.c to avoid clang 15 warnings 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/13 X-Git-Reftype: branch X-Git-Commit: 659dce0635b17fa1a9b9f126abc509321a8b643c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120441; 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=9GnegifYd2W52/wl/j9tVGWhTnPaox1o/wb6C8boKj4=; b=tYYu02KzBN7UACB/+rPaYhsW5DCUVBT2L/rFlsWfPTsJqecXF5zB3DNHuhC344QYKrAzxU 9A1XYtQnITcokx0SwItFKGYAo37DnDqwVo51UO3odt8RBDT/hBl4a9q2TXt5B0+EEs+f8C DXC2NvYjPp/LSe2Oe4IDeMw9uy/67F1VgWPprH+RySE2nFj122pnFzNvIMA2KyPMFjWHx0 8mdzJXZV+af2VgVDB0Rd0FF80NhoQ08svy1FU3n6U51GQYTwG6o2Cr1oh2JJZmwFq8qnJB gPeQJ6sx2y98fGnTG8IWxT3R0eNQJUHtGFDgcuY3OrO7J9qa7qCJT29Fk9Scgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120441; a=rsa-sha256; cv=none; b=Gf3+BBeca0F/qoE3BsONc9fORiYP0/+73HYiWc2ONaiVoNXspxoOea8AxZdRdVv3AWDhng KzH6JTKc6wTl2josZWwXtRpmoVymVcxLjtHIjVlXgcXCq3i7A3BCs0IRq2lNEDLhW3cXJC 6IapseVNelreukN4BLOz/ljGAsnnre66a6sMCC6dhIfFKplZfWnCD7du+Se4TMYPkpp5fo oeCoImDDiSVksmA6AeNMO23S2QgQAY8gz35mma2VM3eskytoLlEJPCCUt772QXhkeXXR4A Ky97Ppt2mRKjMVuqU/iMkSxwE9W6lDcKWWI1HUJvCWSUaZd0QDaWjD1qRpSGUw== 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=659dce0635b17fa1a9b9f126abc509321a8b643c commit 659dce0635b17fa1a9b9f126abc509321a8b643c Author: Dimitry Andric AuthorDate: 2022-07-26 19:35:07 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:29:08 +0000 Adjust function definition in acpi_timer.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/dev/acpica/acpi_timer.c:402:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] acpi_timer_test() ^ void This is because acpi_timer_test() 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 c45bc02560b0f632f8e085679512a588bfcb3384) --- sys/dev/acpica/acpi_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_timer.c b/sys/dev/acpica/acpi_timer.c index 0acb1761a1ee..e41d9d6a218d 100644 --- a/sys/dev/acpica/acpi_timer.c +++ b/sys/dev/acpica/acpi_timer.c @@ -404,7 +404,7 @@ SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, */ #define N 2000 static int -acpi_timer_test() +acpi_timer_test(void) { uint32_t last, this; int delta, max, max2, min, n;