diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-09-25 21:19:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-26 10:33:57 -0700 |
commit | ffa550cd691b8ba6c6117ce986516635afe03c13 (patch) | |
tree | 1f4969b7702dfa39b028bd1202a178a8cc1a5d01 | |
parent | 1e1b6d63d6340764e00356873e5794225a2a03ea (diff) | |
download | linux-ffa550cd691b8ba6c6117ce986516635afe03c13.tar.gz linux-ffa550cd691b8ba6c6117ce986516635afe03c13.tar.bz2 linux-ffa550cd691b8ba6c6117ce986516635afe03c13.zip |
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>
-rw-r--r-- | lib/memregion.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/memregion.c b/lib/memregion.c index 77c85b5251da..be5cfa5a3b57 100644 --- a/lib/memregion.c +++ b/lib/memregion.c @@ -2,6 +2,7 @@ /* identifiers for device / performance-differentiated memory regions */ #include <linux/idr.h> #include <linux/types.h> +#include <linux/memregion.h> static DEFINE_IDA(memregion_ids); |