Alexander Potapenko | f80be45 | 2022-09-15 17:03:45 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | kmsan-cflags := -fsanitize=kernel-memory |
| 3 | |
| 4 | ifdef CONFIG_KMSAN_CHECK_PARAM_RETVAL |
| 5 | kmsan-cflags += -fsanitize-memory-param-retval |
| 6 | endif |
| 7 | |
| 8 | export CFLAGS_KMSAN := $(kmsan-cflags) |