Re: [PATCHv4 2/8] Fixed variables not being consistently lower case
From: kbuild test robot
Date: Sun Dec 25 2016 - 15:24:29 EST
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: In function 'adt7316_event_handler':
>> drivers/staging/iio/addac/adt7316.c:1758:12: error: implicit declaration of function 'iio_unmod_event_code' [-Werror=implicit-function-declaration]
iio_unmod_event_code(iio_temp, 0,
^~~~~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1758:33: error: 'iio_temp' undeclared (first use in this function)
iio_unmod_event_code(iio_temp, 0,
^~~~~~~~
drivers/staging/iio/addac/adt7316.c:1758:33: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/staging/iio/addac/adt7316.c:1759:12: error: 'iio_ev_type_thresh' undeclared (first use in this function)
iio_ev_type_thresh,
^~~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1760:12: error: 'iio_ev_dir_rising' undeclared (first use in this function)
iio_ev_dir_rising),
^~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1766:12: error: 'iio_ev_dir_falling' undeclared (first use in this function)
iio_ev_dir_falling),
^~~~~~~~~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1782:33: error: 'iio_voltage' undeclared (first use in this function)
iio_unmod_event_code(iio_voltage, 1,
^~~~~~~~~~~
>> drivers/staging/iio/addac/adt7316.c:1784:12: error: 'iio_ev_dir_either' undeclared (first use in this function)
iio_ev_dir_either),
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/iio_unmod_event_code +1758 drivers/staging/iio/addac/adt7316.c
1752 if ((chip->id & ID_FAMILY_MASK) != ID_ADT75XX)
1753 stat1 &= 0x1F;
1754
1755 time = iio_get_time_ns(indio_dev);
1756 if (stat1 & BIT(0))
1757 iio_push_event(indio_dev,
> 1758 iio_unmod_event_code(iio_temp, 0,
> 1759 iio_ev_type_thresh,
> 1760 iio_ev_dir_rising),
1761 time);
1762 if (stat1 & BIT(1))
1763 iio_push_event(indio_dev,
1764 iio_unmod_event_code(iio_temp, 0,
1765 iio_ev_type_thresh,
> 1766 iio_ev_dir_falling),
1767 time);
1768 if (stat1 & BIT(2))
1769 iio_push_event(indio_dev,
1770 iio_unmod_event_code(iio_temp, 1,
1771 iio_ev_type_thresh,
1772 iio_ev_dir_rising),
1773 time);
1774 if (stat1 & BIT(3))
1775 iio_push_event(indio_dev,
1776 iio_unmod_event_code(iio_temp, 1,
1777 iio_ev_type_thresh,
1778 iio_ev_dir_falling),
1779 time);
1780 if (stat1 & BIT(5))
1781 iio_push_event(indio_dev,
> 1782 iio_unmod_event_code(iio_voltage, 1,
1783 iio_ev_type_thresh,
> 1784 iio_ev_dir_either),
1785 time);
1786 if (stat1 & BIT(6))
1787 iio_push_event(indio_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