Skip to content

Commit a0c3a5b

Browse files
committed
Prevent gcc from optimizing a few functions away completly.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 8f40611 commit a0c3a5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/mips/kernel/gdb-stub.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,12 +1039,12 @@ void adel(void)
10391039
* malloc is needed by gdb client in "call func()", even a private one
10401040
* will make gdb happy
10411041
*/
1042-
static void *malloc(size_t size)
1042+
static void * __attribute_used__ malloc(size_t size)
10431043
{
10441044
return kmalloc(size, GFP_ATOMIC);
10451045
}
10461046

1047-
static void free(void *where)
1047+
static void __attribute_used__ free (void *where)
10481048
{
10491049
kfree(where);
10501050
}

0 commit comments

Comments
 (0)