mm/hmm: fix build when HMM is disabled
PATCH 31/126 mm/hmm: fix build when HMM is disabled
From: Jérôme Glisse <[email protected]>
Subject: mm/hmm: fix build when HMM is disabled
Combinatorial Kconfig is painfull. Withi this patch all below combination build.
1)
2)CONFIG_HMM_MIRROR=y
3)CONFIG_DEVICE_PRIVATE=y
4)CONFIG_DEVICE_PUBLIC=y
5)CONFIG_HMM_MIRROR=yCONFIG_DEVICE_PUBLIC=y
6)CONFIG_HMM_MIRROR=yCONFIG_DEVICE_PRIVATE=y
7)CONFIG_DEVICE_PRIVATE=yCONFIG_DEVICE_PUBLIC=y
8)CONFIG_HMM_MIRROR=yCONFIG_DEVICE_PRIVATE=yCONFIG_DEVICE_PUBLIC=y
Reported-by Randy Dunlap <[email protected]>
Signed-off-by Jérôme Glisse <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/hmm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/hmm.h renamed from include/linux/hmm.h~mm-hmm-fix-build-when-hmm-is-disabled +0 -0
@@ -498,7 +498,7 @@ struct hmm_device {struct hmm_device *hmm_device_new (void *drvdata);void hmm_device_put (struct hmm_device *hmm_device);#endif /* CONFIG_DEVICE_PRIVATE || CONFIG_DEVICE_PUBLIC */