From nobody Mon Aug 15 18:49:22 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 4M63Gp4XQDz4YXrh; Mon, 15 Aug 2022 18:49: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 4M63Gp3zFfz3BvH; Mon, 15 Aug 2022 18:49:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589362; 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=iqK3LlMfR4iPC9cRN/laTOCj8mPYhnGXY7Om8Pl27v0=; b=wnTkf0uczVRFMakBrVBTlSGXyj3U1OKc5hHDTimaZgz+TF4BsNW6nKd0Skt22jLtvtpG0L RVZTxjfpn54w9UozWE4WmpzKxJqznwTucEhZNACDZbHOr4rOzHXLg95g2b4L9BlkIDz6fs pY6GV3HhpnKbXQKTCJyzO4fD5+6x6ITcXIzwi1S76+tzsfvsI+OWO89E/TuIfsowAUpcN3 W3gPWQABlgIgRrBbPX2maM/V8dThbQ9r0R5NvbU2ZF2Jj5LLDeCrO9pga6wA5CuwwrUTF9 mVPIrFLcJi+Wfx6Bl+wpjHpOcb+63NS42AmHlABF30/sl2oPywtS8CQZ0R6evw== 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 4M63Gp2zTZzgDv; Mon, 15 Aug 2022 18:49:22 +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 27FInMqE027758; Mon, 15 Aug 2022 18:49:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FInM8O027757; Mon, 15 Aug 2022 18:49:22 GMT (envelope-from git) Date: Mon, 15 Aug 2022 18:49:22 GMT Message-Id: <202208151849.27FInM8O027757@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: 06fce030e79e - main - Adjust function definition in aim_machdep.c to avoid clang 15 warning 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: 06fce030e79ecce57365bc537e38ee0f25861d70 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589362; 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=iqK3LlMfR4iPC9cRN/laTOCj8mPYhnGXY7Om8Pl27v0=; b=qdPra4AiuZdVH+/SO0esHR1dnRSo6fHcEQ0eS37CdZyhSmb0l5qx0PxPxY848vprkrYcAT Hf+eYC090P07wsvFkUL6rYyyQfa4y/apDbqv3U4AhbJuKwsq5YrPd+H6P/rtobeyP3aSFU MOKHD5Zo+dkRlOb1bUJVW4bdynxB0efuXGPWaip0CY3eoGcOTAecCBDrJ9okByA9BGPP21 4/IEzLtEptkVUNJ/KvHU8Wp8DeJS7phr8skd12OUsOZd0hav9G9bGkDs68H2+6XSwnZ89Q pmOqN+u+pOlBu5eK774DqS5NYkBk93+vaC3wG7viHMpxzND3S7eBdSfdvM5+KQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589362; a=rsa-sha256; cv=none; b=v7mE6fgze9W3l2QMJt5GMJKBz9R7Ykcr+lABdUfJq8odjXxWdhB5XRuiObOT510YKd85Sb N1UqIxzalegzRtdWP5NLKpwBruddISPzJSpQUnmtfwasnx9TEm1M165OffFHZ8AXX1cRhK VFvWA0F6qb0phtvp02rWTT5PP7QUYgyIqwY8fKaZerOjSfLnsK3IiBeBRTAzZTQHROhNRw gsAuiCM/Uje8dYbBp4B7PoPfdkCkrXk7/YKnY+vG5D7xVTCXTQkJvyNP3+8TdZ8pRzrcuy ZLlLgO2C1YlMEMgGvrUo+ds71AUyJ0T39nNqRCS7Ti0nDwSPUszZJ8jHMqH7gw== 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=06fce030e79ecce57365bc537e38ee0f25861d70 commit 06fce030e79ecce57365bc537e38ee0f25861d70 Author: Dimitry Andric AuthorDate: 2022-08-15 18:27:56 +0000 Commit: Dimitry Andric CommitDate: 2022-08-15 18:48:34 +0000 Adjust function definition in aim_machdep.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/powerpc/aim/aim_machdep.c:750:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] mpc745x_sleep() ^ void This is because mpc745x_sleep() 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/powerpc/aim/aim_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c index 7a42bc6b960e..3140de8d8977 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -747,7 +747,7 @@ flush_disable_caches(void) #ifndef __powerpc64__ void -mpc745x_sleep() +mpc745x_sleep(void) { static u_quad_t timebase = 0; static register_t sprgs[4];