svn commit: r194059 - projects/mips/sys/mips/atheros

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Jun 12 12:17:33 UTC 2009


Author: gonzo
Date: Fri Jun 12 12:17:32 2009
New Revision: 194059
URL: http://svn.freebsd.org/changeset/base/194059

Log:
  - Fix functions prototypes to make compiler happy

Modified:
  projects/mips/sys/mips/atheros/ar71xx_pci.c
  projects/mips/sys/mips/atheros/if_arge.c

Modified: projects/mips/sys/mips/atheros/ar71xx_pci.c
==============================================================================
--- projects/mips/sys/mips/atheros/ar71xx_pci.c	Fri Jun 12 12:10:10 2009	(r194058)
+++ projects/mips/sys/mips/atheros/ar71xx_pci.c	Fri Jun 12 12:17:32 2009	(r194059)
@@ -182,8 +182,8 @@ ar71xx_pci_conf_setup(int bus, int slot,
 }
 
 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
 }
 
 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;
 

Modified: projects/mips/sys/mips/atheros/if_arge.c
==============================================================================
--- projects/mips/sys/mips/atheros/if_arge.c	Fri Jun 12 12:10:10 2009	(r194058)
+++ projects/mips/sys/mips/atheros/if_arge.c	Fri Jun 12 12:17:32 2009	(r194059)
@@ -106,7 +106,7 @@ static int arge_tx_ring_init(struct arge
 #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


More information about the svn-src-projects mailing list