migrate: Wrap CONFIG_DEVICE_PRIVATE dependent function declarations with ifdef
PATCH 1/1 migrate: Wrap CONFIG_DEVICE_PRIVATE dependent function declarations with ifdef
'migrate_vma_{setup,pages,finalize}()' functions are defined under CONFIG_DEVICE_PRIVATE, but their declarations are not. This commit wraps the declaration under the config to minimize confusion.
Signed-off-by SeongJae Park <[email protected]>
--- include/linux/migrate.h | 5 +++++ 1 file changed, 5 insertions(+)
include/linux/migrate.h +5 -0
@@ -162,9 +162,14 @@ struct migrate_vma { unsigned long flags; }; +#ifdef CONFIG_DEVICE_PRIVATE +int migrate_vma_setup (struct migrate_vma *args);void migrate_vma_pages (struct migrate_vma *migrate);void migrate_vma_finalize (struct migrate_vma *migrate); + +#endif /* CONFIG_DEVICE_PRIVATE */ +int next_demotion_node (int node);#else /* CONFIG_MIGRATION disabled: */
Signature · 1 line
2.17.1