]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Add the missing void to function signatures in much of the arm code.
authorandrew <andrew@FreeBSD.org>
Tue, 13 Dec 2016 13:43:22 +0000 (13:43 +0000)
committerandrew <andrew@FreeBSD.org>
Tue, 13 Dec 2016 13:43:22 +0000 (13:43 +0000)
Sponsored by: ABT Systems Ltd

22 files changed:
sys/arm/allwinner/aw_wdog.c
sys/arm/amlogic/aml8726/aml8726_identsoc.c
sys/arm/amlogic/aml8726/aml8726_machdep.c
sys/arm/amlogic/aml8726/aml8726_wdt.c
sys/arm/arm/cpufunc.c
sys/arm/arm/db_trace.c
sys/arm/arm/physmem.c
sys/arm/arm/undefined.c
sys/arm/broadcom/bcm2835/bcm2835_wdog.c
sys/arm/freescale/imx/imx6_anatop.c
sys/arm/freescale/imx/imx6_src.c
sys/arm/lpc/lpc_gpio.c
sys/arm/nvidia/tegra_efuse.c
sys/arm/rockchip/rk30xx_wdog.c
sys/arm/ti/am335x/am335x_dmtpps.c
sys/arm/versatile/versatile_machdep.c
sys/arm/xilinx/zy7_machdep.c
sys/arm/xilinx/zy7_slcr.c
sys/arm/xscale/pxa/pxa_gpio.c
sys/arm/xscale/pxa/pxa_icu.c
sys/arm/xscale/pxa/pxa_space.c
sys/arm/xscale/pxa/pxa_timer.c

index ca1ac0d98a7989472e14a59386a92fa65217a257..8ca9b7d341589afc6b9fb246f39fa1fdb5ab5bc0 100644 (file)
@@ -237,7 +237,7 @@ aw_wdog_shutdown_fn(void *private, int howto)
 }
 
 void
