Commit 80be5998 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Linus Torvalds

tools/bootconfig: Define memblock_free_ptr() to fix build error

The lib/bootconfig.c file is shared with the 'bootconfig' tooling, and
as a result, the changes incommit 77e02cf5 ("memblock: introduce
saner 'memblock_free_ptr()' interface") need to also be reflected in the
tooling header file.

So define the new memblock_free_ptr() wrapper, and remove unused __pa()
and memblock_free().

Fixes: 77e02cf5 ("memblock: introduce saner 'memblock_free_ptr()' interface")
Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3ca706c1
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
#include <stdlib.h> #include <stdlib.h>
#define __pa(addr) (addr)
#define SMP_CACHE_BYTES 0 #define SMP_CACHE_BYTES 0
#define memblock_alloc(size, align) malloc(size) #define memblock_alloc(size, align) malloc(size)
#define memblock_free(paddr, size) free(paddr) #define memblock_free_ptr(paddr, size) free(paddr)
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment