diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2025-02-12 21:53:32 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-02-13 01:16:21 +0300 |
commit | 472ff48e2c09e49f2f90eeb6922f747306559506 (patch) | |
tree | c3333d40ec72495180e9d124b4b0675002317760 /scripts/extract-fwblobs | |
parent | 2014c95afecee3e76ca4a56956a936e23283f05b (diff) | |
download | linux-472ff48e2c09e49f2f90eeb6922f747306559506.tar.xz |
PCI: Fix BUILD_BUG_ON usage for old gcc
As reported in the below link, it seems older versions of gcc cannot
determine that the howmany variable is known for all callers. Include
a test so that newer compilers can enforce this sanity check and older
compilers can still work. Add __always_inline attribute to give the
compiler an even better chance to know the inputs.
Link: https://lore.kernel.org/r/20250212185337.293023-1-alex.williamson@redhat.com
Fixes: 4453f360862e ("PCI: Batch BAR sizing operations")
Reported-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/all/20250209154512.GA18688@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Oleg Nesterov <oleg@redhat.com>
Tested-by: Mitchell Augustin <mitchell.augustin@canonical.com>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions