Hi,

[auto build test ERROR on tip/x86/core]
[also build test ERROR on v4.7-rc4 next-20160620]
[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/Tan-Jui-Nee/pinctrl-broxton-enable-platform-device-in-the-absent-of-ACPI-enumeration/20160621-132027
config: x86_64-lkp (attached as .config)
compiler: gcc-4.9 (Debian 4.9.3-14) 4.9.3
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

>> drivers/mfd/lpc_ich.c:175:23: error: invalid application of 'sizeof' to 
>> incomplete type 'struct pinctrl_pin_desc'
      .pdata_size = sizeof(apl_pinctrl_pdata),
                          ^
   drivers/mfd/lpc_ich.c:184:23: error: invalid application of 'sizeof' to 
incomplete type 'struct pinctrl_pin_desc'
      .pdata_size = sizeof(apl_pinctrl_pdata),
                          ^
   drivers/mfd/lpc_ich.c:193:23: error: invalid application of 'sizeof' to 
incomplete type 'struct pinctrl_pin_desc'
      .pdata_size = sizeof(apl_pinctrl_pdata),
                          ^
   drivers/mfd/lpc_ich.c:202:23: error: invalid application of 'sizeof' to 
incomplete type 'struct pinctrl_pin_desc'
      .pdata_size = sizeof(apl_pinctrl_pdata),
                          ^
   drivers/mfd/lpc_ich.c: In function 'lpc_ich_misc':
>> drivers/mfd/lpc_ich.c:1154:3: error: invalid use of undefined type 'struct 
>> pinctrl_pin_desc'
      apl_pinctrl_pdata.name = kasprintf(GFP_KERNEL, "%u",
      ^
>> drivers/mfd/lpc_ich.c:1154:3: warning: statement with no effect 
>> [-Wunused-value]
   drivers/mfd/lpc_ich.c:1158:2: error: invalid use of undefined type 'struct 
pinctrl_pin_desc'
     if (apl_pinctrl_pdata.name)
     ^
   drivers/mfd/lpc_ich.c:1169:5: error: invalid use of undefined type 'struct 
pinctrl_pin_desc'
        apl_pinctrl_pdata.name, ret);
        ^
>> drivers/mfd/lpc_ich.c:1169:5: warning: format '%s' expects argument of type 
>> 'char *', but argument 3 has type 'struct mfd_cell *' [-Wformat=]
   drivers/mfd/lpc_ich.c:1171:2: error: invalid use of undefined type 'struct 
pinctrl_pin_desc'
     kfree(apl_pinctrl_pdata.name);
     ^
   drivers/mfd/lpc_ich.c: At top level:
   drivers/mfd/lpc_ich.c:1131:12: warning: 'lpc_ich_misc' defined but not used 
[-Wunused-function]
    static int lpc_ich_misc(struct pci_dev *dev, enum lpc_chipsets chipset)
               ^

vim +175 drivers/mfd/lpc_ich.c

   169  static struct mfd_cell apl_gpio_devices[] = {
   170          {
   171                  .name = "apl-pinctrl",
   172                  .id = 0,
   173                  .num_resources = ARRAY_SIZE(apl_gpio_io_res),
   174                  .resources = apl_gpio_io_res,
 > 175                  .pdata_size = sizeof(apl_pinctrl_pdata),
   176                  .platform_data = &apl_pinctrl_pdata,
   177                  .ignore_resource_conflicts = true,
   178          },
   179          {
   180                  .name = "apl-pinctrl",
   181                  .id = 1,
   182                  .num_resources = ARRAY_SIZE(apl_gpio_io_res),
   183                  .resources = apl_gpio_io_res,
   184                  .pdata_size = sizeof(apl_pinctrl_pdata),
   185                  .platform_data = &apl_pinctrl_pdata,
   186                  .ignore_resource_conflicts = true,
   187          },
   188          {
   189                  .name = "apl-pinctrl",
   190                  .id = 2,
   191                  .num_resources = ARRAY_SIZE(apl_gpio_io_res),
   192                  .resources = apl_gpio_io_res,
 > 193                  .pdata_size = sizeof(apl_pinctrl_pdata),
   194                  .platform_data = &apl_pinctrl_pdata,
   195                  .ignore_resource_conflicts = true,
   196          },
   197          {
   198                  .name = "apl-pinctrl",
   199                  .id = 3,
   200                  .num_resources = ARRAY_SIZE(apl_gpio_io_res),
   201                  .resources = apl_gpio_io_res,
 > 202                  .pdata_size = sizeof(apl_pinctrl_pdata),
   203                  .platform_data = &apl_pinctrl_pdata,
   204                  .ignore_resource_conflicts = true,
   205          },

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

Attachment: .config.gz
Description: Binary data

Reply via email to