In an upcoming commit we are going to need to call kasan_hw_tags_enabled() from arch/arm64/include/asm/mte.h. This would create a circular dependency between headers if KASAN_GENERIC or KASAN_SW_TAGS is enabled: linux/kasan.h -> linux/pgtable.h -> asm/pgtable.h -> asm/mte.h -> linux/kasan.h. Break the cycle by introducing a new header linux/kasan-enabled.h with the kasan_*enabled() functions that can be included from asm/mte.h. Link: https://linux-review.googlesource.com/id/I5b0d96c6ed0026fc790899e14d42b2fac6ab568e Signed-off-by: Peter Collingbourne <pcc@google.com> Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com> Link: https://lore.kernel.org/r/20220219012945.894950-1-pcc@google.com Signed-off-by: Will Deacon <will@kernel.org> Change-Id: I984365534f5ed76ed0ff79fce62b09afbbc92982 Bug: 238956478 (cherry picked from commit f9b5e46f4097eb298f68e5b02f70697a90a44739) Change-Id: I631ae7d32ed560dd22917a4691c498e234b4f51d Signed-off-by: Jaewon Kim <jaewon31.kim@samsung.com>
14 KiB
14 KiB