Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Prevent gcc from optimizing a few functions away completly.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+2 -2
+2 -2
arch/mips/kernel/gdb-stub.c
··· 1039 1039 * malloc is needed by gdb client in "call func()", even a private one 1040 1040 * will make gdb happy 1041 1041 */ 1042 - static void *malloc(size_t size) 1042 + static void * __attribute_used__ malloc(size_t size) 1043 1043 { 1044 1044 return kmalloc(size, GFP_ATOMIC); 1045 1045 } 1046 1046 1047 - static void free(void *where) 1047 + static void __attribute_used__ free (void *where) 1048 1048 { 1049 1049 kfree(where); 1050 1050 }