[PATCH] devtools: fix symbol change check for non-lib patches

David Marchand david.marchand at redhat.com
Thu Mar 5 11:10:35 CET 2026


On Thu, 5 Mar 2026 at 10:11, Ali Alnubani <alialnu at nvidia.com> wrote:
>
> Initialize lib var per patch file and skip symbol handling when no
> lib/drivers file header was seen. Avoids NameError exception when
> processing patches that only touch docs or other paths.
>
> Fixes: 1a0c104a7fa9 ("build: generate symbol maps")
> Cc: david.marchand at redhat.com
>
> Signed-off-by: Ali Alnubani <alialnu at nvidia.com>

I don't think resetting the lib variable for each patch is enough,
this relies on the patch content order.

It would be more robust to catch all ^--- a/  lines (which marks the
start of a new file), then if the file is neither in drivers/ nor
lib/, skip any line until a new file is reached.


-- 
David Marchand



More information about the dev mailing list