Re: [PATCH v3 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 next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url:    https://github.com/0day-ci/linux/commits/jakeo-microsoft-com/New-paravirtual-PCI-front-end-for-Hyper-V-VMs/20151027-072118
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/pci/host/hv_pcifront.c: In function 'prepopulate_bars':
>> drivers/pci/host/hv_pcifront.c:1114:23: warning: right shift count >= width of type [-Wshift-count-overflow]
          (u32)(high_base >> 32));
                          ^
   drivers/pci/host/hv_pcifront.c: In function 'hv_pci_onchannelcallback':
>> drivers/pci/host/hv_pcifront.c:1648:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       comp_packet = (struct pci_packet *)req_id;
                     ^
   drivers/pci/host/hv_pcifront.c: In function 'hv_pci_allocate_bridge_windows':
>> drivers/pci/host/hv_pcifront.c:1817:8: warning: large integer implicitly truncated to unsigned type [-Woverflow]
           0x100000000, -1,
           ^

coccinelle warnings: (new ones prefixed by >>)

>> drivers/pci/host/hv_pcifront.c:1405:31-33: ERROR: reference preceded by free on line 1383

vim +1114 drivers/pci/host/hv_pcifront.c

  1098					} else {
  1099						bar_val |= 0xffffffffULL << 32;
  1100					}
  1101					bar_size = get_bar_size(bar_val);
  1102					if (high) {
  1103						if (high_size != bar_size) {
  1104							i++;
  1105							continue;
  1106						}
  1107						_hv_pcifront_write_config(hpdev,
  1108							PCI_BASE_ADDRESS_0 + (4 * i),
  1109							4,
  1110							(u32)(high_base & 0xffffff00));
  1111						_hv_pcifront_write_config(hpdev,
  1112							PCI_BASE_ADDRESS_0 +
  1113							(4 * (i + 1)), 4,
> 1114							(u32)(high_base >> 32));
  1115						high_base += bar_size;
  1116					} else {
  1117						if (low_size != bar_size)
  1118							continue;
  1119						_hv_pcifront_write_config(hpdev,
  1120							PCI_BASE_ADDRESS_0 + (4 * i),
  1121							4,
  1122							(u32)(low_base & 0xffffff00));

---
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