Re: [PATCH v9 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jake,

[auto build test WARNING on pci/next]
[also build test WARNING on v4.4-rc4 next-20151209]

url:    https://github.com/0day-ci/linux/commits/jakeo-microsoft-com/PCI-hv-New-paravirtual-PCI-front-end-for-Hyper-V-VMs/20151210-070027
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: x86_64-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
   drivers/pci/host/hv_pcifront.c: In function 'hv_pci_allocate_bridge_windows':
>> drivers/pci/host/hv_pcifront.c:1776:18: warning: unused variable 'length' [-Wunused-variable]
     resource_size_t length;
                     ^

vim +/length +1776 drivers/pci/host/hv_pcifront.c

  1760			hbus->high_mmio_res->flags |= IORESOURCE_BUSY;
  1761			release_mem_region(hbus->high_mmio_res->start,
  1762					   resource_size(hbus->high_mmio_res));
  1763		}
  1764	}
  1765	
  1766	/**
  1767	 * hv_pci_allocate_bridge_windows() - Allocate memory regions
  1768	 * for the bus
  1769	 * @hbus:	Root PCI bus, as understood by this driver
  1770	 *
  1771	 * Return: 0 on success, -errno on failure
  1772	 */
  1773	static int hv_pci_allocate_bridge_windows(struct hv_pcibus_device *hbus)
  1774	{
  1775		resource_size_t align;
> 1776		resource_size_t length;
  1777		int ret;
  1778	
  1779		if (hbus->low_mmio_space) {
  1780			align = 1ULL << (63 - __builtin_clzll(hbus->low_mmio_space));
  1781			ret = vmbus_allocate_mmio(&hbus->low_mmio_res, hbus->hdev, 0,
  1782						0xffffffffULL,
  1783						(resource_size_t)hbus->low_mmio_space,
  1784						align, false);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux