]> git.proxmox.com Git - mirror_qemu.git/commit
hw/ide/Kconfig: Add missing dependency PCI -> IDE_QDEV
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 13 May 2021 07:34:33 +0000 (09:34 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 20 Jul 2021 13:30:42 +0000 (15:30 +0200)
commit27d764c9c0749027578351cf018e02d25e8e3f71
treed720981b72141705f47af8ab6ed7ef49ce2ff13b
parentdf90457cf51687a2b699ab07c5240a52c0915404
hw/ide/Kconfig: Add missing dependency PCI -> IDE_QDEV

The pci_ide_create_devs() function is declared i hw/ide/qdev.c:

 $ git grep ide_create_drive
 hw/ide/pci.c:491:            ide_create_drive(d->bus + bus[i], unit[i], hd_table[i]);
 hw/ide/qdev.c:127:IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive)
 include/hw/ide/internal.h:653:IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive);

Fix the correct symbol dependency to avoid build failure when
deselecting some machines:

  /usr/bin/ld: libcommon.fa.p/hw_ide_pci.c.o: in function `pci_ide_create_devs':
  hw/ide/pci.c:491: undefined reference to `ide_create_drive'

Fixes: 8f01b41e109 ("ide: express dependencies with Kconfig")
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210515173716.358295-3-philmd@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
hw/ide/Kconfig