Skip to content

Commit

Permalink
Prevent gcc from optimizing a few functions away completly.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 8f40611 commit a0c3a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/kernel/gdb-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a0c3a5b

Please sign in to comment.