hw/pci-host: Do not build gpex-acpi.c if GPEX is not selected
PATCH 1/1 hw/pci-host: Do not build gpex-acpi.c if GPEX is not selected
Since its introduction in commit 5b85eabe68f ("acpi: add acpi_dsdt_add_gpex") we build gpex-acpi.c if ACPI is selected, even if the GPEX_HOST device isn't build. Add the missing Kconfig dependency.
---
The gpex*.c files aren't covered by any MAINTAINERS section:
$ ./scripts/get_maintainer.pl -f hw/pci-host/gpex.c -f hw/pci-host/gpex-acpi.c get_maintainer.pl: No maintainers found, printing recent contributors. get_maintainer.pl: Do not blindly cc: them on patches! Use common sense.
Markus Armbruster <[email protected]> (commit_signer:2/2=100%) Paolo Bonzini <[email protected]> (commit_signer:2/2=100%) Alistair Francis <[email protected]> (commit_signer:1/2=50%) "Philippe Mathieu-Daudé" <[email protected]> (commit_signer:1/2=50%) "Michael S. Tsirkin" <[email protected]> (commit_signer:14/8=100%) Jiahui Cen <[email protected]> (commit_signer:6/8=75%) Igor Mammedov <[email protected]> (commit_signer:4/8=50%) Gerd Hoffmann <[email protected]> (commit_signer:2/8=25%) Yubo Miao <[email protected]> (commit_signer:2/8=25%) [email protected] (open list:All patches CC here)
--- hw/pci-host/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/pci-host/meson.build +1 -1
@@ -3,7 +3,7 @@ pci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c')) -pci_ss.add(when: 'CONFIG_ACPI', if_true: files('gpex-acpi.c')) +pci_ss.add(when: ['CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', 'CONFIG_ACPI'], if_true: files('gpex-acpi.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c')) pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c'))
Signature · 1 line
2.26.3
Quoted 7 lines · Philippe Mathieu-Daudé
Since its introduction in commit
5b85eabe68f("acpi: addacpi_dsdt_add_gpex") we buildgpex-acpi.cif ACPI is selected, even if theGPEX_HOSTdevice isn't build. Add the missingKconfigdependency.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Alistair
Quoted 38 lines
---
The gpex*.c files aren't covered by anyMAINTAINERSsection:$ ./scripts/get_maintainer.pl -f hw/pci-host/gpex.c -f hw/pci-host/gpex-acpi.c get_maintainer.pl: No maintainers found, printing recent contributors. get_maintainer.pl: Do not blindly cc: them on patches! Use common sense.Markus Armbruster <[email protected]> (commit_signer:2/2=100%) Paolo Bonzini <[email protected]> (commit_signer:2/2=100%) Alistair Francis <[email protected]> (commit_signer:1/2=50%) "Philippe Mathieu-Daudé" <[email protected]> (commit_signer:1/2=50%) "Michael S. Tsirkin" <[email protected]> (commit_signer:14/8=100%) Jiahui Cen <[email protected]> (commit_signer:6/8=75%) Igor Mammedov <[email protected]> (commit_signer:4/8=50%) Gerd Hoffmann <[email protected]> (commit_signer:2/8=25%) Yubo Miao <[email protected]> (commit_signer:2/8=25%) [email protected] (open list:All patches CC here)
--- hw/pci-host/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/pci-host/meson.build +1
-2@@ -3,7 +3,7 @@ pci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c')) -pci_ss.add(when: 'CONFIG_ACPI', if_true: files('gpex-acpi.c')) +pci_ss.add(when: ['CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', 'CONFIG_ACPI'], if_true: files('gpex-acpi.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c')) pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c')) --2.26.3
Quoted 6 lines · Philippe Mathieu-Daudé
Since its introduction in commit
5b85eabe68f("acpi: addacpi_dsdt_add_gpex") we buildgpex-acpi.cif ACPI is selected, even if theGPEX_HOSTdevice isn't build. Add the missingKconfigdependency.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Cc'ing qemu-trivial (patch reviewed).
Quoted 41 lines · Philippe Mathieu-Daudé
Since its introduction in commit
5b85eabe68f("acpi: addacpi_dsdt_add_gpex") we buildgpex-acpi.cif ACPI is selected, even if theGPEX_HOSTdevice isn't build. Add the missingKconfigdependency.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
The gpex*.c files aren't covered by anyMAINTAINERSsection:$ ./scripts/get_maintainer.pl -f hw/pci-host/gpex.c -f hw/pci-host/gpex-acpi.c get_maintainer.pl: No maintainers found, printing recent contributors. get_maintainer.pl: Do not blindly cc: them on patches! Use common sense.Markus Armbruster <[email protected]> (commit_signer:2/2=100%) Paolo Bonzini <[email protected]> (commit_signer:2/2=100%) Alistair Francis <[email protected]> (commit_signer:1/2=50%) "Philippe Mathieu-Daudé" <[email protected]> (commit_signer:1/2=50%) "Michael S. Tsirkin" <[email protected]> (commit_signer:14/8=100%) Jiahui Cen <[email protected]> (commit_signer:6/8=75%) Igor Mammedov <[email protected]> (commit_signer:4/8=50%) Gerd Hoffmann <[email protected]> (commit_signer:2/8=25%) Yubo Miao <[email protected]> (commit_signer:2/8=25%) [email protected] (open list:All patches CC here)
--- hw/pci-host/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/pci-host/meson.build +1
-1@@ -3,7 +3,7 @@ pci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c')) -pci_ss.add(when: 'CONFIG_ACPI', if_true: files('gpex-acpi.c')) +pci_ss.add(when: ['CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', 'CONFIG_ACPI'], if_true: files('gpex-acpi.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c')) pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c'))
Laurent Vivier
AppliedLe 11/05/2021 à 05:36, Philippe Mathieu-Daudé a écrit :
Quoted 1 line
Cc'ing qemu-trivial (patch reviewed).
Applied to my trivial-patches branch.
Thanks,
Laurent
Quoted 43 lines · Philippe Mathieu-Daudé
Quoted 41 lines
Since its introduction in commit
5b85eabe68f("acpi: addacpi_dsdt_add_gpex") we buildgpex-acpi.cif ACPI is selected, even if theGPEX_HOSTdevice isn't build. Add the missingKconfigdependency.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
The gpex*.c files aren't covered by anyMAINTAINERSsection:$ ./scripts/get_maintainer.pl -f hw/pci-host/gpex.c -f hw/pci-host/gpex-acpi.c get_maintainer.pl: No maintainers found, printing recent contributors. get_maintainer.pl: Do not blindly cc: them on patches! Use common sense.Markus Armbruster <[email protected]> (commit_signer:2/2=100%) Paolo Bonzini <[email protected]> (commit_signer:2/2=100%) Alistair Francis <[email protected]> (commit_signer:1/2=50%) "Philippe Mathieu-Daudé" <[email protected]> (commit_signer:1/2=50%) "Michael S. Tsirkin" <[email protected]> (commit_signer:14/8=100%) Jiahui Cen <[email protected]> (commit_signer:6/8=75%) Igor Mammedov <[email protected]> (commit_signer:4/8=50%) Gerd Hoffmann <[email protected]> (commit_signer:2/8=25%) Yubo Miao <[email protected]> (commit_signer:2/8=25%) [email protected] (open list:All patches CC here)
--- hw/pci-host/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/pci-host/meson.build +1
-1@@ -3,7 +3,7 @@ pci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c')) -pci_ss.add(when: 'CONFIG_ACPI', if_true: files('gpex-acpi.c')) +pci_ss.add(when: ['CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', 'CONFIG_ACPI'], if_true: files('gpex-acpi.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c')) pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c')) pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c'))