aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValdis Kletnieks <valdis.kletnieks@vt.edu>2020-12-10 15:42:07 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2020-12-16 18:02:57 +1100
commitb22aa998b5a1ae6a0f82124b4f283ed54c07d047 (patch)
tree58fc441daef91bda75d25836e564ebc28e2b672a
parente2622996f4cc5e37afa0655180c65b34f12657bd (diff)
downloadlinux-b22aa998b5a1ae6a0f82124b4f283ed54c07d047.tar.gz
kasan, mm: fix build issue with asmlinkage
commit 2df573d2ca4c1ce6ea33cb7849222f771e759211 Author: Andrey Konovalov <andreyknvl@google.com> Date: Tue Nov 24 16:45:08 2020 +1100 kasan: shadow declarations only for software modes introduces a build failure when it removed an include for linux/pgtable.h It actually only needs linux/linkage.h Test builds on both x86_64 and arm build cleanly Link: https://lkml.kernel.org/r/35126.1606402815@turing-police Link: https://lore.kernel.org/linux-arm-kernel/24105.1606397102@turing-police/ Fixes: 2df573d2ca4c ("kasan: shadow declarations only for software modes") Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Reviewed-by: Marco Elver <elver@google.com> Reviewed-by: Andrey Konovalov <andreyknvl@google.com> Cc: Russell King - ARM Linux admin <linux@armlinux.org.uk> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--include/linux/kasan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kasan.h b/include/linux/kasan.h
index 26f2ab92e7ca..7828436a3a99 100644
--- a/include/linux/kasan.h
+++ b/include/linux/kasan.h
@@ -11,6 +11,7 @@ struct task_struct;
#ifdef CONFIG_KASAN
+#include <linux/linkage.h>
#include <asm/kasan.h>
/* kasan_data struct is used in KUnit tests for KASAN expected failures */