Re: [PATCHv4 7/8] Changed code to align with coding style of using octat

[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:270:33: error: expected ')' before numeric constant
    static iio_device_attr(enabled, 0644, adt7316_show_enabled,
                                    ^~~~
   drivers/staging/iio/addac/adt7316.c:312:40: error: expected ')' before numeric constant
    static iio_device_attr(select_ex_temp, 0644, adt7316_show_select_ex_temp,
                                           ^~~~
   drivers/staging/iio/addac/adt7316.c:351:30: error: expected ')' before numeric constant
    static iio_device_attr(mode, 0644, adt7316_show_mode, adt7316_store_mode, 0);
                                 ^~~~
   drivers/staging/iio/addac/adt7316.c:360:35: error: expected ')' before numeric constant
    static iio_device_attr(all_modes, 0444, adt7316_show_all_modes, NULL, 0);
                                      ^~~~
   drivers/staging/iio/addac/adt7316.c:441:36: error: expected ')' before numeric constant
    static iio_device_attr(ad_channel, 0644, adt7316_show_ad_channel,
                                       ^~~~
   drivers/staging/iio/addac/adt7316.c:462:41: error: expected ')' before numeric constant
    static iio_device_attr(all_ad_channels, 0444, adt7316_show_all_ad_channels,
                                            ^~~~
   drivers/staging/iio/addac/adt7316.c:499:43: error: expected ')' before numeric constant
    static iio_device_attr(disable_averaging, 0644, adt7316_show_disable_averaging,
                                              ^~~~
   drivers/staging/iio/addac/adt7316.c:536:46: error: expected ')' before numeric constant
    static iio_device_attr(enable_smbus_timeout, 0644,
                                                 ^~~~
   drivers/staging/iio/addac/adt7316.c:573:35: error: expected ')' before numeric constant
    static iio_device_attr(powerdown, 0644, adt7316_show_powerdown,
                                      ^~~~
   drivers/staging/iio/addac/adt7316.c:609:39: error: expected ')' before numeric constant
    static iio_device_attr(fast_ad_clock, 0644, adt7316_show_fast_ad_clock,
                                          ^~~~
   drivers/staging/iio/addac/adt7316.c:660:44: error: expected ')' before numeric constant
    static iio_device_attr(da_high_resolution, 0644,
                                               ^~~~
   drivers/staging/iio/addac/adt7316.c:705:43: error: expected ')' before numeric constant
    static iio_device_attr(ain_internal_vref, 0644,
                                              ^~~~
   drivers/staging/iio/addac/adt7316.c:744:48: error: expected ')' before numeric constant
    static iio_device_attr(enable_proportion_daca, 0644,
                                                   ^~~~
   drivers/staging/iio/addac/adt7316.c:782:48: error: expected ')' before numeric constant
    static iio_device_attr(enable_proportion_dacb, 0644,
                                                   ^~~~
   drivers/staging/iio/addac/adt7316.c:824:49: error: expected ')' before numeric constant
    static iio_device_attr(dac_2vref_channels_mask, 0644,
                                                    ^~~~
   drivers/staging/iio/addac/adt7316.c:883:41: error: expected ')' before numeric constant
    static iio_device_attr(DAC_update_mode, 0644, adt7316_show_dac_update_mode,
                                            ^~~~
   drivers/staging/iio/addac/adt7316.c:901:46: error: expected ')' before numeric constant
    static iio_device_attr(all_dac_update_modes, 0444,
                                                 ^~~~
   drivers/staging/iio/addac/adt7316.c:939:36: error: expected ')' before numeric constant
    static iio_device_attr(update_dac, 0644, NULL, adt7316_store_update_dac, 0);
                                       ^~~~
   drivers/staging/iio/addac/adt7316.c:981:43: error: expected ')' before numeric constant
    static iio_device_attr(da_ab_vref_bypass, 0644, adt7316_show_da_ab_vref_bypass,
                                              ^~~~
   drivers/staging/iio/addac/adt7316.c:1024:43: error: expected ')' before numeric constant
    static iio_device_attr(da_cd_vref_bypass, 0644, adt7316_show_da_cd_vref_bypass,
                                              ^~~~
   drivers/staging/iio/addac/adt7316.c:1083:43: error: expected ')' before numeric constant
    static iio_device_attr(dac_internal_vref, 0644, adt7316_show_dac_internal_vref,
                                              ^~~~
   drivers/staging/iio/addac/adt7316.c:1171:29: error: expected ')' before numeric constant
    static iio_device_attr(VDD, 0444, adt7316_show_VDD, NULL, 0);
                                ^~~~
   drivers/staging/iio/addac/adt7316.c:1183:33: error: expected ')' before numeric constant
    static iio_device_attr(in_temp, 0444, adt7316_show_in_temp, NULL, 0);
                                    ^~~~
   drivers/staging/iio/addac/adt7316.c:1195:38: error: expected ')' before numeric constant
    static iio_device_attr(ex_temp_ain1, 0444, adt7316_show_ex_temp_ain1, NULL, 0);
                                         ^~~~
   drivers/staging/iio/addac/adt7316.c:1197:33: error: expected ')' before numeric constant
    static iio_device_attr(ex_temp, 0444, adt7316_show_ex_temp_ain1, NULL, 0);
                                    ^~~~
   drivers/staging/iio/addac/adt7316.c:1209:30: error: expected ')' before numeric constant
    static iio_device_attr(ain2, 0444, adt7316_show_AIN2, NULL, 0);
                                 ^~~~
   drivers/staging/iio/addac/adt7316.c:1221:30: error: expected ')' before numeric constant
    static iio_device_attr(ain3, 0444, adt7316_show_ain3, NULL, 0);
                                 ^~~~
   drivers/staging/iio/addac/adt7316.c:1233:30: error: expected ')' before numeric constant
    static iio_device_attr(ain4, 0444, adt7316_show_ain4, NULL, 0);
                                 ^~~~
   drivers/staging/iio/addac/adt7316.c:1298:40: error: expected ')' before numeric constant
    static iio_device_attr(in_temp_offset, 0644, adt7316_show_in_temp_offset,
                                           ^~~~
   drivers/staging/iio/addac/adt7316.c:1377:47: error: expected ')' before numeric constant
    static iio_device_attr(ex_analog_temp_offset, 0644,
                                                  ^~~~
   drivers/staging/iio/addac/adt7316.c: In function 'adt7316_show_DAC_A':
   drivers/staging/iio/addac/adt7316.c:1458:9: error: implicit declaration of function 'adt7316_show_dac' [-Werror=implicit-function-declaration]
     return adt7316_show_dac(chip, 0, buf);
            ^~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c: In function 'adt7316_store_DAC_A':
   drivers/staging/iio/addac/adt7316.c:1469:9: error: implicit declaration of function 'adt7316_store_dac' [-Werror=implicit-function-declaration]
     return adt7316_store_dac(chip, 0, buf, len);
            ^~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c: At top level:
   drivers/staging/iio/addac/adt7316.c:1472: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:1495: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:1518: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:1541: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:1577:41: error: expected ')' before numeric constant
    static iio_device_attr(manufactorer_id, 0444, adt7316_show_manufactorer_id,
                                            ^~~~
   drivers/staging/iio/addac/adt7316.c:1596: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:1617: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:1620: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:1621: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:1622: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:1623: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:1624: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:1625: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:1626: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:1627: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:1628: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:1629: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:1630: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:1631: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:1632: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:1633: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:1634: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:1635: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:1636: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:1637: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:1639: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:1640: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:1641: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:1642: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:1645: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:1646: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:1647: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:1648: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:1649: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:1651: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:1652: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:1653: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:1662: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:1662: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:1662:2: error: initializer element is not constant
     &iio_dev_attr_all_modes.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1662:2: note: (near initialization for 'adt7516_attributes[0]')
   drivers/staging/iio/addac/adt7316.c:1663: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:1663: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:1663:2: error: initializer element is not constant
     &iio_dev_attr_mode.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1663:2: note: (near initialization for 'adt7516_attributes[1]')
>> drivers/staging/iio/addac/adt7316.c:1664: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:1664: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:1664: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:1664:2: error: initializer element is not constant
     &iio_dev_attr_select_ex_temp.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1664:2: note: (near initialization for 'adt7516_attributes[2]')
   drivers/staging/iio/addac/adt7316.c:1665: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:1665: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:1665:2: error: initializer element is not constant
     &iio_dev_attr_enabled.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1665:2: note: (near initialization for 'adt7516_attributes[3]')
   drivers/staging/iio/addac/adt7316.c:1666: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:1666: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:1666:2: error: initializer element is not constant
     &iio_dev_attr_ad_channel.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1666:2: note: (near initialization for 'adt7516_attributes[4]')
   drivers/staging/iio/addac/adt7316.c:1667: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:1667: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:1667:2: error: initializer element is not constant
     &iio_dev_attr_all_ad_channels.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1667:2: note: (near initialization for 'adt7516_attributes[5]')
   drivers/staging/iio/addac/adt7316.c:1668: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:1668: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:1668:2: error: initializer element is not constant
     &iio_dev_attr_disable_averaging.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1668:2: note: (near initialization for 'adt7516_attributes[6]')
   drivers/staging/iio/addac/adt7316.c:1669: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:1669: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:1669:2: error: initializer element is not constant
     &iio_dev_attr_enable_smbus_timeout.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1669:2: note: (near initialization for 'adt7516_attributes[7]')
   drivers/staging/iio/addac/adt7316.c:1670: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:1670:34: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_powerdown.dev_attr.attr,
                                     ^
   drivers/staging/iio/addac/adt7316.c:1670:2: error: initializer element is not constant
     &iio_dev_attr_powerdown.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1670:2: note: (near initialization for 'adt7516_attributes[8]')
   drivers/staging/iio/addac/adt7316.c:1671:29: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_fast_ad_clock.dev_attr.attr,
                                ^
   drivers/staging/iio/addac/adt7316.c:1671:38: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_fast_ad_clock.dev_attr.attr,
                                         ^
   drivers/staging/iio/addac/adt7316.c:1671:2: error: initializer element is not constant
     &iio_dev_attr_fast_ad_clock.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1671:2: note: (near initialization for 'adt7516_attributes[9]')
   drivers/staging/iio/addac/adt7316.c:1672:3: error: 'iio_dev_attr_ain_internal_vref' undeclared here (not in a function)
     &iio_dev_attr_ain_internal_vref.dev_attr.attr,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/iio/addac/adt7316.c:1672:33: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_ain_internal_vref.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_ain_internal_vref.dev_attr.attr,
                                             ^
   drivers/staging/iio/addac/adt7316.c:1672:2: error: initializer element is not constant
     &iio_dev_attr_ain_internal_vref.dev_attr.attr,
     ^
   drivers/staging/iio/addac/adt7316.c:1672:2: note: (near initialization for 'adt7516_attributes[10]')
   drivers/staging/iio/addac/adt7316.c:1673:34: error: request for member 'dev_attr' in something not a structure or union
     &iio_dev_attr_da_high_resolution.dev_attr.attr,
                                     ^
   drivers/staging/iio/addac/adt7316.c:1673:43: error: request for member 'attr' in something not a structure or union
     &iio_dev_attr_da_high_resolution.dev_attr.attr,
..

vim +270 drivers/staging/iio/addac/adt7316.c

   264		if (_adt7316_store_enabled(chip, enable) < 0)
   265			return -EIO;
   266	
   267		return len;
   268	}
   269	
 > 270	static iio_device_attr(enabled, 0644, adt7316_show_enabled,
   271			       adt7316_store_enabled, 0);
   272	
   273	static ssize_t adt7316_show_select_ex_temp(struct device *dev,

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux