From: Vincent Stehlé Date: Tue, 30 Apr 2013 22:26:45 +0000 (-0700) Subject: memory hotplug: fix warnings X-Git-Tag: upstream/snapshot3+hdmi~5241^2~107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ace6128d603d3f15238baba104d0b37ccf0b6c07;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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é Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/memory.h b/include/linux/memory.h index 73817af..85c31a8 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -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); })