From nobody Mon Aug 15 18:49:24 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 4M63Gr6VMLz4YXxb; Mon, 15 Aug 2022 18:49:24 +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 4M63Gr5qkTz3ByW; Mon, 15 Aug 2022 18:49:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589364; 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=+4cPUORn4XzutWyTq4ctHrZCbRPcBGrH3+vU2j28LOo=; b=CLzKp31RjRvqBVilWPO1GEHIS4FIb7QBuMawj25citIKlij/rf5D8db9NKtNNb2wllOCk/ cSH+1i43kk5/lacd7/iHoQAbxksh0M6aVe4zmYIOCYmv79JiSR1uL6s4kLb9h3n13GPZIl ofN9WXbRVOECWpAXe294QrCBiyqe8RBYynjIAdyKBVJbvQ2665OQOVHN63hwCHo8vMs1HX 6GPQwhbDtIAjxZfDLuKvehDW2nc1mGY0z+u/BomA/cp93cMQy1bH2ukFIpvIrN5hMw1V4+ pIP+o/nqaSxqlRP+We0giChq0hmIDYOVVlaCaR+t3Qtmno7IqZSG89saC4DMpA== 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 4M63Gr4vXFzgBH; Mon, 15 Aug 2022 18:49:24 +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 27FInO1E027806; Mon, 15 Aug 2022 18:49:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FInOqr027805; Mon, 15 Aug 2022 18:49:24 GMT (envelope-from git) Date: Mon, 15 Aug 2022 18:49:24 GMT Message-Id: <202208151849.27FInOqr027805@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: fb203abd9d39 - main - Adjust function definitions in mmu_radix.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: fb203abd9d399c23cd34361d78f956642e1f6567 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589364; 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=+4cPUORn4XzutWyTq4ctHrZCbRPcBGrH3+vU2j28LOo=; b=LbZcDytEG+FtRT6UD20n7C8Iv19wyXMIab7AuXdaeidMzIHRJ7KLrCpzcWB8r5Jc+nGDm5 A3WtugPYlReQgqNfLCKMX3OMQZ5NW1M4PojkrCOfkytyNQM/S1XcT3WdSprO67uLcBWnUY Zmw3tSTXzSk2RGxCPaqMuvTUPdi2igLvWVh5NlJsDqhPzNf2iWFm/rynq6CxBf5eaH2sE7 65qWGk3M5p/3vrjX10vrQ485GDr2lCqVkClGLpDUTZfubRWlz830Fxwzg2/4EWVWlcgGWf hkj7ajvMsN3xBDikGyAOPP2Ci9pGET+PpiKCUDmkocvGqF/zoMB6sDma7ezfKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589364; a=rsa-sha256; cv=none; b=YfEgjCVNLhrNYjT9gKG8lz64wHxDKtzW2FHRld3ftklVfuMiHzYFuk7NJ3DfvZQA84de47 MjdXuu/PSj+wct35MAlCgIyzTXoYv1D3v3B51e2yzVLsDmgdhBwtW+CyrcXKq8P2WvD707 4NnkqpAqnvU0s2uDiBcr8Q02deISYnSn/PvvM3ECEod6fihQHolD9kRP531k4eSZE/16pM H9uk8XSWNtYEPnBt70kkkqPHRgy2Nh5nqMfQwncl9gWmz+1WocRcAPObkS9UT8+iUmGjV7 qlU3QX6OtFHbnYq7Cl8gsM7nWDBiqX5Qc1mvHog9JhyyaipDZYK+N8Tx4qnCrw== 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=fb203abd9d399c23cd34361d78f956642e1f6567 commit fb203abd9d399c23cd34361d78f956642e1f6567 Author: Dimitry Andric AuthorDate: 2022-08-15 18:37:14 +0000 Commit: Dimitry Andric CommitDate: 2022-08-15 18:48:34 +0000 Adjust function definitions in mmu_radix.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/powerpc/aim/mmu_radix.c:786:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] mmu_radix_tlbie_all() ^ void sys/powerpc/aim/mmu_radix.c:3615:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] mmu_radix_init() ^ void sys/powerpc/aim/mmu_radix.c:6081:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] mmu_radix_scan_init() ^ void This is because mmu_radix_tlbie_all(), mmu_radix_init(), and mmu_radix_scan_init() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/powerpc/aim/mmu_radix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c index d40e7d919160..dc7bdaaa6ed9 100644 --- a/sys/powerpc/aim/mmu_radix.c +++ b/sys/powerpc/aim/mmu_radix.c @@ -783,7 +783,7 @@ mmu_radix_tlbiel_flush(int scope) } static void -mmu_radix_tlbie_all() +mmu_radix_tlbie_all(void) { if (powernv_enabled) mmu_radix_tlbiel_flush(TLB_INVAL_SCOPE_GLOBAL); @@ -3612,7 +3612,7 @@ radix_pgd_release(void *arg __unused, void **store, int count) } static void -mmu_radix_init() +mmu_radix_init(void) { vm_page_t mpte; vm_size_t s; @@ -6078,7 +6078,7 @@ mmu_radix_dev_direct_mapped(vm_paddr_t pa, vm_size_t size) } static void -mmu_radix_scan_init() +mmu_radix_scan_init(void) { CTR1(KTR_PMAP, "%s()", __func__);