The patch titled Subject: include/linux/mm.h: remove dead code totalram_pages_set() has been added to the -mm tree. Its filename is mm-remove-dead-code-totalram_pages_set.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-dead-code-totalram_pages_set.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-dead-code-totalram_pages_set.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wei Yang <richardw.yang@xxxxxxxxxxxxxxx> Subject: include/linux/mm.h: remove dead code totalram_pages_set() No one uses totalram_pages_set(), just remove it. Link: http://lkml.kernel.org/r/20191218005543.24146-1-richardw.yang@xxxxxxxxxxxxxxx Fixes: ca79b0c211af ("mm: convert totalram_pages and totalhigh_pages variables to atomic") Signed-off-by: Wei Yang <richardw.yang@xxxxxxxxxxxxxxx> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mm.h | 5 ----- 1 file changed, 5 deletions(-) --- 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; _ Patches currently in -mm which might be from richardw.yang@xxxxxxxxxxxxxxx are mm-remove-dead-code-totalram_pages_set.patch