Re: [PATCH v3] hwmon: Add support for MAX31785 intelligent fan controller

From: kbuild test robot
Date: Tue Jun 06 2017 - 20:46:06 EST


Hi Andrew,

[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on v4.12-rc4 next-20170606]
[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/Andrew-Jeffery/hwmon-Add-support-for-MAX31785-intelligent-fan-controller/20170607-020015
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64

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

In file included from include/linux/kobject.h:21:0,
from include/linux/device.h:17,
from include/linux/hwmon-sysfs.h:23,
from drivers/hwmon/max31785.c:20:
>> drivers/hwmon/max31785.c:727:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
>> drivers/hwmon/max31785.c:727:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:727:50: note: (near initialization for 'sensor_dev_attr_fan1_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
>> drivers/hwmon/max31785.c:727:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:729:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:729:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:729:50: note: (near initialization for 'sensor_dev_attr_fan2_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:729:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:731:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:731:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:731:50: note: (near initialization for 'sensor_dev_attr_fan3_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:731:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:733:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:733:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:733:50: note: (near initialization for 'sensor_dev_attr_fan4_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:733:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:735:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:735:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:735:50: note: (near initialization for 'sensor_dev_attr_fan5_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:735:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:737:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:737:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers/hwmon/max31785.c:737:50: note: (near initialization for 'sensor_dev_attr_fan6_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers/hwmon/max31785.c:737:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/kobject.h:21:0,
from include/linux/device.h:17,
from include/linux/hwmon-sysfs.h:23,
from drivers//hwmon/max31785.c:20:
drivers//hwmon/max31785.c:727:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:727:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:727:50: note: (near initialization for 'sensor_dev_attr_fan1_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:727:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:729:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:729:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:729:50: note: (near initialization for 'sensor_dev_attr_fan2_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:729:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:731:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:731:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:731:50: note: (near initialization for 'sensor_dev_attr_fan3_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:731:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan3_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:733:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:733:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:733:50: note: (near initialization for 'sensor_dev_attr_fan4_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:733:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan4_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:735:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:735:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:735:50: note: (near initialization for 'sensor_dev_attr_fan5_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:735:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan5_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:737:50: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:737:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
drivers//hwmon/max31785.c:737:50: note: (near initialization for 'sensor_dev_attr_fan6_input_fast.dev_attr.show')
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^
include/linux/sysfs.h:103:10: note: in definition of macro '__ATTR'
.show = _show, \
^~~~~
>> include/linux/hwmon-sysfs.h:38:4: note: in expansion of macro 'SENSOR_ATTR'
= SENSOR_ATTR(_name, _mode, _show, _store, _index)
^~~~~~~~~~~
drivers//hwmon/max31785.c:737:8: note: in expansion of macro 'SENSOR_DEVICE_ATTR'
static SENSOR_DEVICE_ATTR(fan6_input_fast, 0444, max31785_fan_get_fast,
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +727 drivers/hwmon/max31785.c

721
722 static const struct hwmon_chip_info max31785_chip_info = {
723 .ops = &max31785_hwmon_ops,
724 .info = max31785_info,
725 };
726
> 727 static SENSOR_DEVICE_ATTR(fan1_input_fast, 0444, max31785_fan_get_fast,
728 NULL, 0);
729 static SENSOR_DEVICE_ATTR(fan2_input_fast, 0444, max31785_fan_get_fast,
730 NULL, 1);

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

Attachment: .config.gz
Description: application/gzip