blob: b5b0aa61322ecaedaca55e3d6d0860775ec633fc [file] [log] [blame]
Alexander Potapenkof80be452022-09-15 17:03:45 +02001# SPDX-License-Identifier: GPL-2.0
2kmsan-cflags := -fsanitize=kernel-memory
3
4ifdef CONFIG_KMSAN_CHECK_PARAM_RETVAL
5kmsan-cflags += -fsanitize-memory-param-retval
6endif
7
8export CFLAGS_KMSAN := $(kmsan-cflags)