patch-2.4.23 linux-2.4.23/arch/ia64/sn/io/sgi_if.c
Next file: linux-2.4.23/arch/ia64/sn/io/sn2/Makefile
Previous file: linux-2.4.23/arch/ia64/sn/io/platform_init/irix_io_init.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/ia64/sn/io/sgi_if.c
- Orig date:
2003-08-25 04:44:39.000000000 -0700
diff -urN linux-2.4.22/arch/ia64/sn/io/sgi_if.c linux-2.4.23/arch/ia64/sn/io/sgi_if.c
@@ -21,11 +21,11 @@
#include <asm/sn/slotnum.h>
void *
-snia_kmem_zalloc(size_t size, int flag)
+snia_kmem_zalloc(size_t size)
{
void *ptr = kmalloc(size, GFP_KERNEL);
if ( ptr )
- BZERO(ptr, size);
+ memset(ptr, 0, size);
return(ptr);
}
@@ -39,21 +39,12 @@
* the alloc/free_node routines do a simple kmalloc for now ..
*/
void *
-snia_kmem_alloc_node(register size_t size, register int flags, cnodeid_t node)
+snia_kmem_alloc_node(register size_t size, cnodeid_t node)
{
/* someday will Allocate on node 'node' */
return(kmalloc(size, GFP_KERNEL));
}
-void *
-snia_kmem_zalloc_node(register size_t size, register int flags, cnodeid_t node)
-{
- void *ptr = kmalloc(size, GFP_KERNEL);
- if ( ptr )
- BZERO(ptr, size);
- return(ptr);
-}
-
/*
* print_register() allows formatted printing of bit fields. individual
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)