Hi Randy,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.18-rc1 next-20180619]
[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/Randy-Dunlap/headers-separate-mod_devicetable-h-from-platform_device-h/20180620-030041
config: x86_64-randconfig-x000-201824 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/media//platform/vimc/vimc-capture.c:520:40: error: array type has 
>> incomplete element type 'struct platform_device_id'
    static const struct platform_device_id vimc_cap_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
>> drivers/media//platform/vimc/vimc-capture.c:522:3: error: field name not in 
>> record or union initializer
      .name           = VIMC_CAP_DRV_NAME,
      ^
   drivers/media//platform/vimc/vimc-capture.c:522:3: note: (near 
initialization for 'vimc_cap_driver_ids')
   drivers/media//platform/vimc/vimc-capture.c:520:40: warning: 
'vimc_cap_driver_ids' defined but not used [-Wunused-variable]
    static const struct platform_device_id vimc_cap_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
--
>> drivers/media//platform/vimc/vimc-debayer.c:580:40: error: array type has 
>> incomplete element type 'struct platform_device_id'
    static const struct platform_device_id vimc_deb_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
>> drivers/media//platform/vimc/vimc-debayer.c:582:3: error: field name not in 
>> record or union initializer
      .name           = VIMC_DEB_DRV_NAME,
      ^
   drivers/media//platform/vimc/vimc-debayer.c:582:3: note: (near 
initialization for 'vimc_deb_driver_ids')
   drivers/media//platform/vimc/vimc-debayer.c:580:40: warning: 
'vimc_deb_driver_ids' defined but not used [-Wunused-variable]
    static const struct platform_device_id vimc_deb_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
--
>> drivers/media//platform/vimc/vimc-scaler.c:434:40: error: array type has 
>> incomplete element type 'struct platform_device_id'
    static const struct platform_device_id vimc_sca_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
>> drivers/media//platform/vimc/vimc-scaler.c:436:3: error: field name not in 
>> record or union initializer
      .name           = VIMC_SCA_DRV_NAME,
      ^
   drivers/media//platform/vimc/vimc-scaler.c:436:3: note: (near initialization 
for 'vimc_sca_driver_ids')
   drivers/media//platform/vimc/vimc-scaler.c:434:40: warning: 
'vimc_sca_driver_ids' defined but not used [-Wunused-variable]
    static const struct platform_device_id vimc_sca_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
--
>> drivers/media//platform/vimc/vimc-sensor.c:437:40: error: array type has 
>> incomplete element type 'struct platform_device_id'
    static const struct platform_device_id vimc_sen_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~
>> drivers/media//platform/vimc/vimc-sensor.c:439:3: error: field name not in 
>> record or union initializer
      .name           = VIMC_SEN_DRV_NAME,
      ^
   drivers/media//platform/vimc/vimc-sensor.c:439:3: note: (near initialization 
for 'vimc_sen_driver_ids')
   drivers/media//platform/vimc/vimc-sensor.c:437:40: warning: 
'vimc_sen_driver_ids' defined but not used [-Wunused-variable]
    static const struct platform_device_id vimc_sen_driver_ids[] = {
                                           ^~~~~~~~~~~~~~~~~~~

vim +520 drivers/media//platform/vimc/vimc-capture.c

4a29b709 Helen Fornazier          2017-06-19  519  
bf183e0f Javier Martinez Canillas 2017-07-14 @520  static const struct 
platform_device_id vimc_cap_driver_ids[] = {
bf183e0f Javier Martinez Canillas 2017-07-14  521       {
4a29b709 Helen Fornazier          2017-06-19 @522               .name           
= VIMC_CAP_DRV_NAME,
4a29b709 Helen Fornazier          2017-06-19  523       },
bf183e0f Javier Martinez Canillas 2017-07-14  524       { }
4a29b709 Helen Fornazier          2017-06-19  525  };
4a29b709 Helen Fornazier          2017-06-19  526  

:::::: The code at line 520 was first introduced by commit
:::::: bf183e0fed825991bc7c9466d0403c8c1c326c4d media: vimc: set id_table for 
platform drivers

:::::: TO: Javier Martinez Canillas <[email protected]>
:::::: CC: Mauro Carvalho Chehab <[email protected]>

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