From eb89326ad5aeae94fbffb56001bc94bfae8c7857 Mon Sep 17 00:00:00 2001 From: "yang.yang29@zte.com.cn" Date: Fri, 2 Jun 2023 16:13:24 +0800 Subject: [PATCH 1/2] mm/highmem: Un-EXPORT __kmap_atomic_idx() commit 90a44a01d38da83f7ea1ea7d758d2c8abda2b4b8 upstream. Nothing in modules can use that. Signed-off-by: Thomas Gleixner Reviewed-by: Christoph Hellwig Cc: Andrew Morton Cc: linux-mm@kvack.org Signed-off-by: Sebastian Andrzej Siewior --- mm/highmem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/highmem.c b/mm/highmem.c index 1352a27951e3..6abfd762eee7 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -108,8 +108,6 @@ static inline wait_queue_head_t *get_pkmap_wait_queue_head(unsigned int color) atomic_long_t _totalhigh_pages __read_mostly; EXPORT_SYMBOL(_totalhigh_pages); -EXPORT_PER_CPU_SYMBOL(__kmap_atomic_idx); - unsigned int nr_free_highpages (void) { struct zone *zone; -- Gitee From c632981c2229b6d8611a2c709fda1c5b2b5e0161 Mon Sep 17 00:00:00 2001 From: "yang.yang29@zte.com.cn" Date: Fri, 2 Jun 2023 16:15:28 +0800 Subject: [PATCH 2/2] highmem: Remove unused functions commit 0a0c2d5556c2d4d2efa2842f5547f9fcab0ceb8f upstream. Nothing uses totalhigh_pages_dec() and totalhigh_pages_set(). Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior --- include/linux/highmem.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 41c26f14131c..140fe80bf46f 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -104,21 +104,11 @@ static inline void totalhigh_pages_inc(void) atomic_long_inc(&_totalhigh_pages); } -static inline void totalhigh_pages_dec(void) -{ - atomic_long_dec(&_totalhigh_pages); -} - static inline void totalhigh_pages_add(long count) { atomic_long_add(count, &_totalhigh_pages); } -static inline void totalhigh_pages_set(long val) -{ - atomic_long_set(&_totalhigh_pages, val); -} - void kmap_flush_unused(void); struct page *kmap_to_page(void *addr); -- Gitee