提交 a0c3a5b5 编写于 作者: R Ralf Baechle

Prevent gcc from optimizing a few functions away completly.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 8f40611d
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册