[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230509145735.9263-1-arnd@kernel.org>
Date: Tue, 9 May 2023 16:57:20 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Andrey Ryabinin <ryabinin.a.a@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Arnd Bergmann <arnd@...db.de>,
Alexander Potapenko <glider@...gle.com>,
Andrey Konovalov <andreyknvl@...il.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Vincenzo Frascino <vincenzo.frascino@....com>,
Marco Elver <elver@...gle.com>, kasan-dev@...glegroups.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] kasan: add kasan_tag_mismatch prototype
From: Arnd Bergmann <arnd@...db.de>
The kasan sw-tags implementation contains one function that is only
called from assembler and has no prototype in a header. This causes
a W=1 warning:
mm/kasan/sw_tags.c:171:6: warning: no previous prototype for 'kasan_tag_mismatch' [-Wmissing-prototypes]
171 | void kasan_tag_mismatch(unsigned long addr, unsigned long access_info,
Add a prototype in the local header to get a clean build.
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
mm/kasan/kasan.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mm/kasan/kasan.h b/mm/kasan/kasan.h
index f5e4f5f2ba20..cd846ca34f44 100644
--- a/mm/kasan/kasan.h
+++ b/mm/kasan/kasan.h
@@ -646,4 +646,7 @@ void *__hwasan_memset(void *addr, int c, size_t len);
void *__hwasan_memmove(void *dest, const void *src, size_t len);
void *__hwasan_memcpy(void *dest, const void *src, size_t len);
+void kasan_tag_mismatch(unsigned long addr, unsigned long access_info,
+ unsigned long ret_ip);
+
#endif /* __MM_KASAN_KASAN_H */
--
2.35.1
Powered by blists - more mailing lists