hexagon: build error in -next due to 'mm: memcontrol: per-lruvec stats infrastructure'

From: Guenter Roeck
Date: Wed Jun 14 2017 - 03:27:18 EST


Hi,

I see the following build error in -next when building hexagon images.

CC arch/hexagon/kernel/asm-offsets.s
In file included from ./include/linux/memcontrol.h:30:0,
from ./include/linux/swap.h:8,
from ./arch/hexagon/include/asm/pgtable.h:27,
from ./include/linux/mm.h:70,
from arch/hexagon/kernel/asm-offsets.c:28:
./include/linux/vmstat.h: In function '__inc_zone_page_state':
./include/linux/vmstat.h:294:2: error: implicit declaration of function 'page_zone' [-Werror=implicit-function-declaration]
./include/linux/vmstat.h:294:2: warning: passing argument 1 of '__inc_zone_state' makes pointer from integer without a cast [enabled by default]
./include/linux/vmstat.h:267:20: note: expected 'struct zone *' but argument is of type 'int'
./include/linux/vmstat.h: In function '__inc_node_page_state':
./include/linux/vmstat.h:300:2: error: implicit declaration of function 'page_pgdat' [-Werror=implicit-function-declaration]
./include/linux/vmstat.h:300:2: warning: passing argument 1 of '__inc_node_state' makes pointer from integer without a cast [enabled by default]
./include/linux/vmstat.h:273:20: note: expected 'struct pglist_data *' but argument is of type 'int'
./include/linux/vmstat.h: In function '__dec_zone_page_state':
./include/linux/vmstat.h:307:2: warning: passing argument 1 of '__dec_zone_state' makes pointer from integer without a cast [enabled by default]
./include/linux/vmstat.h:279:20: note: expected 'struct zone *' but argument is of type 'int'
./include/linux/vmstat.h: In function '__dec_node_page_state':
./include/linux/vmstat.h:313:2: warning: passing argument 1 of '__dec_node_state' makes pointer from integer without a cast [enabled by default]
./include/linux/vmstat.h:285:20: note: expected 'struct pglist_data *' but argument is of type 'int'

Bisect points to 'mm: memcontrol: per-lruvec stats infrastructure'. Bisect log is attached.

Guenter

---

# bad: [b14746170b0684005bab3e07893e6b91baf7dbf6] Add linux-next specific files for 20170614
# good: [32c1431eea4881a6b17bd7c639315010aeefa452] Linux 4.12-rc5
git bisect start 'HEAD' 'v4.12-rc5'
# good: [0500b956eedb4686b0420308ae01a74b00f9ab64] Merge remote-tracking branch 'crypto/master'
git bisect good 0500b956eedb4686b0420308ae01a74b00f9ab64
# good: [4717c17660509cee9d3596eb19b99f3e26d57c36] Merge remote-tracking branch 'tip/auto-latest'
git bisect good 4717c17660509cee9d3596eb19b99f3e26d57c36
# good: [ad001607f386be7fc1f4353c550e7cf14ac7026c] Merge remote-tracking branch 'slave-dma/next'
git bisect good ad001607f386be7fc1f4353c550e7cf14ac7026c
# good: [0222e195b36f0ae047f728d68f9c2310c1b310e0] Merge remote-tracking branch 'gpio/for-next'
git bisect good 0222e195b36f0ae047f728d68f9c2310c1b310e0
# bad: [ed151d2581a7ed2bcd6cd13e0f7a6980356b0990] ipc: merge ipc_rcu and kern_ipc_perm
git bisect bad ed151d2581a7ed2bcd6cd13e0f7a6980356b0990
# good: [68fd987c837e601ae322ce812968b20d9b0e63d0] mm/oom_kill: count global and memory cgroup oom kills
git bisect good 68fd987c837e601ae322ce812968b20d9b0e63d0
# bad: [d931ca9904caddd5aeca14d8bc89365774075971] sh64: ascii armor the sh64 boot init stack canary
git bisect bad d931ca9904caddd5aeca14d8bc89365774075971
# bad: [7c54a485ad62b9b1c04f1104650bcf6be7fdaf2c] mm: hugetlb: soft-offline: dissolve source hugepage after successful migration
git bisect bad 7c54a485ad62b9b1c04f1104650bcf6be7fdaf2c
# bad: [90cca56e4ed5a8e707dba7bcecd5e72d9f45cd9f] mm: memcontrol: per-lruvec stats infrastructure fix 3
git bisect bad 90cca56e4ed5a8e707dba7bcecd5e72d9f45cd9f
# good: [d955b3fb9e7fb6dfca433d482187636ba2c3938b] mm/zswap.c: delete an error message for a failed memory allocation in zswap_dstmem_prepare()
git bisect good d955b3fb9e7fb6dfca433d482187636ba2c3938b
# good: [9a2176b1242f1f31c4136ac85cfcb0348851ad20] mm: memcontrol: use generic mod_memcg_page_state for kmem pages
git bisect good 9a2176b1242f1f31c4136ac85cfcb0348851ad20
# bad: [5eeb97bbd4d67c49b9bf3108b72b909dd7c6b5ce] mm-memcontrol-per-lruvec-stats-infrastructure-fix
git bisect bad 5eeb97bbd4d67c49b9bf3108b72b909dd7c6b5ce
# bad: [fb6646f52c459b87ecd033521bc6fd0a7640d334] mm: memcontrol: per-lruvec stats infrastructure
git bisect bad fb6646f52c459b87ecd033521bc6fd0a7640d334
# first bad commit: [fb6646f52c459b87ecd033521bc6fd0a7640d334] mm: memcontrol: per-lruvec stats infrastructure