Re: [PATCHv4 8/8] Fixes style issues due to mis-aligned carry over lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Scott,

[auto build test ERROR on iio/togreg]
[also build test ERROR on v4.9 next-20161224]
[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/Scott-Matheina/Checkpatch-fixes-to-driver-staging-iio-addac/20161226-041021
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: i386-randconfig-x001-201652 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

                                           ^~~~
   drivers/staging/iio/addac/adt7316.c:1325:40: error: expected ')' before numeric constant
    static iio_device_attr(ex_temp_offset, 0644, adt7316_show_ex_temp_offset,
                                           ^~~~
   drivers/staging/iio/addac/adt7316.c:1351:47: error: expected ')' before numeric constant
    static iio_device_attr(in_analog_temp_offset, 0644,
                                                  ^~~~
   drivers/staging/iio/addac/adt7316.c:1378:47: error: expected ')' before numeric constant
    static iio_device_attr(ex_analog_temp_offset, 0644,
                                                  ^~~~
   drivers/staging/iio/addac/adt7316.c:1476:31: error: expected ')' before numeric constant
    static iio_device_attr(dac_a, 0644, adt7316_show_dac_a, adt7316_store_dac_a, 0);
                                  ^~~~
   drivers/staging/iio/addac/adt7316.c:1499:31: error: expected ')' before numeric constant
    static iio_device_attr(dac_b, 0644, adt7316_show_dac_b, adt7316_store_dac_b, 0);
                                  ^~~~
   drivers/staging/iio/addac/adt7316.c:1522:31: error: expected ')' before numeric constant
    static iio_device_attr(DAC_C, 0644, adt7316_show_dac_c, adt7316_store_dac_c, 0);
                                  ^~~~
   drivers/staging/iio/addac/adt7316.c:1545:31: error: expected ')' before numeric constant
    static iio_device_attr(DAC_D, 0644, adt7316_show_dac_d, adt7316_store_dac_d, 0);
                                  ^~~~
   drivers/staging/iio/addac/adt7316.c:1563:35: error: expected ')' before numeric constant
    static iio_device_attr(device_id, 0444, adt7316_show_device_id, NULL, 0);
                                      ^~~~
   drivers/staging/iio/addac/adt7316.c:1581:41: error: expected ')' before numeric constant
    static iio_device_attr(manufactorer_id, 0444, adt7316_show_manufactorer_id,
                                            ^~~~
   drivers/staging/iio/addac/adt7316.c:1600:36: error: expected ')' before numeric constant
    static iio_device_attr(device_rev, 0444, adt7316_show_device_rev, NULL, 0);
                                       ^~~~
   drivers/staging/iio/addac/adt7316.c:1621:34: error: expected ')' before numeric constant
    static iio_device_attr(bus_type, 0444, adt7316_show_bus_type, NULL, 0);
                                     ^~~~
   drivers/staging/iio/addac/adt7316.c:1624:3: error: 'iio_dev_attr_all_modes' undeclared here (not in a function)
     &iio_dev_attr_all_modes.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1625:3: error: 'iio_dev_attr_mode' undeclared here (not in a function)
     &iio_dev_attr_mode.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1626:3: error: 'iio_dev_attr_enabled' undeclared here (not in a function)
     &iio_dev_attr_enabled.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1627:3: error: 'iio_dev_attr_ad_channel' undeclared here (not in a function)
     &iio_dev_attr_ad_channel.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1628:3: error: 'iio_dev_attr_all_ad_channels' undeclared here (not in a function)
     &iio_dev_attr_all_ad_channels.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1629:3: error: 'iio_dev_attr_disable_averaging' undeclared here (not in a function)
     &iio_dev_attr_disable_averaging.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1630:3: error: 'iio_dev_attr_enable_smbus_timeout' undeclared here (not in a function)
     &iio_dev_attr_enable_smbus_timeout.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1631:3: error: 'iio_dev_attr_powerdown' undeclared here (not in a function)
     &iio_dev_attr_powerdown.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1632:3: error: 'iio_dev_attr_fast_ad_clock' undeclared here (not in a function)
     &iio_dev_attr_fast_ad_clock.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1633:3: error: 'iio_dev_attr_da_high_resolution' undeclared here (not in a function)
     &iio_dev_attr_da_high_resolution.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1634:3: error: 'iio_dev_attr_enable_proportion_daca' undeclared here (not in a function)
     &iio_dev_attr_enable_proportion_daca.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1635:3: error: 'iio_dev_attr_enable_proportion_dacb' undeclared here (not in a function)
     &iio_dev_attr_enable_proportion_dacb.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1636:3: error: 'iio_dev_attr_dac_2vref_channels_mask' undeclared here (not in a function)
     &iio_dev_attr_dac_2vref_channels_mask.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1637:3: error: 'iio_dev_attr_dac_internal_vref' undeclared here (not in a function)
     &iio_dev_attr_dac_internal_vref.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1638:3: error: 'iio_dev_attr_all_dac_update_modes' undeclared here (not in a function)
     &iio_dev_attr_all_dac_update_modes.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1639:3: error: 'iio_dev_attr_update_dac' undeclared here (not in a function)
     &iio_dev_attr_update_dac.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1640:3: error: 'iio_dev_attr_da_ab_vref_bypass' undeclared here (not in a function)
     &iio_dev_attr_da_ab_vref_bypass.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1641:3: error: 'iio_dev_attr_da_cd_vref_bypass' undeclared here (not in a function)
     &iio_dev_attr_da_cd_vref_bypass.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1643:3: error: 'iio_dev_attr_vdd' undeclared here (not in a function)
     &iio_dev_attr_vdd.dev_attr.attr,
      ^~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1644:3: error: 'iio_dev_attr_in_temp' undeclared here (not in a function)
     &iio_dev_attr_in_temp.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1645:3: error: 'iio_dev_attr_ex_temp' undeclared here (not in a function)
     &iio_dev_attr_ex_temp.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1646:3: error: 'iio_dev_attr_in_temp_offset' undeclared here (not in a function)
     &iio_dev_attr_in_temp_offset.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1647:3: error: 'iio_dev_attr_ex_temp_offset' undeclared here (not in a function)
     &iio_dev_attr_ex_temp_offset.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1648:3: error: 'iio_dev_attr_in_analog_temp_offset' undeclared here (not in a function)
     &iio_dev_attr_in_analog_temp_offset.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1649:3: error: 'iio_dev_attr_ex_analog_temp_offset' undeclared here (not in a function)
     &iio_dev_attr_ex_analog_temp_offset.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1650:3: error: 'iio_dev_attr_dac_a' undeclared here (not in a function)
     &iio_dev_attr_dac_a.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1651:3: error: 'iio_dev_attr_dac_b' undeclared here (not in a function)
     &iio_dev_attr_dac_b.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1652:3: error: 'iio_dev_attr_dac_c' undeclared here (not in a function)
     &iio_dev_attr_dac_c.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1653:3: error: 'iio_dev_attr_dac_d' undeclared here (not in a function)
     &iio_dev_attr_dac_d.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1654:3: error: 'iio_dev_attr_device_id' undeclared here (not in a function)
     &iio_dev_attr_device_id.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1655:3: error: 'iio_dev_attr_manufactorer_id' undeclared here (not in a function)
     &iio_dev_attr_manufactorer_id.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1656:3: error: 'iio_dev_attr_device_rev' undeclared here (not in a function)
     &iio_dev_attr_device_rev.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1657:3: error: 'iio_dev_attr_bus_type' undeclared here (not in a function)
     &iio_dev_attr_bus_type.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1666:25: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_all_modes.dev_attr.attr,
                            ^
   drivers/staging/iio/addac/adt7316.c:1666:34: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_all_modes.dev_attr.attr,
                                     ^
   drivers/staging/iio/addac/adt7316.c:1666:2: error: initializer element is not constant
     &iio_dev_attr_all_modes.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1666:2: note: (near initialization for 'adt7516_attributes[0]')
   drivers/staging/iio/addac/adt7316.c:1667:20: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_mode.dev_attr.attr,
                       ^
   drivers/staging/iio/addac/adt7316.c:1667:29: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_mode.dev_attr.attr,
                                ^
   drivers/staging/iio/addac/adt7316.c:1667:2: error: initializer element is not constant
     &iio_dev_attr_mode.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1667:2: note: (near initialization for 'adt7516_attributes[1]')
   drivers/staging/iio/addac/adt7316.c:1668:3: error: 'iio_dev_attr_select_ex_temp' undeclared here (not in a function)
     &iio_dev_attr_select_ex_temp.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1668:30: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_select_ex_temp.dev_attr.attr,
                                 ^
   drivers/staging/iio/addac/adt7316.c:1668:39: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_select_ex_temp.dev_attr.attr,
                                          ^
   drivers/staging/iio/addac/adt7316.c:1668:2: error: initializer element is not constant
     &iio_dev_attr_select_ex_temp.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1668:2: note: (near initialization for 'adt7516_attributes[2]')
   drivers/staging/iio/addac/adt7316.c:1669:23: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_enabled.dev_attr.attr,
                          ^
   drivers/staging/iio/addac/adt7316.c:1669:32: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_enabled.dev_attr.attr,
                                   ^
   drivers/staging/iio/addac/adt7316.c:1669:2: error: initializer element is not constant
     &iio_dev_attr_enabled.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1669:2: note: (near initialization for 'adt7516_attributes[3]')
   drivers/staging/iio/addac/adt7316.c:1670:26: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_ad_channel.dev_attr.attr,
                             ^
   drivers/staging/iio/addac/adt7316.c:1670:35: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_ad_channel.dev_attr.attr,
                                      ^
   drivers/staging/iio/addac/adt7316.c:1670:2: error: initializer element is not constant
     &iio_dev_attr_ad_channel.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1670:2: note: (near initialization for 'adt7516_attributes[4]')
   drivers/staging/iio/addac/adt7316.c:1671:31: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_all_ad_channels.dev_attr.attr,
                                  ^
   drivers/staging/iio/addac/adt7316.c:1671:40: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_all_ad_channels.dev_attr.attr,
                                           ^
   drivers/staging/iio/addac/adt7316.c:1671:2: error: initializer element is not constant
     &iio_dev_attr_all_ad_channels.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1671:2: note: (near initialization for 'adt7516_attributes[5]')
   drivers/staging/iio/addac/adt7316.c:1672:33: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_disable_averaging.dev_attr.attr,
                                    ^
   drivers/staging/iio/addac/adt7316.c:1672:42: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_disable_averaging.dev_attr.attr,
                                             ^
   drivers/staging/iio/addac/adt7316.c:1672:2: error: initializer element is not constant
     &iio_dev_attr_disable_averaging.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1672:2: note: (near initialization for 'adt7516_attributes[6]')
   drivers/staging/iio/addac/adt7316.c:1673:36: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_enable_smbus_timeout.dev_attr.attr,
                                       ^
   drivers/staging/iio/addac/adt7316.c:1673:45: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_enable_smbus_timeout.dev_attr.attr,
                                                ^
   drivers/staging/iio/addac/adt7316.c:1673:2: error: initializer element is not constant
     &iio_dev_attr_enable_smbus_timeout.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1673:2: note: (near initialization for 'adt7516_attributes[7]')
   drivers/staging/iio/addac/adt7316.c:1674:25: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_powerdown.dev_attr.attr,
                            ^
   drivers/staging/iio/addac/adt7316.c:1674:34: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_powerdown.dev_attr.attr,
                                     ^

vim +/iio_dev_attr_ex_temp_offset +1647 drivers/staging/iio/addac/adt7316.c

e019edd4 Scott Matheina 2016-12-25  1638  	&iio_dev_attr_all_dac_update_modes.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1639  	&iio_dev_attr_update_dac.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1640  	&iio_dev_attr_da_ab_vref_bypass.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1641  	&iio_dev_attr_da_cd_vref_bypass.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1642  	&iio_dev_attr_dac_internal_vref.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1643  	&iio_dev_attr_vdd.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27 @1644  	&iio_dev_attr_in_temp.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27 @1645  	&iio_dev_attr_ex_temp.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27  1646  	&iio_dev_attr_in_temp_offset.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27 @1647  	&iio_dev_attr_ex_temp_offset.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27 @1648  	&iio_dev_attr_in_analog_temp_offset.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27  1649  	&iio_dev_attr_ex_analog_temp_offset.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1650  	&iio_dev_attr_dac_a.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25 @1651  	&iio_dev_attr_dac_b.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1652  	&iio_dev_attr_dac_c.dev_attr.attr,
e019edd4 Scott Matheina 2016-12-25  1653  	&iio_dev_attr_dac_d.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27 @1654  	&iio_dev_attr_device_id.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27  1655  	&iio_dev_attr_manufactorer_id.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27  1656  	&iio_dev_attr_device_rev.dev_attr.attr,
35f6b6b8 Sonic Zhang    2010-10-27  1657  	&iio_dev_attr_bus_type.dev_attr.attr,

:::::: The code at line 1647 was first introduced by commit
:::::: 35f6b6b86ede34a9f8c029943842640b2ffbfa19 staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver

:::::: TO: Sonic Zhang <sonic.zhang@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux