aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2016-01-20 22:58:12 +0000
committerLinus Torvalds <[email protected]>2016-01-21 01:09:18 +0000
commitf4be6153cca6c88eaf1e52931d9a010ad4ad940e (patch)
tree3dea0998c95f9e339dba4f2191ea360738b188b4 /lib/string_helpers.c
parentthp: fix interrupt unsafe locking in split_huge_page() (diff)
downloadkernel-f4be6153cca6c88eaf1e52931d9a010ad4ad940e.tar.gz
kernel-f4be6153cca6c88eaf1e52931d9a010ad4ad940e.zip
fs/proc/task_mmu.c: add workaround for old compilers
For THP=n, HPAGE_PMD_NR in smaps_account() expands to BUILD_BUG(). That's fine since this codepath is eliminated by modern compilers. But older compilers have not that efficient dead code elimination. It causes problem at least with gcc 4.1.2 on m68k: fs/built-in.o: In function `smaps_account': task_mmu.c:(.text+0x4f8fa): undefined reference to `__compiletime_assert_471' Let's replace HPAGE_PMD_NR with 1 << compound_order(page). Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions