CVSROOT: /home/cvs
Module name: linux
Changes by: ralf@ftp.linux-mips.org 05/07/14 08:39:46
Modified files:
arch/mips/kernel: gdb-stub.c
Log message:
Prevent gcc from optimizing a few functions away completly.
diff -urN linux/arch/mips/kernel/gdb-stub.c linux/arch/mips/kernel/gdb-stub.c
--- linux/arch/mips/kernel/gdb-stub.c 2005/07/11 10:03:25 1.35
+++ linux/arch/mips/kernel/gdb-stub.c 2005/07/14 07:39:46 1.36
@@ -1039,12 +1039,12 @@
* malloc is needed by gdb client in "call func()", even a private one
* will make gdb happy
*/
-static void *malloc(size_t size)
+static void * __attribute_used__ malloc(size_t size)
{
return kmalloc(size, GFP_ATOMIC);
}
-static void free(void *where)
+static void __attribute_used__ free (void *where)
{
kfree(where);
}
|