From nobody Tue Jul 26 20:10:01 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 4Lsp152pN1z4X2vh; Tue, 26 Jul 2022 20:10:01 +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 4Lsp152MTSz3KGn; Tue, 26 Jul 2022 20:10:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658866201; 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=csgm+V7nVtONWBeYkmQa7GcBGgaMSKg1KBPW0/BPjPw=; b=FscIWK4Kt35jXdS0aZgw4ssaQ69Xcjk7r3brznQXYQ8BW0rST5zMbwXZi82gkcJ6zo98Ln 1WgOmEJuwma/GJJHkg3n0GksVOOoejsN2cgKV2Il0IONMbZu6s4zd87WJXmn/4LMP7JP6g YtHsK7NgOGUOXuZynWMNVwWWJgT0I9HBK/Ra5xd6D+9q0fY/R06EWbUKCAn3Z5FH8NVeUg MwOrk8N3Gxh06UsZKqjP0nxiR5N3q5i8dTe0gWE0goFShwNpebx7oNyh1Cq0rtgy5NolLx 0JbLyVffVQl1EhwouRoHLB+tYZkuD71EPioUjGpBazY0SwfBBxyawocnM2u/2w== 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 4Lsp151RWHzqLT; Tue, 26 Jul 2022 20:10:01 +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 26QKA16q077452; Tue, 26 Jul 2022 20:10:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QKA1nZ077441; Tue, 26 Jul 2022 20:10:01 GMT (envelope-from git) Date: Tue, 26 Jul 2022 20:10:01 GMT Message-Id: <202207262010.26QKA1nZ077441@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: c45bc02560b0 - main - 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/main X-Git-Reftype: branch X-Git-Commit: c45bc02560b0f632f8e085679512a588bfcb3384 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658866201; 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=csgm+V7nVtONWBeYkmQa7GcBGgaMSKg1KBPW0/BPjPw=; b=lKwuXC4m4bkQwZ/6n+3PEp/FQeyCV91g3oGfLQMihVGIO2eTCrd1/5VUdIzAqJTHn3abAP iwKrf8/mWFlwTvQb0myoBXTGQQbhoKeYf3BCFlPp5j77rPam514sFShwMOztiVBXm4K5CP dsxuVaX6snyLbu9p6pWzKc/li25rkmkoCgwBoldb/2VHJz4Y7JgRWijebgufj8p8F6Sgy9 ytH3nu/BMhVVttWUoYIPAiwTefJ2UG1fNLmZdbG3qmGcDdSfnxuRWHFcYDLy9M8XLXlXws m6LFWeaDKhmuB2v587yQcK6sLhKAzXtnjH0alhQYFK7Y3hftsPqiXEb9teEMNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658866201; a=rsa-sha256; cv=none; b=RsNxV/pVWY9J60c8pglJNYWvFCQKxVzh/l9RvnuqgmLNGJah9s/rBOcn9q0aRqO4AKl7ZT x3aisY9aj6RgEFcGp29zNpwDDBJr3IRcUNhja6FEF3E0QH4ucRAa8v8jjIBbnMpFLR3NXn a0rekW5jO47iIqqnQr4nExIaKq44dWLfkVocgi2O/03i5nvPAYPSRwgzJitlt8hOuWdzcl /tXxtrQHajWqa7oX6MV7m+ZtHgDQyydRE/uNwkSUWWoXxcENecP9uSRr2YcXadEArmluEX ybZX0a64nK+nuDue9j+82moTrMmbiD+aMzNalazhjbb6/D40FPg3wgeNp2W0OQ== 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=c45bc02560b0f632f8e085679512a588bfcb3384 commit c45bc02560b0f632f8e085679512a588bfcb3384 Author: Dimitry Andric AuthorDate: 2022-07-26 19:35:07 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 20:08:01 +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 --- 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 a837e643ff1e..072249cca221 100644 --- a/sys/dev/acpica/acpi_timer.c +++ b/sys/dev/acpica/acpi_timer.c @@ -399,7 +399,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;