aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile.kmsan
blob: b5b0aa61322ecaedaca55e3d6d0860775ec633fc (plain)
1
2
3
4
5
6
7
8
# SPDX-License-Identifier: GPL-2.0
kmsan-cflags := -fsanitize=kernel-memory

ifdef CONFIG_KMSAN_CHECK_PARAM_RETVAL
kmsan-cflags += -fsanitize-memory-param-retval
endif

export CFLAGS_KMSAN := $(kmsan-cflags)