linux-next: build warning after merge of the akpm-current tree

From: Stephen Rothwell
Date: Thu Jun 23 2016 - 02:53:39 EST


Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc
ppc64_defconfig and x86_64 allmodconfig) produced this warning:

drivers/base/node.c: In function 'node_read_meminfo':
drivers/base/node.c:127:31: warning: passing argument 1 of 'node_page_state' makes pointer from integer without a cast [-Wint-conversion]
nid, node_page_state(nid, NR_KERNEL_STACK) *
^
In file included from include/linux/mm.h:999:0,
from drivers/base/node.c:7:
include/linux/vmstat.h:200:22: note: expected 'struct pglist_data *' but argument is of type 'int'
extern unsigned long node_page_state(struct pglist_data *pgdat,
^

Introduced by commit

2bfac6c1ec44 ("mm, vmstat: add infrastructure for per-node vmstats")

--
Cheers,
Stephen Rothwell