x86-64: make access_ok() independent of LAM
[platform/kernel/linux-starfive.git] / mm / util.c
index b8ed9db..dd12b95 100644 (file)
--- a/mm/util.c
+++ b/mm/util.c
@@ -49,6 +49,7 @@ EXPORT_SYMBOL(kfree_const);
  *
  * Return: newly allocated copy of @s or %NULL in case of error
  */
+noinline
 char *kstrdup(const char *s, gfp_t gfp)
 {
        size_t len;