mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
lib/bootconfig: Make xbc_alloc_mem() and xbc_free_mem() as __init function
Since the xbc_alloc_mem() and xbc_free_mem() are used from
the __init functions and memblock_alloc() is __init function,
make them __init functions too.
Link: https://lkml.kernel.org/r/163515075747.547467.5746167540626712819.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Fixes: 4ee1b4cac2
("bootconfig: Cleanup dummy headers in tools/bootconfig")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
17b251a290
commit
4d1c92a4f5
1 changed files with 2 additions and 2 deletions
|
@ -43,12 +43,12 @@ static int open_brace[XBC_DEPTH_MAX] __initdata;
|
||||||
static int brace_index __initdata;
|
static int brace_index __initdata;
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
static inline void *xbc_alloc_mem(size_t size)
|
static inline void * __init xbc_alloc_mem(size_t size)
|
||||||
{
|
{
|
||||||
return memblock_alloc(size, SMP_CACHE_BYTES);
|
return memblock_alloc(size, SMP_CACHE_BYTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void xbc_free_mem(void *addr, size_t size)
|
static inline void __init xbc_free_mem(void *addr, size_t size)
|
||||||
{
|
{
|
||||||
memblock_free_ptr(addr, size);
|
memblock_free_ptr(addr, size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue