mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
lib/memregion.c: include memregion.h
This addresses the following sparse warning: lib/memregion.c:8:5: warning: symbol 'memregion_alloc' was not declared. Should it be static? lib/memregion.c:14:6: warning: symbol 'memregion_free' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20200921142852.875312-1-yanaijie@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1e1b6d63d6
commit
ffa550cd69
@ -2,6 +2,7 @@
|
|||||||
/* identifiers for device / performance-differentiated memory regions */
|
/* identifiers for device / performance-differentiated memory regions */
|
||||||
#include <linux/idr.h>
|
#include <linux/idr.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
#include <linux/memregion.h>
|
||||||
|
|
||||||
static DEFINE_IDA(memregion_ids);
|
static DEFINE_IDA(memregion_ids);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user