--- a/include/linux/mm.h~mm-remove-dead-code-totalram_pages_set +++ a/include/linux/mm.h @@ -70,11 +70,6 @@ static inline void totalram_pages_add(lo atomic_long_add(count, &_totalram_pages); } -static inline void totalram_pages_set(long val) -{ - atomic_long_set(&_totalram_pages, val); -} - extern void * high_memory; extern int page_cluster;