set_bit() function added to the source code of uncategorized devices and categorizes have been assigne to them.
PATCH 1/1 set_bit() function added to the source code of uncategorized devices and categorizes have been assigne to them.
From: Sohail Alvi <[email protected]>
a seperate class_init function has also been added for AMDVI-PCI.
--- hw/block/xen-block.c | 4 +++- hw/dma/i82374.c | 3 ++- hw/i386/amd_iommu.c | 9 +++++++++ hw/i386/intel_iommu.c | 1 + hw/i386/pc_piix.c | 1 + hw/i386/xen/xen_pvdevice.c | 1 + hw/ipmi/ipmi_bmc_extern.c | 1 + hw/ipmi/ipmi_bmc_sim.c | 1 + hw/ipmi/isa_ipmi_bt.c | 1 + hw/ipmi/isa_ipmi_kcs.c | 1 + hw/mem/nvdimm.c | 1 + hw/mem/pc-dimm.c | 1 + hw/tpm/tpm_tis.c | 1 + 13 files changed, 24 insertions(+), 2 deletions(-)
hw/block/xen-block.c +3 -1
@@ -579,6 +579,7 @@ static void xen_disk_class_init(ObjectClass *class, void *data)DeviceClass *dev_class =DEVICE_CLASS (class);XenBlockDeviceClass *blockdev_class =XEN_BLOCK_DEVICE_CLASS (class); +set_bit (DEVICE_CATEGORY_STORAGE , dev_class->categories); blockdev_class->realize = xen_disk_realize; blockdev_class->unrealize = xen_disk_unrealize;
@@ -624,8 +625,9 @@ static void xen_cdrom_realize(XenBlockDevice *blockdev, Error **errp)static void xen_cdrom_class_init (ObjectClass *class,void *data) {DeviceClass *dev_class =DEVICE_CLASS (class); -XenBlockDeviceClass *blockdev_class =XEN_BLOCK_DEVICE_CLASS (class); +XenBlockDeviceClass *blockdev_class =XEN_BLOCK_DEVICE_CLASS (class); +set_bit (DEVICE_CATEGORY_STORAGE , dev_class->categories); blockdev_class->realize = xen_cdrom_realize; blockdev_class->unrealize = xen_cdrom_unrealize;
hw/dma/i82374.c +2 -1
@@ -143,7 +143,8 @@ static Property i82374_properties[] = {static void i82374_class_init (ObjectClass *klass,void *data) {DeviceClass *dc =DEVICE_CLASS (klass); - + +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); dc->realize = i82374_realize; dc->vmsd = &vmstate_i82374; dc->props = i82374_properties;
hw/i386/amd_iommu.c +9 -0
@@ -1594,6 +1594,7 @@ static void amdvi_class_init(ObjectClass *klass, void* data)DeviceClass *dc =DEVICE_CLASS (klass);X86IOMMUClass *dc_class =X86_IOMMU_CLASS (klass); +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); dc->reset = amdvi_reset; dc->vmsd = &vmstate_amdvi; dc->hotpluggable = false;
@@ -1611,8 +1612,16 @@ static const TypeInfo amdvi = { .class_init = amdvi_class_init }; +static void amdvi_pci_class_init (ObjectClass *klass,void * data) +{ +DeviceClass *dc =DEVICE_CLASS (klass); + +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); +} +static const TypeInfo amdviPCI = { .name ="AMDVI-PCI" , + .class_init = amdvi_pci_class_init, .parent =TYPE_PCI_DEVICE , .instance_size =sizeof (AMDVIPCIState), .interfaces = (InterfaceInfo []) {
hw/i386/intel_iommu.c +1 -0
@@ -3719,6 +3719,7 @@ static void vtd_class_init(ObjectClass *klass, void *data)DeviceClass *dc =DEVICE_CLASS (klass);X86IOMMUClass *x86_class =X86_IOMMU_CLASS (klass); +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); dc->reset = vtd_reset; dc->vmsd = &vtd_vmstate; dc->props = vtd_properties;
hw/i386/pc_piix.c +1 -0
@@ -910,6 +910,7 @@ static void isa_bridge_class_init(ObjectClass *klass, void *data)DeviceClass *dc =DEVICE_CLASS (klass);PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); dc->desc ="ISA bridge faked to support IGD PT" ; k->vendor_id =PCI_VENDOR_ID_INTEL ; k->class_id =PCI_CLASS_BRIDGE_ISA ;
hw/i386/xen/xen_pvdevice.c +1 -0
@@ -126,6 +126,7 @@ static void xen_pv_class_init(ObjectClass *klass, void *data)DeviceClass *dc =DEVICE_CLASS (klass);PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); +set_bit (DEVICE_CATEGORY_MISC , dc->categories); k->realize = xen_pv_realize; k->class_id =PCI_CLASS_SYSTEM_OTHER ; dc->desc ="Xen PV Device" ;
hw/ipmi/ipmi_bmc_extern.c +1 -0
@@ -521,6 +521,7 @@ static void ipmi_bmc_extern_class_init(ObjectClass *oc, void *data)DeviceClass *dc =DEVICE_CLASS (oc);IPMIBmcClass *bk =IPMI_BMC_CLASS (oc); +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); bk->handle_command = ipmi_bmc_extern_handle_command; bk->handle_reset = ipmi_bmc_extern_handle_reset; dc->hotpluggable = false;
hw/ipmi/ipmi_bmc_sim.c +1 -0
@@ -2012,6 +2012,7 @@ static void ipmi_sim_class_init(ObjectClass *oc, void *data)DeviceClass *dc =DEVICE_CLASS (oc);IPMIBmcClass *bk =IPMI_BMC_CLASS (oc); +set_bit (DEVICE_CATEGORY_BRIDGE , dc->categories); dc->hotpluggable = false; dc->realize = ipmi_sim_realize; dc->props = ipmi_sim_properties;
hw/ipmi/isa_ipmi_bt.c +1 -0
@@ -539,6 +539,7 @@ static void isa_ipmi_bt_class_init(ObjectClass *oc, void *data)DeviceClass *dc =DEVICE_CLASS (oc);IPMIInterfaceClass *iic =IPMI_INTERFACE_CLASS (oc); +set_bit (DEVICE_CATEGORY_MISC , dc->categories); dc->realize = isa_ipmi_bt_realize; dc->props = ipmi_isa_properties;
hw/ipmi/isa_ipmi_kcs.c +1 -0
@@ -522,6 +522,7 @@ static void isa_ipmi_kcs_class_init(ObjectClass *oc, void *data)DeviceClass *dc =DEVICE_CLASS (oc);IPMIInterfaceClass *iic =IPMI_INTERFACE_CLASS (oc); +set_bit (DEVICE_CATEGORY_MISC , dc->categories); dc->realize = ipmi_isa_realize; dc->props = ipmi_isa_properties;
hw/mem/nvdimm.c +1 -0
@@ -197,6 +197,7 @@ static void nvdimm_class_init(ObjectClass *oc, void *data)NVDIMMClass *nvc =NVDIMM_CLASS (oc);DeviceClass *dc =DEVICE_CLASS (oc); +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); ddc->realize = nvdimm_realize; mdc->get_memory_region = nvdimm_md_get_memory_region; dc->props = nvdimm_properties;
hw/mem/pc-dimm.c +1 -0
@@ -255,6 +255,7 @@ static void pc_dimm_class_init(ObjectClass *oc, void *data)PCDIMMDeviceClass *ddc =PC_DIMM_CLASS (oc);MemoryDeviceClass *mdc =MEMORY_DEVICE_CLASS (oc); +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); dc->realize = pc_dimm_realize; dc->unrealize = pc_dimm_unrealize; dc->props = pc_dimm_properties;
hw/tpm/tpm_tis.c +1 -0
@@ -1016,6 +1016,7 @@ static void tpm_tis_class_init(ObjectClass *klass, void *data)DeviceClass *dc =DEVICE_CLASS (klass);TPMIfClass *tc =TPM_IF_CLASS (klass); +set_bit (DEVICE_CATEGORY_MISC , dc->categories); dc->realize = tpm_tis_realizefn; dc->props = tpm_tis_properties; dc->reset = tpm_tis_reset;
Signature · 1 line
2.17.1
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [Qemu-devel] [PATCH] set_bit() function added to the source code of uncategorized devices and categorizes have been assigne to them.
Type: series
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
From https://github.com/patchew-project/qemu
10546e0..90fb864 master -> master
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
52c8ae5 set_bit() function added to the source code of uncategorized devices and categorizes have been assigne to them.
=== OUTPUT BEGIN ===
ERROR: space required after Signed-off-by:
#9:
ERROR: trailing whitespace
#29: FILE: hw/block/xen-block.c:628:
+ XenBlockDeviceClass *blockdev_class = XEN_BLOCK_DEVICE_CLASS(class); $
ERROR: trailing whitespace
#45: FILE: hw/dma/i82374.c:147:
+ set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); $
ERROR: trailing whitespace
#170: FILE: hw/mem/nvdimm.c:200:
+ set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); $
total: 4 errors, 0 warnings, 119 lines checked
Commit 52c8ae56e04d (set_bit() function added to the source code of uncategorized devices and categorizes have been assigne to them.) has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]