From nobody Sun Aug 21 11:29:17 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 4M9YDF4F1jz4ZYqK; Sun, 21 Aug 2022 11:29:17 +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 4M9YDF3hpdz3xjJ; Sun, 21 Aug 2022 11:29:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081357; 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=e4FIsSI7A8xxm/vFfTTpP1zTyODke0jzGO6JmvVvsIQ=; b=mxsTQR32UDg5cRw3XbvcUe2TmjAi8ZmsMLcembgTP7CKD+IFPzpEYP4V66BshX+LIDuGgr TG/OvoWaGzyuolXsK8ians5bJfEcco8dXhET3qfTUvXzOcPOWR9whm6GmrmI3D3TN92Hv8 3FhdZDPKFSOCY0CW68Hpxu/pNc2ZA2U+J5hN+xDtng6FNZzMQ2k5qCd9cPLT++m3VJp3KV UQWCaXIsmyxHafjn3kixVZR3pb+7AVyIKCf53MXzxBdEljaEZVe36xRFJg925F2oE4SBBZ gfAb5oRg4YvvPMUyDsrwWwO1Eubr5ysFTP7Hj7Wt5eKBPftmOt11pQeKBAikrA== 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 4M9YDF2m9Rz18KT; Sun, 21 Aug 2022 11:29:17 +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 27LBTHIT004598; Sun, 21 Aug 2022 11:29:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTHsX004597; Sun, 21 Aug 2022 11:29:17 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:17 GMT Message-Id: <202208211129.27LBTHsX004597@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: 55db31a62dfa - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 55db31a62dfa65812ac1c7b70e80ae905e8a780d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081357; 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=e4FIsSI7A8xxm/vFfTTpP1zTyODke0jzGO6JmvVvsIQ=; b=jDpZs0efYjFdUyVEiJfnaRKNLzz4dXRinPzEz1ItLLOr6BpfodP5tenl+qpMV6fDXRT0XL GsyMyh/f3EwvGiR7VKFYB+yfgWNEZmlOuM3kOPSifhqLZHxvIOdKVe9QJqjdPHhKAqh5Pz hYwy9WJTBZW1WdXdJ7x5WU7UJRPyhucLrMdvjvYATyw31SCQPtHYLCxUa9iL5zRmnb57uQ golwDL1LC6rlfCLbeoCyS9NXAgEzoGYw7YEjpnyVM+v2b72V9xcsfXMZoB5fup7cRmwujT 4pOyhkTaI1k0uvEhDluW1n/s+h1pIN2CjDtY6kQV6hJdPgIt0RsEcWI3wgjXcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081357; a=rsa-sha256; cv=none; b=nBH+sMLQTinMb8zUQR8ybA3ffBOWQ9ZrEyvxqrB3hpj2sscPE1brtTs1aslR3FjJYGd/hG jTeHHnKxyC79e8pBCMm45/+sMRJtBjWOZIkuCPymmgIylKUzcZedf6Tlf/FzkDOX5fTyNt m2iU5cGYc3VHf0exrNFilUE7rpRoG9eJR1ET3uK18gmEx8aE/WntKIQpV2rSDZ0462zMxq uIcLGYO8/kk0JYEifULc+iaLPVuId20P4GbTJSJxUM3oENeYtfEPuC/2piixwb/A3DtzE6 gglptfVcmkYxR/Rsp3GloiMYb1o+iuO10BgUVT6L0O98REr1H2+CY4kgRBbdYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=55db31a62dfa65812ac1c7b70e80ae905e8a780d commit 55db31a62dfa65812ac1c7b70e80ae905e8a780d Author: Dimitry Andric AuthorDate: 2022-08-15 18:46:44 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:16:43 +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 709578d8e1b4..b8b939a785ed 100644 --- a/sys/powerpc/booke/mp_cpudep.c +++ b/sys/powerpc/booke/mp_cpudep.c @@ -51,7 +51,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; @@ -94,6 +94,6 @@ cpudep_ap_bootstrap() } void -cpudep_ap_setup() +cpudep_ap_setup(void) { }