From nobody Mon Aug 15 18:49:23 2022 X-Original-To: dev-commits-src-main@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 4M63Gr3LVPz4YXbw; 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 4M63Gq4mwkz3BsS; Mon, 15 Aug 2022 18:49:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589363; 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=U2wAOZSvk6A2NiD+i6CEAFgTlDIKQb786JDuoKBDAHA=; b=O8V9EoYjlwzebt/3Go+R+JtvNrxdSRjWjDsvHf4Hl7OR8hGDlxYQy7ZZpSKwN7iG9s66ho cSEpBpmaRaihiRrjL4nLlf1za3bA08L2a6TDF70ZcHmoniCCGoihR6DTAZ+NZx0KGbs04m 03OEI0vl3jYOlknaGaZK9j9tmBd53+SSUBA3r3QMYmt2OrvpAhzanTbEBJwj/YVxC437Ft hPJ+zZfwHeNo4yxE5VV+dWJOwQxzu36TK8IEOWKhpdsndHPhe2Fq4iQWdd+Uf4H40KPGug L1hAHAKtKHxn6F3I97QDUWWjeAf9HVEhANtrPeJ6prEkS5fK9YmzBNSmRDZO8w== 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 4M63Gq3sqWzgDw; Mon, 15 Aug 2022 18:49:23 +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 27FInN97027782; Mon, 15 Aug 2022 18:49:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FInNV8027781; Mon, 15 Aug 2022 18:49:23 GMT (envelope-from git) Date: Mon, 15 Aug 2022 18:49:23 GMT Message-Id: <202208151849.27FInNV8027781@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: 7a98c884f20f - main - Adjust function definitions in mmu_oea64.c to avoid clang 15 warnings List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 7a98c884f20f7835763d09f2edaccc874d5ee698 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589363; 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=U2wAOZSvk6A2NiD+i6CEAFgTlDIKQb786JDuoKBDAHA=; b=kCjsz7vFFgn+TlVNNZmCGSrTWEsi0EqjjX+TMHjYWB8VWC9KhoB8Vy6MFGy20/ax9eojQp uWjVwiO5unZnD5UtDRc95KGSvG0f33s2v6B6FOyF0NVN72XUfGu8sZrsNQelGYhB6d/t85 3qJERodGexfFODYwKAFbVQLFnxNvcW61d4/5SaF9IA2DRsmwPTyMb5mL5skUos//1T+KEQ OuqaaHagjQVc7SMNMe4au2gylY/VkmBBFd8PPmigDlzqOP08ChVWSftue8YcK2w1AplQOX 5bJJsYAqpCnWizr/3zu6woFQ6BkvZNCmOcV3tVobVWt1ZNbhDW5iX5WsnIscSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589363; a=rsa-sha256; cv=none; b=dOie0mQbvCnYb8qIfPsTyzeIGKX3c1z7X0TVWa3FA5euWyM+J1c8Mw3Uhg2l3nyKT0IPwS MXJbDR7Ud/QRzBr8Ff+YIS5MytVPmuxwoZ+UdLnN54dIi1e8UNQdASAUvm20vF/Jc1cERc 0CyO7PO1fpik9DnW4/F4xuJgLHhn9EIlSxJ40V3r0IoidsaBejEZxH3Xb3FLSE3+devR88 vIb+/dvP6g9D5sXw7VgqOYm5sdGpFwbdPsKQMjzpXN79L3cD5uUBDnqy/K+KeYXy02XVu7 nzCrPml2HMRWaDR8WTPf3K+pc/qY83ejd+5JwfXSU8GR7fJNOdhNvqD+bEDxzw== 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=7a98c884f20f7835763d09f2edaccc874d5ee698 commit 7a98c884f20f7835763d09f2edaccc874d5ee698 Author: Dimitry Andric AuthorDate: 2022-08-15 18:33:25 +0000 Commit: Dimitry Andric CommitDate: 2022-08-15 18:48:34 +0000 Adjust function definitions in mmu_oea64.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/powerpc/aim/mmu_oea64.c:1947:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] moea64_init() ^ void sys/powerpc/aim/mmu_oea64.c:3257:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] moea64_scan_init() ^ void This is because moea64_init() and moea64_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_oea64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c index ba8e8bf23fb4..9eef508ef585 100644 --- a/sys/powerpc/aim/mmu_oea64.c +++ b/sys/powerpc/aim/mmu_oea64.c @@ -1944,7 +1944,7 @@ moea64_uma_page_alloc(uma_zone_t zone, vm_size_t bytes, int domain, extern int elf32_nxstack; void -moea64_init() +moea64_init(void) { CTR0(KTR_PMAP, "moea64_init"); @@ -3254,7 +3254,7 @@ moea64_dumpsys_map(vm_paddr_t pa, size_t sz, void **va) extern struct dump_pa dump_map[PHYS_AVAIL_SZ + 1]; void -moea64_scan_init() +moea64_scan_init(void) { struct pvo_entry *pvo; vm_offset_t va;