]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-simplify-lock_page_memcg-fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Feb 2016 23:12:28 +0000 (10:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:12:28 +0000 (10:12 +1100)
In file included from include/linux/swap.h:8,
                 from include/linux/suspend.h:4,
                 from arch/x86/kernel/asm-offsets.c:12:
include/linux/memcontrol.h: In function 'lock_page_memcg':
include/linux/memcontrol.h:666: warning: 'return' with a value, in function returning void
In file included from include/linux/swap.h:8,
                 from mm/mlock.c:11:
include/linux/memcontrol.h: In function 'lock_page_memcg':
include/linux/memcontrol.h:666: warning: 'return' with a value, in function returning void

Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h

index 2ee74d0bc16791f4e7d644042c0fd0250640601b..d560c9a3cadf2d438afc08452932a68b1dfc83f2 100644 (file)
@@ -663,7 +663,6 @@ mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p)
 
 static inline void lock_page_memcg(struct page *page)
 {
-       return NULL;
 }
 
 static inline void unlock_page_memcg(struct page *page)