summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/gdb-stub.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-07-14 09:39:46 +0200
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 20:31:52 +0200
commita0c3a5b5a84df11cf6a44fc04cb6f7c0525123a8 (patch)
treeccf2fb288ae0a967315db817e7b6c96a82999313 /arch/mips/kernel/gdb-stub.c
parentDetect the MIPS R2 vectored interrupt, external interrupt controller (diff)
downloadlinux-a0c3a5b5a84df11cf6a44fc04cb6f7c0525123a8.tar.xz
linux-a0c3a5b5a84df11cf6a44fc04cb6f7c0525123a8.zip
Prevent gcc from optimizing a few functions away completly.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/gdb-stub.c')
-rw-r--r--arch/mips/kernel/gdb-stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/gdb-stub.c b/arch/mips/kernel/gdb-stub.c
index 7c46b336c7db..ba0afb4a649c 100644
--- a/arch/mips/kernel/gdb-stub.c
+++ b/arch/mips/kernel/gdb-stub.c
@@ -1039,12 +1039,12 @@ void adel(void)
* 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);
}