[PATCH PCIBACK]
PATCH 1/1 [PATCH PCIBACK]
Please apply the following two patches to the origin/xen/dom0/pciback branch.
[PATCH 1/2] [xen/pciback] Fix compiler warning in pci_stub.c. [PATCH 2/2] [xen/pciback] Fix compile warning in vpci.c
PATCH 1/2 Fix compiler warning in pci_stub.c.
warning: the frame size of 1036 bytes is larger than 1024 bytes
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>
--- drivers/xen/pciback/pci_stub.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/xen/pciback/pci_stub.c +3 -2
@@ -496,16 +496,17 @@ static const struct pci_device_id pcistub_ids[] = { {0,}, }; +#define PCI_NODENAME_MAX 40static void kill_domain_by_device (struct pcistub_device *psdev) {struct xenbus_transaction xbt;int err; -char nodename[1024 ]; +char nodename[PCI_NODENAME_MAX ];if (!psdev)dev_err (&psdev->dev->dev,"device is NULL when do AER recovery/kill_domain\n" ); -sprintf (nodename,"/local/domain/0/backend/pci/%d/0" , +snprintf (nodename,PCI_NODENAME_MAX ,"/local/domain/0/backend/pci/%d/0" , psdev->pdev->xdev->otherend_id); nodename[strlen (nodename)] ='\0' ;
Signature · 1 line
1.6.2.5
PATCH 2/2 Fix compile warning in vpci.c
warning: ‘func’ may be used uninitialized in this function
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>
--- drivers/xen/pciback/vpci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/xen/pciback/vpci.c +1 -1
@@ -65,7 +65,7 @@ static inline int match_slot(struct pci_dev *l, struct pci_dev *r)int pciback_add_pci_dev (struct pciback_device *pdev,struct pci_dev *dev,int devid,publish_pci_dev_cb publish_cb) { -int err =0 , slot, func; +int err =0 , slot, func =-1 ;struct pci_dev_entry *t, *dev_entry;struct vpci_dev_data *vpci_dev = pdev->pci_dev_data;unsigned long flags;
Signature · 1 line
1.6.2.5