mm: Fix compile error due to COMPACTION_HPAGE_ORDER
Subsystems (2)
PATCH 1/1 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.
Signed-off-by Nitin Gupta <[email protected]>
To: Andrew Morton <[email protected]>
Reported-by Nathan Chancellor <[email protected]>
Tested-by Nathan Chancellor <[email protected]>
--- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/compaction.c +1 -1
@@ -62,7 +62,7 @@ static const unsigned int HPAGE_FRAG_CHECK_INTERVAL_MSEC = 500;*/ #if definedCONFIG_TRANSPARENT_HUGEPAGE #define COMPACTION_HPAGE_ORDER HPAGE_PMD_ORDER -#elif definedHUGETLB_PAGE_ORDER +#elif definedCONFIG_HUGETLBFS #define COMPACTION_HPAGE_ORDER HUGETLB_PAGE_ORDER#else #define COMPACTION_HPAGE_ORDER (PMD_SHIFT - PAGE_SHIFT)
Signature · 1 line
2.27.0