patch-2.1.16 linux/arch/sparc/prom/memory.c

Next file: linux/arch/sparc/prom/ranges.c
Previous file: linux/arch/sparc/prom/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.15/linux/arch/sparc/prom/memory.c linux/arch/sparc/prom/memory.c
@@ -1,4 +1,4 @@
-/* $Id: memory.c,v 1.8 1996/07/12 05:14:56 tridge Exp $
+/* $Id: memory.c,v 1.9 1996/11/13 05:10:09 davem Exp $
  * memory.c: Prom routine for acquiring various bits of information
  *           about RAM on the machine, both virtual and physical.
  *
@@ -7,6 +7,7 @@
 
 #include <linux/config.h>
 #include <linux/kernel.h>
+#include <linux/init.h>
 
 #include <asm/openprom.h>
 #include <asm/oplib.h>
@@ -36,8 +37,8 @@
 /* Internal Prom library routine to sort a linux_mlist_v0 memory
  * list.  Used below in initialization.
  */
-void
-prom_sortmemlist(struct linux_mlist_v0 *thislist)
+__initfunc(static void
+prom_sortmemlist(struct linux_mlist_v0 *thislist))
 {
 	int swapi = 0;
 	int i, mitr, tmpsize;
@@ -66,8 +67,7 @@
 }
 
 /* Initialize the memory lists based upon the prom version. */
-void
-prom_meminit(void)
+__initfunc(void prom_meminit(void))
 {
 	int node = 0;
 	unsigned int iter, num_regs;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov