]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/PM: Fix bridge_d3_blacklist[] Elo i2 overwrite of Gigabyte X299
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 26 May 2022 21:52:23 +0000 (16:52 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 May 2022 20:06:19 +0000 (15:06 -0500)
commitef690aba6802d5b3655d6c112c7bb909fdc8e318
tree382034f97f02612302a3de2f2e2315175b0ea1fa
parent6860c5372f0a5d4190032fcaad4f3e0e447f19e3
PCI/PM: Fix bridge_d3_blacklist[] Elo i2 overwrite of Gigabyte X299

db6ed3463b97 ("PCI/PM: Avoid putting Elo i2 PCIe Ports in D3cold") omitted
braces around the new Elo i2 entry, so it overwrote the existing Gigabyte
X299 entry.  Add the appropriate braces.

Found by:

  $ make W=1 drivers/pci/pci.o
    CC      drivers/pci/pci.o
  drivers/pci/pci.c:2974:12: error: initialized field overwritten [-Werror=override-init]
   2974 |   .ident = "Elo i2",
        |            ^~~~~~~~

Link: https://lore.kernel.org/r/20220526221258.GA409855@bhelgaas
Fixes: db6ed3463b97 ("PCI/PM: Avoid putting Elo i2 PCIe Ports in D3cold")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org # v5.15+
drivers/pci/pci.c