Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

highmem: Remove unused functions

Nothing uses totalhigh_pages_dec() and totalhigh_pages_set().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/r/20201103095856.732891880@linutronix.de

-10
-10
include/linux/highmem.h
··· 104 104 atomic_long_inc(&_totalhigh_pages); 105 105 } 106 106 107 - static inline void totalhigh_pages_dec(void) 108 - { 109 - atomic_long_dec(&_totalhigh_pages); 110 - } 111 - 112 107 static inline void totalhigh_pages_add(long count) 113 108 { 114 109 atomic_long_add(count, &_totalhigh_pages); 115 - } 116 - 117 - static inline void totalhigh_pages_set(long val) 118 - { 119 - atomic_long_set(&_totalhigh_pages, val); 120 110 } 121 111 122 112 void kmap_flush_unused(void);