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-035122
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
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:1094: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:1627:18: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
       comp_packet = (struct pci_packet *)req_id;
                     ^
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from drivers/pci/host/hv_pcifront.c:21:
   drivers/pci/host/hv_pcifront.c: In function 'hv_pci_allocate_bridge_windows':
>> include/linux/kern_levels.h:4:18: warning: format '%llx' expects argument of 
>> type 'long long unsigned int', but argument 2 has type 'resource_size_t {aka 
>> unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^
   include/linux/printk.h:252:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^
>> drivers/pci/host/hv_pcifront.c:1785:4: note: in expansion of macro 'pr_err'
       pr_err("Need %llx of low MMIO space. "
       ^
   drivers/pci/host/hv_pcifront.c:1800:8: warning: large integer implicitly 
truncated to unsigned type [-Woverflow]
           0x100000000, -1,
           ^
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from drivers/pci/host/hv_pcifront.c:21:
>> include/linux/kern_levels.h:4:18: warning: format '%llx' expects argument of 
>> type 'long long unsigned int', but argument 2 has type 'resource_size_t {aka 
>> unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^
   include/linux/printk.h:252:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^
   drivers/pci/host/hv_pcifront.c:1804:4: note: in expansion of macro 'pr_err'
       pr_err("Need %llx of high MMIO space. "
       ^

vim +/pr_err +1785 drivers/pci/host/hv_pcifront.c

  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          int ret;
  1777  
  1778          if (hbus->low_mmio_space) {
  1779                  align = 1ULL << (63 - 
__builtin_clzll(hbus->low_mmio_space));
  1780                  ret = vmbus_allocate_mmio(&hbus->low_mmio_res, 
hbus->hdev, 0,
  1781                                            (u64)(u32)0xffffffff,
  1782                                            hbus->low_mmio_space,
  1783                                            align, false);
  1784                  if (ret) {
> 1785                          pr_err("Need %llx of low MMIO space. "
  1786                                  "Consider reconfiguring the VM.\n",
  1787                                  hbus->low_mmio_space);
  1788                          return ret;
  1789                  }
  1790  
  1791                  hbus->low_mmio_res->flags |= IORESOURCE_WINDOW;
  1792                  hbus->low_mmio_res->flags &= ~IORESOURCE_BUSY;
  1793                  pci_add_resource(&hbus->resources_for_children,

---
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
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to