lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201706070802.oB1UikRc%fengguang.wu@intel.com>
Date:   Wed, 7 Jun 2017 08:45:23 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Andrew Jeffery <andrew@...id.au>
Cc:     kbuild-all@...org, linux-hwmon@...r.kernel.org,
        Andrew Jeffery <andrew@...id.au>, jdelvare@...e.com,
        linux@...ck-us.net, corbet@....net, linux-doc@...r.kernel.org,
        linux-kernel@...r.kernel.org, joel@....id.au,
        msbarth@...ux.vnet.ibm.com, tpearson@...torengineering.com,
        openbmc@...ts.ozlabs.org
Subject: Re: [PATCH v3] hwmon: Add support for MAX31785 intelligent fan
 controller

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

Download attachment ".config.gz" of type "application/gzip" (47732 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