Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0c3a5b5 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

Prevent gcc from optimizing a few functions away completly.

parent 8f40611d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}