Skip to content

Commit fb646a4

Browse files
arndbakpm00
authored andcommitted
kasan: add kasan_tag_mismatch prototype
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. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Marco Elver <[email protected]> Cc: Vincenzo Frascino <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 124abce commit fb646a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mm/kasan/kasan.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,4 +646,7 @@ void *__hwasan_memset(void *addr, int c, size_t len);
646646
void *__hwasan_memmove(void *dest, const void *src, size_t len);
647647
void *__hwasan_memcpy(void *dest, const void *src, size_t len);
648648

649+
void kasan_tag_mismatch(unsigned long addr, unsigned long access_info,
650+
unsigned long ret_ip);
651+
649652
#endif /* __MM_KASAN_KASAN_H */

0 commit comments

Comments
 (0)