From: Tang Yizhou Date: Fri, 5 Nov 2021 20:44:08 +0000 (-0700) Subject: mm/memory_hotplug: add static qualifier for online_policy_to_str() X-Git-Tag: v6.6.17~8900^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac62554ba7060c8824d7821c1342673f1e13c31d;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Muchun Song Reviewed-by: David Hildenbrand Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index feffaa9..afaae370 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -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", };