overlay nvidia-drivers: fix builds for Kernel 6.12.97 (stable) - #4205
Merged
Conversation
Signed-off-by: Dongsu Park <dongsu@dpark.io>
Starting from Kernel 6.12.97, prototype of pci_resize_resource() has changed [1], so it started to take 4 args instead of 3. To deal with both cases of 3 and 4 args, define a new config check in conftest.sh to check if the Kernel header has which variant of pci_resize_resource(), and define a variable NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG if that has 4 args. Use that later from the caller in nvidia/nv-pci.c. [1] https://lore.kernel.org/all/20251113162628.5946-7-ilpo.jarvinen@linux.intel.com/ This is similar to the previous fix 56a996d, which fixed only old-nvidia-drivers 550. Signed-off-by: Dongsu Park <dongsu@dpark.io>
dongsupark
requested a deployment
to
development
August 10, 2026 08:31 — with
GitHub Actions
Waiting
dongsupark
marked this pull request as ready for review
August 10, 2026 12:17
tormath1
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting from Kernel 6.12.97, prototype of
pci_resize_resource()has changed, so it started to take 4 args instead of 3. To deal with both cases of 3 and 4 args, define a new config check inconftest.shto check if the Kernel header has which variant of pci_resize_resource(), and define a variable NV_PCI_RESIZE_RESOURCE_HAS_EXCLUDE_BARS_ARG if that has 4 args. Use that later from the caller innvidia/nv-pci.c.This is similar to the previous fix 56a996d, which fixed only old-nvidia-drivers 550. However we need to fix also nvidia-drivers 535.
Testing done
CI: https://jenkins.flatcar.org/job/container/job/packages_all_arches/511/cldsv/ (passed)
changelog/directory (user-facing change, bug fix, security fix, update) (not needed)/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.