From nobody Sun Aug 21 11:29:41 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 4M9YDk4rcxz4ZYyf; Sun, 21 Aug 2022 11:29:42 +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 4M9YDk1Kmpz40Tm; Sun, 21 Aug 2022 11:29:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081382; 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=kpeoCtQFrwZmDnyTu4ydnPd5eK7mKCw/p5FzGCH0Sw8=; b=q5B3fcU4b5bNc98aWU42pJZ1VrNZcAfXV6ZFia+4G0HBzWw9P3oZebxx1C4sRZ8o36XkEr 5SPGjowmNGmhAUB3Tg5S7nW7VAZIRjbTv+H8FVgIPnvNyuHfZI+ANFmO7+hy7H6urwPAVm LPNfgu2Z/5lwWP3NjFRiIkODoOw7Lxb3Kf5RVK3HPZXhg9ssu6iol8eoAiUGPuSZqPDgjT 5hS8tU3hQ4+2B/f6YKmUC6lyB6jHIMEGAZnXTDKy5QdNJ4IjLj5fVaD4WlKhHBwD4qhsQ0 9WJV4VQZQm+7kLRjp08b5c2I15FqH8T5Ub+be2OFCf4AB0+JxdarmyiDkGdu2A== 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 4M9YDk0RzQz1899; Sun, 21 Aug 2022 11:29:42 +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 27LBTf5U005252; Sun, 21 Aug 2022 11:29:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTfx6005251; Sun, 21 Aug 2022 11:29:41 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:41 GMT Message-Id: <202208211129.27LBTfx6005251@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: 3e55a45bb7f3 - stable/12 - Adjust function definition in aim_machdep.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: 3e55a45bb7f3381e55d4c7dd1ef7b90aa4feba8a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081382; 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=kpeoCtQFrwZmDnyTu4ydnPd5eK7mKCw/p5FzGCH0Sw8=; b=YY8iLmWcIZ9FPaWYuo/KlBKY2T7TJNhHN/IaFQ7ueOfZel1L0Z2lJOXYXWBmIHKbDDt0O/ 1uO3EFld+uOKEe5QfFTPQ1PlVyUztNtQNozUagTznrM532TE3RLMLgPJSTMFF2ASyi/rAe TQq/5Irt3A301v8MzB2FV7Qd33cDPgP6MxHcFL74t1gUurUOsDq2FWfN64hiSaXVaYKmw8 nmvqeYZLeldrS5KZvHdUjf8fbYl0s8Y2yYXZqpj6deaB1gM/k/36Xe3IEfCc35PgUO9fP7 D9ZvGIXX+olBOTqgocylK4fXnwj/aaRaKC8LsxMysg2Lnz6Z0G+00ka8CWoTCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081382; a=rsa-sha256; cv=none; b=OVb6u9NAj5nbbVkMvR6sYGjsR0fVXcjijtdWnGHNXMAPAlJjaiDiehQnybqLMylmfdqAO+ MOW2aBd8xjNt7Kgs8kJ4wWZdS62m3TcbOa2ySUwgbZP3DWy4vvxWwf7aZp7augrTb3eCMJ eV/6NdHdwaCopNMhd1dAHQQ0fm44KfUEBwoqnJhTQ/9dExo5e/FMGXdKiIekr5Io43MVd+ U931vkMJqgE8f1NHvRAZRxqFDbbaboOKuSyN8xNFfP/0lr500x6rX3PN4eGoaCnxtJ46SU 9ohCjkdwg2uJwuhJ7D+wtS5J9i10rmIk7m+atW27mAVSVabs/QkVGdVPuJcBqg== 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=3e55a45bb7f3381e55d4c7dd1ef7b90aa4feba8a commit 3e55a45bb7f3381e55d4c7dd1ef7b90aa4feba8a Author: Dimitry Andric AuthorDate: 2022-08-15 18:27:56 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:21:55 +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] cpu_sleep() ^ void This is because cpu_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 (cherry picked from commit 06fce030e79ecce57365bc537e38ee0f25861d70) --- 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 aff409d3ccc5..41022014d1bc 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -649,7 +649,7 @@ flush_disable_caches(void) } void -cpu_sleep() +cpu_sleep(void) { static u_quad_t timebase = 0; static register_t sprgs[4];