瀏覽代碼

Prevent gcc from optimizing a few functions away completly.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 20 年之前
父節點
當前提交
a0c3a5b5a8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/mips/kernel/gdb-stub.c

+ 2 - 2
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);
 }