Re: [PATCH v2 11/11] Documentation: Describe auditconfig build target

From: sashiko-bot

Date: Fri Dec 04 2026 - 17:50:30 EST


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] Documentation: README.rst wrongly says auditconfig prints
suggested changes
--

commit 26f60e3b3bb3f18437be7251e968b6c973b03400
Author: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>

Documentation: Describe auditconfig build target

This commit documents the make auditconfig build target, its policy and
overlay arguments, and its diagnostic output in
Documentation/admin-guide/README.rst, and adds a cross-reference in
Documentation/tools/kconfig-audit.rst.

> diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst
> index 77fec1de6dc86..6f78988d4005c 100644
> --- a/Documentation/admin-guide/README.rst
> +++ b/Documentation/admin-guide/README.rst
> @@ -256,6 +256,35 @@ Configuring the kernel

[ ... ]

> +``auditconfig`` reports kconfig options whose values do not match the
> +selected rules profile. Each diagnostic includes a severity, such as
> +``FATAL`` or ``INFO``, plus the suggested configuration change.
> +
> +Apply the reported changes as needed and run ``make auditconfig`` again,
> +against the same rules, until no relevant diagnostics remain.

[Severity: Low]
Does auditconfig actually print a suggested configuration change?

In tools/kconfig-audit/audit.py, Report.print() and
Checker._find_symbol_rule_issues() only report the severity, the observed
mismatch (such as "is disabled" or "has the wrong type, expected boolean"),
and an optional rationale or documentation link.

For wrong-type symbols, the output does not even state whether the rule
expects the symbol to be enabled or disabled, so users do not get a
suggested change to apply.

--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203224916.118064-1-darwi@xxxxxxxxxxxxx?part=11