From nobody Sun Feb 26 00:00:34 2023 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 4PPP0L41Mcz3v2tn; Sun, 26 Feb 2023 00:00:34 +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 4PPP0L3Nyyz3DJF; Sun, 26 Feb 2023 00:00:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677369634; 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=+fJc5tMhLhRukMGVsjQ51Dhmm4N2BH2KkNCFL+AleTQ=; b=fOZrvZ1yMnYi4zKT96k34OeKbS+mwvhWzR1bdAUW/9l2nNjeG73uSqZjE9gKcwnDIWmhma HFLkH7DJjgtNdnc01b37pF/c0//gYhAsWs04d9ZT6Nm1fzRPvGkuX3HizBU1nMQI/emVYL 1wibefnKJc6PL/cSGnBfGP927nlppvggeD8emKV4ZCO5fi2bFS0uEE24lVFrxDX+zWztSJ 2vHoL42RNVYs6jUafhmosb4SmZrk8bYZwB1oizquk4r2jKwCCtoD4nDSgaY80jhSH57Ygf Ow1qhKylFDGyxr9M9LLVYmYaaOJ6w9+n7pDlGbG+eVT5YVm2gex49JM+UA9Csw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677369634; 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=+fJc5tMhLhRukMGVsjQ51Dhmm4N2BH2KkNCFL+AleTQ=; b=P7Q8SsxwhULQ847N6q8BWCAX0zuXsVCFBnwDWv2ReO86FHtj4wwz8QgqKOi5TR9fK+Hesk pCQS4nB/RjDo5B4GFVMxbVVcWmM+pnVfYl2E/IDgyiRVncrHBITXBbwjRHHWX1xgRLxW+p txSCTMXElo0fit6O7Q+7aJJC+w1nA3t/5o2iQQbvR5YYzP2wMZ4quO2TJ/mNsBdQT0cGxr 5xfruMiD2zuBaFLkLU16fDEQTBIfreWVI6Lf8fHYX54ewEkzGwze+CC+ZZrDs13NenZnMU lNay/2TpknsUaGrzQS51gi3WHv11jbbI5gOOa0EhStIYZGWk3OFyVtVF+6r+KA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677369634; a=rsa-sha256; cv=none; b=CEB6NyO1eJqbDMnU0ZfnUZboB/MvHX/pJVi61zHOPZfJBSGrIdLVCExA1Fj2cKGu6NI5ew QxrXiSFkR9yXka52RgyQlzuD4l2ZvG5fQpgCO/gXwbiys7Sn+72SH/zbYoeljRTLA3PL9k jtaguA54Q8bMFsTEE7tx+tT4LJXvMtz1nnVK4S7ttA50X4X+qD7s0fA/etpexqPvgJVZaB 91kbuB2oGLkGYUe6lss3Ipp2Tn16j/aQ+dvlt6cQZ+0LAjukvRJDBkejPTdq7PV+YHkCLl ktZiOUkYtJipg71CnHpaBdy6Bmp5YBR0pKNqmez0D0M544vPz3a+ZkDB+t06yg== 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 4PPP0L2TKDzP1P; Sun, 26 Feb 2023 00:00:34 +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 31Q00Ywv081773; Sun, 26 Feb 2023 00:00:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31Q00Y7K081772; Sun, 26 Feb 2023 00:00:34 GMT (envelope-from git) Date: Sun, 26 Feb 2023 00:00:34 GMT Message-Id: <202302260000.31Q00Y7K081772@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Piotr Kubaj Subject: git: 429ba161fbe7 - main - powerpc: fix warning: a function declaration without a prototype is deprecated in all versions of C 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: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 429ba161fbe7db72bf9faa3c4eee8e61a7642aba Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/src/commit/?id=429ba161fbe7db72bf9faa3c4eee8e61a7642aba commit 429ba161fbe7db72bf9faa3c4eee8e61a7642aba Author: Piotr Kubaj AuthorDate: 2023-02-25 23:34:27 +0000 Commit: Piotr Kubaj CommitDate: 2023-02-26 00:00:19 +0000 powerpc: fix warning: a function declaration without a prototype is deprecated in all versions of C Reviewers: #powerpc Approved by: alfredo Subscribers: imp, jhibbits Differential Revision: https://reviews.freebsd.org/D38787 --- sys/powerpc/aim/mp_cpudep.c | 2 +- sys/powerpc/ofw/ofw_machdep.c | 4 ++-- sys/powerpc/powerpc/cpu.c | 2 +- sys/powerpc/powerpc/fpu.c | 2 +- sys/powerpc/powerpc/platform.c | 10 +++++----- sys/powerpc/powerpc/pmap_dispatch.c | 2 +- sys/powerpc/ps3/mmu_ps3.c | 2 +- sys/powerpc/pseries/mmu_phyp.c | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sys/powerpc/aim/mp_cpudep.c b/sys/powerpc/aim/mp_cpudep.c index cb3856cc4bf0..a91778fa09b7 100644 --- a/sys/powerpc/aim/mp_cpudep.c +++ b/sys/powerpc/aim/mp_cpudep.c @@ -306,7 +306,7 @@ cpudep_save_config(void *dummy) } void -cpudep_ap_setup() +cpudep_ap_setup(void) { #ifndef __powerpc64__ register_t reg; diff --git a/sys/powerpc/ofw/ofw_machdep.c b/sys/powerpc/ofw/ofw_machdep.c index 805d19cc2b42..24b89f9dd00d 100644 --- a/sys/powerpc/ofw/ofw_machdep.c +++ b/sys/powerpc/ofw/ofw_machdep.c @@ -598,7 +598,7 @@ OF_initial_setup(void *fdt_ptr, void *junk, int (*openfirm)(void *)) } boolean_t -OF_bootstrap() +OF_bootstrap(void) { boolean_t status = FALSE; int err = 0; @@ -809,7 +809,7 @@ openfirmware(void *args) } void -OF_reboot() +OF_reboot(void) { struct { cell_t name; diff --git a/sys/powerpc/powerpc/cpu.c b/sys/powerpc/powerpc/cpu.c index 300a738f796d..5e267c37a7db 100644 --- a/sys/powerpc/powerpc/cpu.c +++ b/sys/powerpc/powerpc/cpu.c @@ -267,7 +267,7 @@ SYSCTL_PROC(_hw, OID_AUTO, altivec, CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE, * so they can be used during platform and MMU bringup. */ void -cpu_feature_setup() +cpu_feature_setup(void) { u_int pvr; uint16_t vers; diff --git a/sys/powerpc/powerpc/fpu.c b/sys/powerpc/powerpc/fpu.c index 45a77235bd52..f384425b583a 100644 --- a/sys/powerpc/powerpc/fpu.c +++ b/sys/powerpc/powerpc/fpu.c @@ -213,7 +213,7 @@ save_fpu_nodrop(struct thread *td) * Clear Floating-Point Status and Control Register */ void -cleanup_fpscr() +cleanup_fpscr(void) { register_t msr; diff --git a/sys/powerpc/powerpc/platform.c b/sys/powerpc/powerpc/platform.c index 6f8f0361d11f..7993911a7c80 100644 --- a/sys/powerpc/powerpc/platform.c +++ b/sys/powerpc/powerpc/platform.c @@ -247,7 +247,7 @@ platform_real_maxaddr(void) } const char * -installed_platform() +installed_platform(void) { return (plat_def_impl->name); } @@ -262,7 +262,7 @@ platform_timebase_freq(struct cpuref *cpu) * Put the current CPU, as last step in suspend, to sleep */ void -platform_sleep() +platform_sleep(void) { PLATFORM_SLEEP(plat_obj); } @@ -292,7 +292,7 @@ platform_smp_start_cpu(struct pcpu *cpu) } void -platform_smp_ap_init() +platform_smp_ap_init(void) { PLATFORM_SMP_AP_INIT(plat_obj); } @@ -321,7 +321,7 @@ platform_node_numa_domain(phandle_t node) * Reset back to firmware. */ void -cpu_reset() +cpu_reset(void) { PLATFORM_RESET(plat_obj); } @@ -339,7 +339,7 @@ void platform_smp_timebase_sync(u_long tb, int ap) SET_DECLARE(platform_set, platform_def_t); void -platform_probe_and_attach() +platform_probe_and_attach(void) { platform_def_t **platpp, *platp; int prio, best_prio; diff --git a/sys/powerpc/powerpc/pmap_dispatch.c b/sys/powerpc/powerpc/pmap_dispatch.c index a0caddb9e012..42ff7a6de304 100644 --- a/sys/powerpc/powerpc/pmap_dispatch.c +++ b/sys/powerpc/powerpc/pmap_dispatch.c @@ -224,7 +224,7 @@ pmap_mmu_install(char *name, int prio) /* MMU "pre-bootstrap" init, used to install extra resolvers, etc. */ void -pmap_mmu_init() +pmap_mmu_init(void) { if (mmu_obj->funcs->install != NULL) (mmu_obj->funcs->install)(); diff --git a/sys/powerpc/ps3/mmu_ps3.c b/sys/powerpc/ps3/mmu_ps3.c index c21faccf631c..b60e6775be30 100644 --- a/sys/powerpc/ps3/mmu_ps3.c +++ b/sys/powerpc/ps3/mmu_ps3.c @@ -91,7 +91,7 @@ MMU_DEF_INHERIT(ps3_mmu, "mmu_ps3", mps3_methods, oea64_mmu); static struct mtx mps3_table_lock; static void -mps3_install() +mps3_install(void) { moea64_ops = &mps3_funcs; moea64_install(); diff --git a/sys/powerpc/pseries/mmu_phyp.c b/sys/powerpc/pseries/mmu_phyp.c index 67d0b5821f4f..3e32b3cb8a83 100644 --- a/sys/powerpc/pseries/mmu_phyp.c +++ b/sys/powerpc/pseries/mmu_phyp.c @@ -124,7 +124,7 @@ SYSINIT(kvmbugwarn2, SI_SUB_LAST, SI_ORDER_THIRD + 1, print_kvm_bug_warning, NULL); static void -mphyp_install() +mphyp_install(void) { char buf[8]; uint32_t prop[2];