Archived
14
0
Fork 0

Prevent gcc from optimizing a few functions away completly.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle 2005-07-14 07:39:46 +00:00
parent 8f40611d2b
commit a0c3a5b5a8

View file

@ -1039,12 +1039,12 @@ void adel(void)
* malloc is needed by gdb client in "call func()", even a private one * malloc is needed by gdb client in "call func()", even a private one
* will make gdb happy * will make gdb happy
*/ */
static void *malloc(size_t size) static void * __attribute_used__ malloc(size_t size)
{ {
return kmalloc(size, GFP_ATOMIC); return kmalloc(size, GFP_ATOMIC);
} }
static void free(void *where) static void __attribute_used__ free (void *where)
{ {
kfree(where); kfree(where);
} }