path: root/arch/cris/mm
diff options
authorDave Hansen <>2016-02-12 13:01:55 -0800
committerIngo Molnar <>2016-02-16 10:11:12 +0100
commitcde70140fed8429acf7a14e2e2cbd3e329036653 (patch)
treeaa684e9cae39005e66ab4b7d2b801beade6fa9ab /arch/cris/mm
parent1e9877902dc7e11d2be038371c6fbf2dfcd469d7 (diff)
mm/gup: Overload get_user_pages() functions
The concept here was a suggestion from Ingo. The implementation horrors are all mine. This allows get_user_pages(), get_user_pages_unlocked(), and get_user_pages_locked() to be called with or without the leading tsk/mm arguments. We will give a compile-time warning about the old style being __deprecated and we will also WARN_ON() if the non-remote version is used for a remote-style access. Doing this, folks will get nice warnings and will not break the build. This should be nice for -next and will hopefully let developers fix up their own code instead of maintainers needing to do it at merge time. The way we do this is hideous. It uses the __VA_ARGS__ macro functionality to call different functions based on the number of arguments passed to the macro. There's an additional hack to ensure that our EXPORT_SYMBOL() of the deprecated symbols doesn't trigger a warning. We should be able to remove this mess as soon as -rc1 hits in the release after this is merged. Signed-off-by: Dave Hansen <> Cc: Al Viro <> Cc: Alexander Kuleshov <> Cc: Andrea Arcangeli <> Cc: Andrew Morton <> Cc: Dan Williams <> Cc: Dave Hansen <> Cc: Dominik Dingel <> Cc: Geliang Tang <> Cc: Jan Kara <> Cc: Johannes Weiner <> Cc: Kirill A. Shutemov <> Cc: Konstantin Khlebnikov <> Cc: Leon Romanovsky <> Cc: Linus Torvalds <> Cc: Masahiro Yamada <> Cc: Mateusz Guzik <> Cc: Maxime Coquelin <> Cc: Michal Hocko <> Cc: Naoya Horiguchi <> Cc: Oleg Nesterov <> Cc: Paul Gortmaker <> Cc: Peter Zijlstra <> Cc: Srikar Dronamraju <> Cc: Thomas Gleixner <> Cc: Vladimir Davydov <> Cc: Vlastimil Babka <> Cc: Xie XiuQi <> Cc: Cc: Link: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'arch/cris/mm')
0 files changed, 0 insertions, 0 deletions