Hi Charles,

[auto build test WARNING on ljones-mfd/for-mfd-next]
[also build test WARNING on v4.10-rc7 next-20170210]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Charles-Keepax/mfd-wm831x-Add-basic-device-tree-binding/20170211-024222
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   drivers/mfd/wm831x-core.c: In function 'wm831x_of_get_type':
>> drivers/mfd/wm831x-core.c:1636:10: warning: cast from pointer to integer of 
>> different size [-Wpointer-to-int-cast]
      return (int)id->data;
             ^

vim +1636 drivers/mfd/wm831x-core.c

  1620          { .compatible = "wlf,wm8310", .data = (void *)WM8310 },
  1621          { .compatible = "wlf,wm8311", .data = (void *)WM8311 },
  1622          { .compatible = "wlf,wm8312", .data = (void *)WM8312 },
  1623          { .compatible = "wlf,wm8320", .data = (void *)WM8320 },
  1624          { .compatible = "wlf,wm8321", .data = (void *)WM8321 },
  1625          { .compatible = "wlf,wm8325", .data = (void *)WM8325 },
  1626          { .compatible = "wlf,wm8326", .data = (void *)WM8326 },
  1627          { },
  1628  };
  1629  EXPORT_SYMBOL_GPL(wm831x_of_match);
  1630  
  1631  int wm831x_of_get_type(struct device *dev)
  1632  {
  1633          const struct of_device_id *id = 
of_match_device(wm831x_of_match, dev);
  1634  
  1635          if (id)
> 1636                  return (int)id->data;
  1637          else
  1638                  return 0;
  1639  }
  1640  EXPORT_SYMBOL_GPL(wm831x_of_get_type);
  1641  #endif
  1642  
  1643  /*
  1644   * Instantiate the generic non-control parts of the device.

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

Attachment: .config.gz
Description: application/gzip

Reply via email to