diff options
author | Oscar Salvador | 2017-11-16 02:39:18 +0100 |
---|---|---|
committer | Linus Torvalds | 2017-11-16 03:21:07 +0100 |
commit | 0cd842f97069c68718bef21ad2dc96a0578567ec (patch) | |
tree | bcb5407339610e634732e4858c1af3676f8d4349 /drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | |
parent | mm: simplify nodemask printing (diff) | |
download | kernel-qcow2-linux-0cd842f97069c68718bef21ad2dc96a0578567ec.tar.gz kernel-qcow2-linux-0cd842f97069c68718bef21ad2dc96a0578567ec.tar.xz kernel-qcow2-linux-0cd842f97069c68718bef21ad2dc96a0578567ec.zip |
mm: make alloc_node_mem_map a void call if we don't have CONFIG_FLAT_NODE_MEM_MAP
free_area_init_node() calls alloc_node_mem_map(), but this function does
nothing unless we have CONFIG_FLAT_NODE_MEM_MAP.
As a cleanup, we can move the "#ifdef CONFIG_FLAT_NODE_MEM_MAP" within
alloc_node_mem_map() out of the function, and define a
alloc_node_mem_map() { } when CONFIG_FLAT_NODE_MEM_MAP is not present.
This also moves the printk that lays within the "#ifdef
CONFIG_FLAT_NODE_MEM_MAP" block from free_area_init_node() to
alloc_node_mem_map(), getting rid of the "#ifdef
CONFIG_FLAT_NODE_MEM_MAP" in free_area_init_node().
[akpm@linux-foundation.org: clean up the printk while we're there]
Link: http://lkml.kernel.org/r/20171114111935.GA11758@techadventures.net
Signed-off-by: Oscar Salvador <osalvador@techadventures.net>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c')
0 files changed, 0 insertions, 0 deletions