On Thu, 5 Mar 2026 at 10:11, Ali Alnubani <[email protected]> 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: [email protected] > > Signed-off-by: Ali Alnubani <[email protected]>
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

