[PATCH v3 4/5] nouveau_hwmon: Add support for auto_point attributes

kbuild test robot lkp at intel.com
Sat Apr 22 00:46:40 UTC 2017


Hi Oscar,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.11-rc7 next-20170421]
[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/Oscar-Salvador/replace-hwmon_device_register-for-hwmon_device_register_with_info/20170422-064646
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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=arm64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kobject.h:21:0,
                    from include/linux/device.h:17,
                    from include/linux/acpi.h:27,
                    from drivers/gpu/drm/nouveau/nouveau_hwmon.c:26:
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:366:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
    ATTRIBUTE_GROUPS(pwm_fan_sensor);
                     ^
   include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS'
     .attrs = _name##_attrs,     \
              ^~~~~
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:366:18: note: (near initialization for 'pwm_fan_sensor_group.attrs')
    ATTRIBUTE_GROUPS(pwm_fan_sensor);
                     ^
   include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS'
     .attrs = _name##_attrs,     \
              ^~~~~
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:374:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
    ATTRIBUTE_GROUPS(temp1_auto_point_sensor);
                     ^
   include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS'
     .attrs = _name##_attrs,     \
              ^~~~~
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:374:18: note: (near initialization for 'temp1_auto_point_sensor_group.attrs')
    ATTRIBUTE_GROUPS(temp1_auto_point_sensor);
                     ^
   include/linux/sysfs.h:148:11: note: in definition of macro 'ATTRIBUTE_GROUPS'
     .attrs = _name##_attrs,     \
              ^~~~~
   drivers/gpu/drm/nouveau/nouveau_hwmon.c: In function 'nouveau_read_string':
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:754:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      *buf = input_label;
           ^
   In file included from include/linux/kobject.h:21:0,
                    from include/linux/device.h:17,
                    from include/linux/acpi.h:27,
                    from drivers/gpu/drm/nouveau/nouveau_hwmon.c:26:
   At top level:
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:374:18: warning: 'temp1_auto_point_sensor_groups' defined but not used [-Wunused-variable]
    ATTRIBUTE_GROUPS(temp1_auto_point_sensor);
                     ^
   include/linux/sysfs.h:141:38: note: in definition of macro '__ATTRIBUTE_GROUPS'
    static const struct attribute_group *_name##_groups[] = { \
                                         ^~~~~
>> drivers/gpu/drm/nouveau/nouveau_hwmon.c:374:1: note: in expansion of macro 'ATTRIBUTE_GROUPS'
    ATTRIBUTE_GROUPS(temp1_auto_point_sensor);
    ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:366:18: warning: 'pwm_fan_sensor_groups' defined but not used [-Wunused-variable]
    ATTRIBUTE_GROUPS(pwm_fan_sensor);
                     ^
   include/linux/sysfs.h:141:38: note: in definition of macro '__ATTRIBUTE_GROUPS'
    static const struct attribute_group *_name##_groups[] = { \
                                         ^~~~~
   drivers/gpu/drm/nouveau/nouveau_hwmon.c:366:1: note: in expansion of macro 'ATTRIBUTE_GROUPS'
    ATTRIBUTE_GROUPS(pwm_fan_sensor);
    ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/ATTRIBUTE_GROUPS +374 drivers/gpu/drm/nouveau/nouveau_hwmon.c

   358		return iccsense->power_w_crit;
   359	}
   360	
   361	static const struct attribute *pwm_fan_sensor_attrs[] = {
   362		&sensor_dev_attr_pwm1_min.dev_attr.attr,
   363		&sensor_dev_attr_pwm1_max.dev_attr.attr,
   364		NULL
   365	};
   366	ATTRIBUTE_GROUPS(pwm_fan_sensor);
   367	
   368	static const struct attribute *temp1_auto_point_sensor_attrs[] = {
   369		&sensor_dev_attr_temp1_auto_point1_pwm.dev_attr.attr,
   370		&sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr,
   371		&sensor_dev_attr_temp1_auto_point1_temp_hyst.dev_attr.attr,
   372		NULL
   373	};
 > 374	ATTRIBUTE_GROUPS(temp1_auto_point_sensor);
   375	
   376	#define N_ATTR_GROUPS   3
   377	
   378	
   379	static const u32 nouveau_config_chip[] = {
   380		HWMON_C_UPDATE_INTERVAL,
   381		0
   382	};

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 34619 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170422/10fa1ac4/attachment-0001.gz>


More information about the dri-devel mailing list