diff --git a/scripts/ci/check_compliance.py b/scripts/ci/check_compliance.py index 5ae142f0332..b66182f8d9b 100755 --- a/scripts/ci/check_compliance.py +++ b/scripts/ci/check_compliance.py @@ -801,7 +801,8 @@ Missing SoC names or CONFIG_SOC vs soc.yml out of sync: for sym_name in re.findall(regex, line): sym_name = sym_name[7:] # Strip CONFIG_ if sym_name not in defined_syms and \ - sym_name not in self.UNDEF_KCONFIG_ALLOWLIST: + sym_name not in self.UNDEF_KCONFIG_ALLOWLIST and \ + not (sym_name.endswith("_MODULE") and sym_name[:-7] in defined_syms): undef_to_locs[sym_name].append(f"{path}:{lineno}")