mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
memory hotplug: fix warnings
Fix the following compilation warnings: mm/slab.c: In function `kmem_cache_init_late': mm/slab.c:1778:2: warning: statement with no effect [-Wunused-value] mm/page_cgroup.c: In function `page_cgroup_init': mm/page_cgroup.c:305:2: warning: statement with no effect [-Wunused-value] Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
677a0b5ac1
commit
ace6128d60
@ -137,7 +137,7 @@ enum mem_add_context { BOOT, HOTPLUG };
|
||||
#define register_hotmemory_notifier(nb) register_memory_notifier(nb)
|
||||
#define unregister_hotmemory_notifier(nb) unregister_memory_notifier(nb)
|
||||
#else
|
||||
#define hotplug_memory_notifier(fn, pri) (0)
|
||||
#define hotplug_memory_notifier(fn, pri) ({ 0; })
|
||||
/* These aren't inline functions due to a GCC bug. */
|
||||
#define register_hotmemory_notifier(nb) ({ (void)(nb); 0; })
|
||||
#define unregister_hotmemory_notifier(nb) ({ (void)(nb); })
|
||||
|
Loading…
Reference in New Issue
Block a user