[PATCH v3] devtools: fix symbol change check for non-lib patches
David Marchand
david.marchand at redhat.com
Tue Mar 17 16:45:27 CET 2026
On Mon, 9 Mar 2026 at 16:10, Ali Alnubani <alialnu at nvidia.com> wrote:
>
> Handle patches that do not touch lib/drivers (e.g. doc-only) without
> crashing. Treat every file header (--- a/ or +++ b/) as the start of a
> new file: if the path is under lib/ or drivers/, set lib and process
> symbol lines; otherwise set lib to None and ignore lines until the next
> file. This avoids both NameError exceptions and misattributing
> export-like lines from doc (or other) files to the previous lib when
> file order varies.
>
> Fixes: 1a0c104a7fa9 ("build: generate symbol maps")
>
> Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list