Skip to content

Commit b859ebe

Browse files
paulsemelctmarinas
authored andcommitted
arm64: kasan: fix include error in MTE functions
Fix `error: expected string literal in 'asm'`. This happens when compiling an ebpf object file that includes `net/net_namespace.h` from linux kernel headers. Include trace: include/net/net_namespace.h:10 include/linux/workqueue.h:9 include/linux/timer.h:8 include/linux/debugobjects.h:6 include/linux/spinlock.h:90 include/linux/workqueue.h:9 arch/arm64/include/asm/spinlock.h:9 arch/arm64/include/generated/asm/qrwlock.h:1 include/asm-generic/qrwlock.h:14 arch/arm64/include/asm/processor.h:33 arch/arm64/include/asm/kasan.h:9 arch/arm64/include/asm/mte-kasan.h:45 arch/arm64/include/asm/mte-def.h:14 Signed-off-by: Paul Semel <[email protected]> Fixes: 2cb3427 ("arm64: kasan: simplify and inline MTE functions") Cc: <[email protected]> # 5.12.x Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 6e2edd6 commit b859ebe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/include/asm/mte-kasan.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef __ASM_MTE_KASAN_H
66
#define __ASM_MTE_KASAN_H
77

8+
#include <asm/compiler.h>
89
#include <asm/mte-def.h>
910

1011
#ifndef __ASSEMBLY__

0 commit comments

Comments
 (0)