From nobody Fri Jul 29 18:48:28 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 4Lvc3d26sfz4Y1vK; Fri, 29 Jul 2022 18:48:29 +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 4Lvc3c66bTz3stl; Fri, 29 Jul 2022 18:48:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120508; 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=NM2wkESwPy3AfCuOL2xuiKyVBbcAslylI8KT2JqVIus=; b=LgjRe1maS1pifWUVssVJXjqOwbn623yE74pFX8F+Ql3v08+a/36uh3rzLTJ1G/y5js3kRk GN3ErcE9zkPTCovWYk36FkAn7HeCJEmqaaynvX0fyuLQtqTGy7hLnojZw9sN0+NNc6rWzW 5ZzPwXCjiKdVcuMibE0eqBi3aN/uXcWkgOk9Nf66vUfy6K7f73IqbzU5kF/KzrnbR8JNio gd9lZeKrSU4N9/6MuialX4llpVf+dQUtwMwKVbxNBO5EpEVOwlZLvQIi3xZj/cd4Id4p5K MnGuCmdAThJjAsHy2DhDlBuj9PJyVcgBvvt3r9l9OBmy2o0MEy+NjIj1O58FGQ== 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 4Lvc3c5DlKzmB7; Fri, 29 Jul 2022 18:48:28 +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 26TImSYx025424; Fri, 29 Jul 2022 18:48:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImSYR025423; Fri, 29 Jul 2022 18:48:28 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:28 GMT Message-Id: <202207291848.26TImSYR025423@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: bf6d99e4de87 - stable/12 - Adjust function definition in acpi_timer.c to avoid clang 15 warnings 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/12 X-Git-Reftype: branch X-Git-Commit: bf6d99e4de87841968eaf3b6ad4f08c577f0dfd3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120508; 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=NM2wkESwPy3AfCuOL2xuiKyVBbcAslylI8KT2JqVIus=; b=u5FYmdrIeSK8uzD+VG8rSmo0VK4EZ5YKflYhZD40KlcQSIloZIvw9Rw4iKApJWoNSLxeRc OoleDNOMW65pfoxRGm4+PRCL/ImTsmiQ4bz8/POIee4+qCL8DcXg3q2gLXhnABR9jrbj7y U5z4iwNCKpMno4oznkyvj9pVNnxQqi0ijjeHwktmvydItCyMrAhrPywkrZ8CjWwe3sd4uZ wWPIiQ7lPE0zYVeN9X4Z8OVmAs94yT1DHdvhkfbwtqyFBojo2lEFLM6nf2Ph+cn9C1HdKz WMEC3C+psPuwZjEu6uzWsamSEjxSGdAYZOHpV2VkjHtDmaa+NU3axd4VwI1hLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120508; a=rsa-sha256; cv=none; b=sIBS28NY93Avh6Xl/MMWEN+y6+sJNvhmQ96T8crjajW8CvUtSuwRWwH1mVQTffK4zAkNSi ETK4P2C7rctgImbn+AnC60Hb3W+xK+Pr8RZ9G5baseSiCXE0/IsieK4JMe5z0dZS95aLKk sMApi8BHdCgpraFXMWYHq+mrRxbOzMle9fPtmMwj9oqCxjxrS+MJGWqsqX5Tu/jeYzP2v7 ybrySHmVV3wtsXNSlpwrIOBFvO5/q4L6WEwFahCeAXPdr2YkpXyZs8OH7LVlsvSsQp6Amw yHxtugCur8zP/Wo4LRzfb58ZLI47jyigImsJYkEUAWYOX4mUwx6iNOYmuLGA/Q== 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=bf6d99e4de87841968eaf3b6ad4f08c577f0dfd3 commit bf6d99e4de87841968eaf3b6ad4f08c577f0dfd3 Author: Dimitry Andric AuthorDate: 2022-07-26 19:35:07 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:36:11 +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 d768397a785c..13bd4afa2680 100644 --- a/sys/dev/acpica/acpi_timer.c +++ b/sys/dev/acpica/acpi_timer.c @@ -396,7 +396,7 @@ SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, CTLTYPE_INT | CTLFLAG_RW, */ #define N 2000 static int -acpi_timer_test() +acpi_timer_test(void) { uint32_t last, this; int delta, max, max2, min, n;