coreboot-kgpe-d16/util/lint
Martin Roth c7139f9d46 util/lint/kconfig_lint: Ignore C preprocessor macros in code
To see which Kconfig symbols are actually used, and to verify that
they're used correctly, kconfig_lint scans the C code. It gives an error
if it sees a CONFIG(symbol) where the symbol doesn't exist.

This creates a problem when a C preprocessor macro is created to match
multiple Kconfig symbols. The simple solution here is to just ignore
those C preprocessor macro definitions as beyond the scope of this
linter.

Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I5a20e8bb5a3e19e380802cba712d6dd3ff2f4dc0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78681
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2023-11-13 14:13:24 +00:00
..
Makefile
check-style
check_lint_tests
checkpatch.pl lint/checkpatch.pl: Check for 0-length and 1-element arrays 2023-08-09 20:42:08 +00:00
checkpatch_json.py util/lint/checkpatch_json.py: Make output message verbatim 2023-07-14 14:29:48 +00:00
const_structs.checkpatch
coreboot.dict
description.md
helper_functions.sh
kconfig_lint util/lint/kconfig_lint: Ignore C preprocessor macros in code 2023-11-13 14:13:24 +00:00
kconfig_lint_README
lint
lint-000-license-headers util/lint: Add SPDX checker for makefiles 2023-08-15 16:31:30 +00:00
lint-001-no-global-config-in-romstage tree: Replace `egrep` with `grep -E` 2023-04-06 19:54:44 +00:00
lint-007-checkpatch
lint-008-kconfig
lint-014-qualified-types
lint-extended-007-checkpatch
lint-extended-015-final-newlines
lint-extended-020-signed-off-by
lint-stable-000-license-headers
lint-stable-003-whitespace
lint-stable-004-style-labels
lint-stable-005-board-status
lint-stable-006-board-name
lint-stable-008-kconfig
lint-stable-009-old-licenses tree: Replace `egrep` with `grep -E` 2023-04-06 19:54:44 +00:00
lint-stable-010-asm-syntax
lint-stable-012-executable-bit
lint-stable-013-site-local
lint-stable-016-non-ascii
lint-stable-017-configs util/lint/stable-017: Update full config pattern matching 2023-04-06 15:11:44 +00:00
lint-stable-018-symlinks
lint-stable-019-header-files
lint-stable-021-coreboot-lowercase
lint-stable-022-clang-format
lint-stable-023-filenames
lint-stable-024-kconfig-no-subsystem
lint-stable-026-line-endings
lint-stable-027-maintainers-syntax
lint-stable-028-touchpad-probed-warning
remccoms3.sed
spelling.txt util/lint: Fix some mistakes in spelling.txt 2023-11-01 15:26:57 +00:00