From fdf715588619e5ec000aaa9084afe8140ff2f3e2 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Fri, 12 Jun 2009 12:17:32 +0000 Subject: [PATCH] - Fix functions prototypes to make compiler happy --- sys/mips/atheros/ar71xx_pci.c | 8 ++++---- sys/mips/atheros/if_arge.c | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/sys/mips/atheros/ar71xx_pci.c b/sys/mips/atheros/ar71xx_pci.c index 5a3697d80c4a..6d3430b1821e 100644 --- a/sys/mips/atheros/ar71xx_pci.c +++ b/sys/mips/atheros/ar71xx_pci.c @@ -182,8 +182,8 @@ ar71xx_pci_conf_setup(int bus, int slot, int func, int reg, int bytes, } static uint32_t -ar71xx_pci_read_config(device_t dev, int bus, int slot, int func, int reg, - int bytes) +ar71xx_pci_read_config(device_t dev, u_int bus, u_int slot, u_int func, + u_int reg, int bytes) { uint32_t data; uint32_t cmd, shift, mask; @@ -219,8 +219,8 @@ ar71xx_pci_read_config(device_t dev, int bus, int slot, int func, int reg, } static void -ar71xx_pci_write_config(device_t dev, int bus, int slot, int func, int reg, - uint32_t data, int bytes) +ar71xx_pci_write_config(device_t dev, u_int bus, u_int slot, u_int func, + u_int reg, uint32_t data, int bytes) { uint32_t cmd; diff --git a/sys/mips/atheros/if_arge.c b/sys/mips/atheros/if_arge.c index 08cd443b62f6..5a6244efe83c 100644 --- a/sys/mips/atheros/if_arge.c +++ b/sys/mips/atheros/if_arge.c @@ -106,7 +106,7 @@ static int arge_tx_ring_init(struct arge_softc *); #ifdef DEVICE_POLLING static void arge_poll(struct ifnet *, enum poll_cmd, int); #endif -static void arge_shutdown(device_t); +static int arge_shutdown(device_t); static void arge_start(struct ifnet *); static void arge_start_locked(struct ifnet *); static void arge_stop(struct arge_softc *); @@ -459,7 +459,7 @@ arge_resume(device_t dev) return 0; } -static void +static int arge_shutdown(device_t dev) { struct arge_softc *sc; @@ -469,6 +469,8 @@ arge_shutdown(device_t dev) ARGE_LOCK(sc); arge_stop(sc); ARGE_UNLOCK(sc); + + return (0); } static int