git: 9b02f2daf448 - main - powerpc: Use valid prototypes for function declarations with no arguments.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Apr 2023 15:54:13 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=9b02f2daf4480ef5926d61e5a605d028ace0b522
commit 9b02f2daf4480ef5926d61e5a605d028ace0b522
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-24 15:53:50 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-24 15:53:50 +0000
powerpc: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D39733
---
sys/contrib/ncsw/user/env/core.c | 2 +-
sys/powerpc/aim/mmu_oea.c | 4 ++--
sys/powerpc/booke/pmap.c | 6 +++---
sys/powerpc/cpufreq/mpc85xx_jog.c | 2 +-
sys/powerpc/powerpc/elf32_machdep.c | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/sys/contrib/ncsw/user/env/core.c b/sys/contrib/ncsw/user/env/core.c
index 751867526fe2..5a2e811fc8e0 100644
--- a/sys/contrib/ncsw/user/env/core.c
+++ b/sys/contrib/ncsw/user/env/core.c
@@ -33,7 +33,7 @@
#include "types_ext.h"
#include "core_ext.h"
-uint32_t E500_GetId()
+uint32_t E500_GetId(void)
{
return PCPU_GET(cpuid);
}
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c
index d646312eff4a..1e4e93c7b874 100644
--- a/sys/powerpc/aim/mmu_oea.c
+++ b/sys/powerpc/aim/mmu_oea.c
@@ -1311,7 +1311,7 @@ moea_extract_and_hold(pmap_t pmap, vm_offset_t va, vm_prot_t prot)
}
void
-moea_init()
+moea_init(void)
{
moea_upvo_zone = uma_zcreate("UPVO entry", sizeof (struct pvo_entry),
@@ -2775,7 +2775,7 @@ moea_dumpsys_map(vm_paddr_t pa, size_t sz, void **va)
extern struct dump_pa dump_map[PHYS_AVAIL_SZ + 1];
void
-moea_scan_init()
+moea_scan_init(void)
{
struct pvo_entry *pvo;
vm_offset_t va;
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index bed0b2b4b174..606669a07b2f 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -1054,7 +1054,7 @@ mmu_booke_kextract(vm_offset_t va)
* system needs to map virtual memory.
*/
static void
-mmu_booke_init()
+mmu_booke_init(void)
{
int shpgperproc = PMAP_SHPGPERPROC;
@@ -2119,7 +2119,7 @@ mmu_booke_dumpsys_unmap(vm_paddr_t pa, size_t sz, void *va)
extern struct dump_pa dump_map[PHYS_AVAIL_SZ + 1];
void
-mmu_booke_scan_init()
+mmu_booke_scan_init(void)
{
vm_offset_t va;
pte_t *pte;
@@ -2822,7 +2822,7 @@ tlb1_mapin_region(vm_offset_t va, vm_paddr_t pa, vm_size_t size, int wimge)
* assembler level setup done in locore.S.
*/
void
-tlb1_init()
+tlb1_init(void)
{
vm_offset_t mas2;
uint32_t mas0, mas1, mas3, mas7;
diff --git a/sys/powerpc/cpufreq/mpc85xx_jog.c b/sys/powerpc/cpufreq/mpc85xx_jog.c
index edced1237d71..31b3143cc42c 100644
--- a/sys/powerpc/cpufreq/mpc85xx_jog.c
+++ b/sys/powerpc/cpufreq/mpc85xx_jog.c
@@ -121,7 +121,7 @@ static struct ofw_compat_data jog_compat[] = {
};
static struct ofw_compat_data *
-mpc85xx_jog_devcompat()
+mpc85xx_jog_devcompat(void)
{
phandle_t node;
int i;
diff --git a/sys/powerpc/powerpc/elf32_machdep.c b/sys/powerpc/powerpc/elf32_machdep.c
index c518080ebad3..7a035361b83f 100644
--- a/sys/powerpc/powerpc/elf32_machdep.c
+++ b/sys/powerpc/powerpc/elf32_machdep.c
@@ -407,7 +407,7 @@ elf_cpu_unload_file(linker_file_t lf __unused)
}
static void
-ppc32_runtime_resolve()
+ppc32_runtime_resolve(void)
{
/*