]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix compile error due to COMPACTION_HPAGE_ORDER
authorNitin Gupta <nigupta@nvidia.com>
Wed, 12 Aug 2020 01:31:04 +0000 (18:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Aug 2020 17:57:56 +0000 (10:57 -0700)
commit458cb6d37cc7ef22dc307fd10f8bc171f77f293f
tree3998e6bdbc21e5462079a366d678ba82e9190b4b
parentc12a94ddbb5166e324267737112700c02096b37d
mm: fix compile error due to COMPACTION_HPAGE_ORDER

Fix compile error when COMPACTION_HPAGE_ORDER is assigned to
HUGETLB_PAGE_ORDER.  The correct way to check if this constant is defined
is to check for CONFIG_HUGETLBFS.

Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Nitin Gupta <nigupta@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Link: http://lkml.kernel.org/r/20200623064544.25766-1-nigupta@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c