include/linux/hugetlb.h: make isolate_huge_page() an inline
authorNaoya Horiguchi <[email protected]>
Fri, 13 Dec 2013 01:12:19 +0000 (17:12 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Dec 2013 02:19:25 +0000 (18:19 -0800)
commitf40386a4e976acb2bd3e0f9ead11e8e769acbe98
tree7b87fce0a88425cb3c7bafbf52751500063cb117
parent846f29a6afb5f272ee1c8b2a57c5730ab31eabaa
include/linux/hugetlb.h: make isolate_huge_page() an inline

With CONFIG_HUGETLBFS=n:

  mm/migrate.c: In function `do_move_page_to_node_array':
  include/linux/hugetlb.h:140:33: warning: statement with no effect [-Wunused-value]
   #define isolate_huge_page(p, l) false
                                   ^
  mm/migrate.c:1170:4: note: in expansion of macro `isolate_huge_page'
      isolate_huge_page(page, &pagelist);

Reported-by: Borislav Petkov <[email protected]>
Tested-by: Borislav Petkov <[email protected]>
Signed-off-by: Naoya Horiguchi <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/hugetlb.h