git: 429ba161fbe7 - main - powerpc: fix warning: a function declaration without a prototype is deprecated in all versions of C

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 26 Feb 2023 00:00:34 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/src/commit/?id=429ba161fbe7db72bf9faa3c4eee8e61a7642aba

commit 429ba161fbe7db72bf9faa3c4eee8e61a7642aba
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-02-25 23:34:27 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
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];