pci: Make errp the last parameter of pci_add_capability()
commit9a7c2a59708f0d691569463b161e1b516948a41e
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Tue, 27 Jun 2017 06:16:50 +0000 (27 14:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2017 19:29:49 +0000 (3 22:29 +0300)
tree05947d2878c9974c6ab1d273aef2d73b0f0cf894
parent9a815774bb37d7290d2fa45a8cc313e9e9fdaa23
pci: Make errp the last parameter of pci_add_capability()

Add Error argument for pci_add_capability() to leverage the errp
to pass info on errors. This way is helpful for its callers to
make a better error handling when moving to 'realize'.

Cc: pbonzini@redhat.com
Cc: rth@twiddle.net
Cc: ehabkost@redhat.com
Cc: mst@redhat.com
Cc: jasowang@redhat.com
Cc: marcel@redhat.com
Cc: alex.williamson@redhat.com
Cc: armbru@redhat.com
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
12 files changed:
hw/i386/amd_iommu.c
hw/net/e1000e.c
hw/net/eepro100.c
hw/pci-bridge/i82801b11.c
hw/pci/pci.c
hw/pci/pci_bridge.c
hw/pci/pcie.c
hw/pci/shpc.c
hw/pci/slotid_cap.c
hw/vfio/pci.c
hw/virtio/virtio-pci.c
include/hw/pci/pci.h