summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2017-08-28 18:14:09 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2017-08-28 18:17:23 +1000
commit222ccc619fde72dcd3755aff350ca07e302c2b0b (patch)
treed1932e9ff9997ae6c7eb5b738bb971ff67064687
parent6a63949dfd8eb5ca66b18f0fba2207af6daf9b69 (diff)
mm/hmm: struct hmm is only use by HMM mirror functionality v2 fix
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--include/linux/hmm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hmm.h b/include/linux/hmm.h
index 9583d9a15f9c..0758072f6585 100644
--- a/include/linux/hmm.h
+++ b/include/linux/hmm.h
@@ -514,5 +514,8 @@ static inline void hmm_mm_init(struct mm_struct *mm) {}
#endif /* IS_ENABLED(CONFIG_HMM_MIRROR) */
+#else /* IS_ENABLED(CONFIG_HMM) */
+static inline void hmm_mm_destroy(struct mm_struct *mm) {}
+static inline void hmm_mm_init(struct mm_struct *mm) {}
#endif /* IS_ENABLED(CONFIG_HMM) */
#endif /* LINUX_HMM_H */