mm/memory_hotplug: add static qualifier for online_policy_to_str()
online_policy_to_str is only used in memory_hotplug.c and should be defined as static. Link: https://lkml.kernel.org/r/20210913024534.26161-1-tangyizhou@huawei.com Signed-off-by: Tang Yizhou <tangyizhou@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
39b2e5cae4
commit
ac62554ba7
@ -57,7 +57,7 @@ enum {
|
||||
ONLINE_POLICY_AUTO_MOVABLE,
|
||||
};
|
||||
|
||||
const char *online_policy_to_str[] = {
|
||||
static const char * const online_policy_to_str[] = {
|
||||
[ONLINE_POLICY_CONTIG_ZONES] = "contig-zones",
|
||||
[ONLINE_POLICY_AUTO_MOVABLE] = "auto-movable",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user