Re: powerpc/powernv: Fix memtrace build when NUMA=n

2018-05-16 Thread Michael Ellerman
On Thu, 2018-05-10 at 13:09:13 UTC, Michael Ellerman wrote: > Currently memtrace doesn't build if NUMA=n: > > In function ‘memtrace_alloc_node’: > arch/powerpc/platforms/powernv/memtrace.c:134:6: > error: the address of ‘contig_page_data’ will always evaluate as > ‘true’ >

[PATCH] powerpc/powernv: Fix memtrace build when NUMA=n

2018-05-10 Thread Michael Ellerman
Currently memtrace doesn't build if NUMA=n: In function ‘memtrace_alloc_node’: arch/powerpc/platforms/powernv/memtrace.c:134:6: error: the address of ‘contig_page_data’ will always evaluate as ‘true’ if (!NODE_DATA(nid) || !node_spanned_pages(nid)) ^ This is because for NUMA=n