-aw_wdog_watchdog_reset()
+aw_wdog_watchdog_reset(void)
 {
 
        if (aw_wdog_sc == NULL) {
index b10ad163676f8ba2ca7465432ffb8db6c1ece5a7..64c668793d4ab4da25a67c0467a14c8010eb893b 100644 (file)
@@ -87,7 +87,7 @@ static const struct {
 };
 
 void
-aml8726_identify_soc()
+aml8726_identify_soc(void)
 {
        int err;
        struct resource res;
index 68fef27a3d51ec242436c11a3d70d93360f826f7..0929528e1f9e31ef4d541b11bdfcf9587bfbf442 100644 (file)
@@ -56,7 +56,7 @@ vm_offset_t aml8726_aobus_kva_base;
 #endif
 
 static void
-aml8726_fixup_busfreq()
+aml8726_fixup_busfreq(void)
 {
        phandle_t node;
        pcell_t freq, prop;
index 46bafccab95c9cff90824674bf8cdc7d3f76cc96..45f1e6fe6bccfdf8f935f85a70bb8f882d29e260 100644 (file)
@@ -289,7 +289,7 @@ EARLY_DRIVER_MODULE(wdt, simplebus, aml8726_wdt_driver, aml8726_wdt_devclass,
     0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
 
 void
-cpu_reset()
+cpu_reset(void)
 {
 
        /* Watchdog has not yet been initialized */
index c8f6ed591c20a31e8f3b5ff2ee92606349d7579c..bdb67b3f93b90a5ac313de086888fccc2af2b5e4 100644 (file)
@@ -485,7 +485,7 @@ static int  arm_dcache_l2_assoc;
 static int     arm_dcache_l2_linesize;
 
 static void
-get_cachetype_cp15()
+get_cachetype_cp15(void)
 {
        u_int ctype, isize, dsize, cpuid;
        u_int clevel, csize, i, sel;
@@ -600,7 +600,7 @@ get_cachetype_cp15()
  */
 
 int
-set_cpufuncs()
+set_cpufuncs(void)
 {
        cputype = cpu_ident();
        cputype &= CPU_ID_CPU_MASK;
index 846ad4e9915506192cdd775e1721334acca4d5d9..c2b1ed2d63dfcfbd95cf551d5511a181908250a7 100644 (file)
@@ -130,7 +130,7 @@ db_stack_trace_cmd(struct unwind_state *state)
 }
 
 void
-db_md_list_watchpoints()
+db_md_list_watchpoints(void)
 {
 
        dbg_show_watchpoint();
index f6222c39611ccde4bcefde200c194d856f37ab72..ec68c3619a5b94135045a9f3cf00dd2f5de9ed19 100644 (file)
@@ -145,7 +145,7 @@ physmem_dump_tables(int (*prfunc)(const char *, ...))
  * Print the contents of the static mapping table.  Used for bootverbose.
  */
 void
-arm_physmem_print_tables()
+arm_physmem_print_tables(void)
 {
 
        physmem_dump_tables(printf);
index fec194e6625887aeccd9a4b99ba4d3117d91c2e1..5dfa0d454bd308d5fb648f48dcf13bf59b299b50 100644 (file)
@@ -165,7 +165,7 @@ gdb_trapper(u_int addr, u_int insn, struct trapframe *frame, int code)
 static struct undefined_handler gdb_uh;
 
 void
-undefined_init()
+undefined_init(void)
 {
        int loop;
 
index 7a11b660a4ee2beca41c0d69382347d43f1e9de7..45dbdf25827ccf365c3d6979942c3830a7c6cce9 100644 (file)
@@ -190,7 +190,7 @@ bcmwd_watchdog_fn(void *private, u_int cmd, int *error)
 }
 
 void
-bcmwd_watchdog_reset()
+bcmwd_watchdog_reset(void)
 {
 
        if (bcmwd_lsc == NULL)
index 62c5a64d5a8867bc1f49c204fdeaf8f2c45e3129..689df94623cc1835223f1032105aad0f0c6b3028 100644 (file)
@@ -776,7 +776,7 @@ imx6_anatop_probe(device_t dev)
 }
 
 uint32_t 
-imx6_get_cpu_clock()
+imx6_get_cpu_clock(void)
 {
        uint32_t corediv, plldiv;
 
index 400357a5e1ac850f6e7bb8663ab089fc36c817b0..325c8befabc348fead472a6725326652b25f550b 100644 (file)
@@ -70,7 +70,7 @@ WR4(struct src_softc *sc, bus_size_t off, uint32_t val)
 }
 
 int
-src_reset_ipu()
+src_reset_ipu(void)
 {
        uint32_t reg;
        int timeout = 10000;
index 798469d3c85dd14b7dc444bea9eb19be6962e7eb..b062792c55b6d300f7d71a24dc8eb0dc76934780 100644 (file)
@@ -518,7 +518,7 @@ lpc_gpio_get_state(device_t dev, int pin, int *state)
 }
 
 void
-lpc_gpio_init()
+lpc_gpio_init(void)
 {
        bus_space_tag_t bst;
        bus_space_handle_t bsh;
index 13d97abd03354a833ca9bed118992d3b32a0b8c5..96bb12e32287c988949b4f8f0dabce42a99e5906 100644 (file)
@@ -236,7 +236,7 @@ tegra_fuse_read_4(int addr) {
 
 
 static void
-tegra_efuse_dump_sku()
+tegra_efuse_dump_sku(void)
 {
        printf(" TEGRA SKU Info:\n");
        printf("  chip_id: %u\n", tegra_sku_info.chip_id);
index 612b793fcbe438bccc92988ba851f8696e3c4bb3..a24230e03ef4df2b223930cfabf6b6bdf78c91ee 100644 (file)
@@ -170,7 +170,7 @@ rk30_wd_watchdog_fn(void *private, u_int cmd, int *error)
 }
 
 void
-rk30_wd_watchdog_reset()
+rk30_wd_watchdog_reset(void)
 {
        bus_space_handle_t bsh;
 
index 6ed9bd5b21ff3fb1294172487349f1c203bf3523..b05437a26fd213b27069ab48f9bc33a91e08e705 100644 (file)
@@ -163,7 +163,7 @@ dmtpps_translate_nickname(const char *nick)
  * fails that IS an error, return -1.
  */
 static int
-dmtpps_find_tmr_num_by_tunable()
+dmtpps_find_tmr_num_by_tunable(void)
 {
        struct padinfo *pi;
        char iname[20];
@@ -201,7 +201,7 @@ dmtpps_find_tmr_num_by_tunable()
  * input pin.  If so, return the timer number, if not return 0.
  */
 static int
-dmtpps_find_tmr_num_by_padconf()
+dmtpps_find_tmr_num_by_padconf(void)
 {
        int err;
        unsigned int padstate;
@@ -225,7 +225,7 @@ dmtpps_find_tmr_num_by_padconf()
  * configuration.  This is done just once, the first time probe() runs.
  */
 static int
-dmtpps_find_tmr_num()
+dmtpps_find_tmr_num(void)
 {
        int tmr_num;
 
index 2ce2faf969df154a4413c422b28f11d40b16a26a..22cf82b2e1bdba92a044a50c71383daf7bfe3858 100644 (file)
@@ -100,7 +100,7 @@ platform_devmap_init(void)
 }
 
 void
-cpu_reset()
+cpu_reset(void)
 {
        printf("cpu_reset\n");
        while (1);
index 472f70c6473cb115a749125be384e8530e761dd1..3349dd1cb81882febed35d6799224e90c95c69dc 100644 (file)
@@ -91,7 +91,7 @@ platform_devmap_init(void)
 }
 
 void
-cpu_reset()
+cpu_reset(void)
 {
        if (zynq7_cpu_reset != NULL)
                (*zynq7_cpu_reset)();
index bd0311c332035d9c966232d5ce1a29615cb825f3..c630fe6f7ce46338f3b4bea2c73a207d57da09c2 100644 (file)
@@ -496,7 +496,7 @@ zy7_pl_fclk_enabled(int unit)
 }
 
 int
-zy7_pl_level_shifters_enabled()
+zy7_pl_level_shifters_enabled(void)
 {
        struct zy7_slcr_softc *sc = zy7_slcr_softc_p;
 
@@ -513,7 +513,7 @@ zy7_pl_level_shifters_enabled()
 }
 
 void
-zy7_pl_level_shifters_enable()
+zy7_pl_level_shifters_enable(void)
 {
        struct zy7_slcr_softc *sc = zy7_slcr_softc_p;
 
@@ -528,7 +528,7 @@ zy7_pl_level_shifters_enable()
 }
 
 void
-zy7_pl_level_shifters_disable()
+zy7_pl_level_shifters_disable(void)
 {
        struct zy7_slcr_softc *sc = zy7_slcr_softc_p;
 
index ecc220ae55defc6abf4e3ec248bab0b23e4f62d6..a3ad33d98a8bc5c8e83f09b19b22e9eff07f8df5 100644 (file)
@@ -331,7 +331,7 @@ pxa_gpio_unmask_irq(int irq)
 }
 
 int
-pxa_gpio_get_next_irq()
+pxa_gpio_get_next_irq(void)
 {
        struct  pxa_gpio_softc *sc;
        int     gpio;
index 4194da3c036ba454facd5efbfb1af996c8208f85..c375ccba48bc248a54686b50c2e92ea53657cdfb 100644 (file)
@@ -171,7 +171,7 @@ arm_unmask_irq(uintptr_t nb)
 }
 
 uint32_t
-pxa_icu_get_icip()
+pxa_icu_get_icip(void)
 {
 
        return (bus_space_read_4(pxa_icu_softc->pi_bst,
@@ -187,7 +187,7 @@ pxa_icu_clear_icip(int irq)
 }
 
 uint32_t
-pxa_icu_get_icfp()
+pxa_icu_get_icfp(void)
 {
 
        return (bus_space_read_4(pxa_icu_softc->pi_bst,
@@ -203,7 +203,7 @@ pxa_icu_clear_icfp(int irq)
 }
 
 uint32_t
-pxa_icu_get_icmr()
+pxa_icu_get_icmr(void)
 {
 
        return (bus_space_read_4(pxa_icu_softc->pi_bst,
@@ -219,7 +219,7 @@ pxa_icu_set_icmr(uint32_t val)
 }
 
 uint32_t
-pxa_icu_get_iclr()
+pxa_icu_get_iclr(void)
 {
 
        return (bus_space_read_4(pxa_icu_softc->pi_bst,
@@ -235,7 +235,7 @@ pxa_icu_set_iclr(uint32_t val)
 }
 
 uint32_t
-pxa_icu_get_icpr()
+pxa_icu_get_icpr(void)
 {
 
        return (bus_space_read_4(pxa_icu_softc->pi_bst,
@@ -243,7 +243,7 @@ pxa_icu_get_icpr()
 }
 
 void
-pxa_icu_idle_enable()
+pxa_icu_idle_enable(void)
 {
 
        bus_space_write_4(pxa_icu_softc->pi_bst,
@@ -251,7 +251,7 @@ pxa_icu_idle_enable()
 }
 
 void
-pxa_icu_idle_disable()
+pxa_icu_idle_disable(void)
 {
 
        bus_space_write_4(pxa_icu_softc->pi_bst,
index eb8314aeb8e31e41367e55a9b68748ceadbec05e..26c8d576cecc6655016b5f0e8bb9abd27115157c 100644 (file)
@@ -176,7 +176,7 @@ bus_space_tag_t             base_tag = &_base_tag;
 bus_space_tag_t                obio_tag = NULL;
 
 void
-pxa_obio_tag_init()
+pxa_obio_tag_init(void)
 {
 
        bcopy(&_base_tag, &_obio_tag, sizeof(struct bus_space));
index d62c1e1edbc4470ccc1fa53f652d6914cc888930..e13793de67823c36cc340d74940e7a6a03369d9f 100644 (file)
@@ -235,7 +235,7 @@ pxa_timer_set_osmr(int which, uint32_t val)
 }
 
 uint32_t
-pxa_timer_get_oscr()
+pxa_timer_get_oscr(void)
 {
 
        return (bus_space_read_4(timer_softc->pt_bst,
@@ -251,7 +251,7 @@ pxa_timer_set_oscr(uint32_t val)
 }
 
 uint32_t
-pxa_timer_get_ossr()
+pxa_timer_get_ossr(void)
 {
 
        return (bus_space_read_4(timer_softc->pt_bst,
@@ -267,7 +267,7 @@ pxa_timer_clear_ossr(uint32_t val)
 }
 
 void
-pxa_timer_watchdog_enable()
+pxa_timer_watchdog_enable(void)
 {
 
        bus_space_write_4(timer_softc->pt_bst,
@@ -275,7 +275,7 @@ pxa_timer_watchdog_enable()
 }
 
 void
-pxa_timer_watchdog_disable()   
+pxa_timer_watchdog_disable(void)
 {
 
        bus_space_write_4(timer_softc->pt_bst,