From 0a81e68654ab7573f4922fe168dae6748f352ab8 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Fri, 17 Jan 2020 14:20:06 -0800 Subject: [PATCH] ANDROID: GKI: mm: Export symbols __next_zones_zonelist and zone_watermark_ok_safe These symbols are required to modularize driver for qcom,msm-ion. Bug: 147914088 Change-Id: Ice7f76c6a52c6cc94ad7076a1c2396a90d6aa9ca Signed-off-by: Hridya Valsaraju Signed-off-by: Saravana Kannan --- mm/mmzone.c | 1 + mm/page_alloc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/mm/mmzone.c b/mm/mmzone.c index 4686fdc23bb9..4dd4f96ddfc0 100644 --- a/mm/mmzone.c +++ b/mm/mmzone.c @@ -71,6 +71,7 @@ struct zoneref *__next_zones_zonelist(struct zoneref *z, return z; } +EXPORT_SYMBOL_GPL(__next_zones_zonelist); #ifdef CONFIG_ARCH_HAS_HOLES_MEMORYMODEL bool memmap_valid_within(unsigned long pfn, diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e22967a84da9..56f82c3052c7 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3441,6 +3441,7 @@ bool zone_watermark_ok_safe(struct zone *z, unsigned int order, return __zone_watermark_ok(z, order, mark, classzone_idx, 0, free_pages); } +EXPORT_SYMBOL_GPL(zone_watermark_ok_safe); #ifdef CONFIG_NUMA static bool zone_allows_reclaim(struct zone *local_zone, struct zone *zone)