138918e0bSBorislav Petkov (AMD)# SPDX-License-Identifier: GPL-2.0 238918e0bSBorislav Petkov (AMD) 338918e0bSBorislav Petkov (AMD)obj-y += core.o 438918e0bSBorislav Petkov (AMD) 538918e0bSBorislav Petkov (AMD)ifdef CONFIG_FUNCTION_TRACER 638918e0bSBorislav Petkov (AMD)CFLAGS_REMOVE_core.o = -pg 738918e0bSBorislav Petkov (AMD)endif 838918e0bSBorislav Petkov (AMD) 938918e0bSBorislav Petkov (AMD)KASAN_SANITIZE_core.o := n 1038918e0bSBorislav Petkov (AMD)KMSAN_SANITIZE_core.o := n 1138918e0bSBorislav Petkov (AMD)KCOV_INSTRUMENT_core.o := n 1238918e0bSBorislav Petkov (AMD) 1338918e0bSBorislav Petkov (AMD)# With some compiler versions the generated code results in boot hangs, caused 1438918e0bSBorislav Petkov (AMD)# by several compilation units. To be safe, disable all instrumentation. 1538918e0bSBorislav Petkov (AMD)KCSAN_SANITIZE := n 16*99b863d2SArd Biesheuvel 17*99b863d2SArd Biesheuvel# Clang 14 and older may fail to respect __no_sanitize_undefined when inlining 18*99b863d2SArd BiesheuvelUBSAN_SANITIZE := n 19