Commit ffa550cd authored by Jason Yan's avatar Jason Yan Committed by Linus Torvalds

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200921142852.875312-1-yanaijie@huawei.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1e1b6d63
...@@ -2,6 +2,7 @@ ...@@ -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);
......
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