| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | context-analysis-cflags := -DWARN_CONTEXT_ANALYSIS \ |
| 4 | -fexperimental-late-parse-attributes -Wthread-safety \ |
| 5 | -Wthread-safety-pointer -Wthread-safety-beta |
| 6 | |
| 7 | ifndef CONFIG_WARN_CONTEXT_ANALYSIS_ALL |
| 8 | context-analysis-cflags += --warning-suppression-mappings=$(srctree)/scripts/context-analysis-suppression.txt |
| 9 | endif |
| 10 | |
| 11 | export CFLAGS_CONTEXT_ANALYSIS := $(context-analysis-cflags) |