patch-2.4.22 linux-2.4.22/arch/mips/kernel/irixinv.c
Next file: linux-2.4.22/arch/mips/kernel/irixsig.c
Previous file: linux-2.4.22/arch/mips/kernel/irixelf.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/kernel/irixinv.c
- Orig date:
2002-11-28 15:53:10.000000000 -0800
diff -urN linux-2.4.21/arch/mips/kernel/irixinv.c linux-2.4.22/arch/mips/kernel/irixinv.c
@@ -16,8 +16,7 @@
static inventory_t inventory [MAX_INVENTORY];
-void
-add_to_inventory (int class, int type, int controller, int unit, int state)
+void add_to_inventory (int class, int type, int controller, int unit, int state)
{
inventory_t *ni = &inventory [inventory_items];
@@ -33,8 +32,7 @@
inventory_items++;
}
-int
-dump_inventory_to_user (void *userbuf, int size)
+int dump_inventory_to_user (void *userbuf, int size)
{
inventory_t *inv = &inventory [0];
inventory_t *user = userbuf;
@@ -51,13 +49,13 @@
return inventory_items * sizeof (inventory_t);
}
-void __init init_inventory (void)
+static int __init init_inventory(void)
{
- /* gross hack while we put the right bits all over the kernel
+ /*
+ * gross hack while we put the right bits all over the kernel
* most likely this will not let just anyone run the X server
* until we put the right values all over the place
*/
-
add_to_inventory (10, 3, 0, 0, 16400);
add_to_inventory (1, 1, 150, -1, 12);
add_to_inventory (1, 3, 0, 0, 8976);
@@ -76,6 +74,8 @@
add_to_inventory (2, 2, 0, 2, 0);
add_to_inventory (2, 2, 0, 1, 0);
add_to_inventory (7, 14, 0, 0, 6);
+
+ return 0;
}
module_init(init_inventory);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)