From nobody Sun Aug 21 11:29:44 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 4M9YDm4Cjdz4ZYsx; Sun, 21 Aug 2022 11:29:44 +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 4M9YDm3JZRz40nx; Sun, 21 Aug 2022 11:29:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081384; 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=qpHNOwh/kynhPh1lLOKQyQEEOYyhYlaL3Kg2IfZfKSo=; b=fmH1fWc4+QvajfPNb80OEphRDIBAUiBEuOFtH5Nrn+7v6OLWfpoHxKdeNr6/Tq+anQTxqL bWEWedcE5tSxLgyzSXjZkNLfOlmhVpFSIcUzmxl5z8lsb/OxeRzveG3L+RQf5GFBBVItnz oOvAdhLjg8ZUyCOnrA0UX9cMtstKl5DkhDKnkKmoSpM9RUA9wwMJ7AqPZs6weecu0sC5bI 6vtQh8tP1/5tj8UYRzz87cji0F0FQTyYSvcwqqE8A3gr8zZM8XnUnTBT67mEcuKCHodpKm 9WZ7mT7NnY6DMbMycxrrjWE4Diz4Yb6dCr35u9ALCJLBn7nfjCjrdb5buutxgA== 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 4M9YDm2Q1zz189B; Sun, 21 Aug 2022 11:29:44 +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 27LBTi2b005300; Sun, 21 Aug 2022 11:29:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTi9U005299; Sun, 21 Aug 2022 11:29:44 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:44 GMT Message-Id: <202208211129.27LBTi9U005299@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: 2ee07943312f - stable/12 - Adjust function definitions in mp_cpudep.c.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: 2ee07943312fc542a513c2825ecd34f6ef0f3b2d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081384; 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=qpHNOwh/kynhPh1lLOKQyQEEOYyhYlaL3Kg2IfZfKSo=; b=tHQzXwBirMfIQx3uu9OdeYeVJ037qMfPiC11L1Uy9mQ/Non/CFYCe+WYn2ekSpNSL9UugJ H7AbK4H94LBVJsdt+aT3Ds4EM17NhcSGBhBVe4GyzZ6KEcQIqXaRywOlqjGGJebqs7/+lx b8RMnkAA6Nlevl1eoN+azGuX6i8MMq3qoXSYHo+Tne9DMa0tD0DlTzE4BywDfKDOVIUxqy 4WOfHT9m43H1KWo0c6PL4gFzUWQ+C3TUNidjSM713BF8zGBMnchOWZ1iDytkL87XmezWqJ 0cx6Zs6S99z1d2p0WMUY9Hsi0ZSaZWhyTrjJmU8zEN39MS3Sx2HyypAZ/HCsUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081384; a=rsa-sha256; cv=none; b=ORnyU6MNjl9ODxnLMuLfezyWdcYJUFjYV+Gk6Ami4Aaf0HqIUiAfblNq4/N4SQk8SnlHPo 8EyVO5zncO22a3V/TSp4iflHI3YurD3bH4QYjgcT4UGQUN4q3pknuJ7jcVTLRiXQPm+MdM RAK4vKtA1vnEFuP4+0KC0XNbguG0b6w9Klbvm6Y0ZiW6xkH6/xyrIqBWyxPN4yheghjdDr YUdqt+04XtqgrB2dc/biX34GVVuhzbAutMWBmlejVwkI8Ky8SMggvmf4IrjvnPWgsHsiq3 Js/QVwZB1JXbNyzfLE4iZPV3/BK/WaTQwdA76ZlXIbSa1dCsjShj8lWVcRYPSA== 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=2ee07943312fc542a513c2825ecd34f6ef0f3b2d commit 2ee07943312fc542a513c2825ecd34f6ef0f3b2d Author: Dimitry Andric AuthorDate: 2022-08-15 18:46:44 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:27:27 +0000 Adjust function definitions in mp_cpudep.c.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/powerpc/booke/mp_cpudep.c:54:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cpudep_ap_bootstrap() ^ void sys/powerpc/booke/mp_cpudep.c:97:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] cpudep_ap_setup() ^ void This is because cpudep_ap_bootstrap() and cpudep_ap_setup() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit 02dd51c9bccedc2fc8d98c3892986232f6bacdab) --- sys/powerpc/booke/mp_cpudep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/booke/mp_cpudep.c b/sys/powerpc/booke/mp_cpudep.c index c07e8c06ce05..40e68c86e872 100644 --- a/sys/powerpc/booke/mp_cpudep.c +++ b/sys/powerpc/booke/mp_cpudep.c @@ -50,7 +50,7 @@ extern void icache_inval(void); volatile void *ap_pcpu; uintptr_t -cpudep_ap_bootstrap() +cpudep_ap_bootstrap(void) { uint32_t msr, csr; uintptr_t sp; @@ -92,6 +92,6 @@ cpudep_ap_bootstrap() } void -cpudep_ap_setup() +cpudep_ap_setup(void) { }