Re: [PATCH 1/3] thermal: Add support for hierarchical thermal zones

From: kbuild test robot
Date: Fri Oct 30 2015 - 13:58:27 EST


Hi Javi,

[auto build test WARNING on thermal/next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Javi-Merino/Hierarchical-thermal-zones/20151031-005118
config: m32r-m32104ut_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m32r

All warnings (new ones prefixed by >>):

In file included from drivers/hwmon/lm75.c:31:0:
include/linux/thermal.h: In function 'thermal_zone_add_subtz':
>> include/linux/thermal.h:471:3: warning: return makes pointer from integer without a cast
{ return -ENODEV; }
^
include/linux/thermal.h: In function 'thermal_zone_del_subtz':
include/linux/thermal.h:475:3: warning: return makes pointer from integer without a cast
{ return -ENODEV; }
^

vim +471 include/linux/thermal.h

455 static inline void thermal_zone_device_update(struct thermal_zone_device *tz)
456 { }
457 static inline struct thermal_cooling_device *
458 thermal_cooling_device_register(char *type, void *devdata,
459 const struct thermal_cooling_device_ops *ops)
460 { return ERR_PTR(-ENODEV); }
461 static inline struct thermal_cooling_device *
462 thermal_of_cooling_device_register(struct device_node *np,
463 char *type, void *devdata, const struct thermal_cooling_device_ops *ops)
464 { return ERR_PTR(-ENODEV); }
465 static inline void thermal_cooling_device_unregister(
466 struct thermal_cooling_device *cdev)
467 { }
468 static inline struct thermal_zone_device *
469 thermal_zone_add_subtz(struct thermal_zone_device *tz,
470 struct thermal_zone_device *subtz)
> 471 { return -ENODEV; }
472 static inline struct thermal_zone_device *
473 thermal_zone_del_subtz(struct thermal_zone_device *tz,
474 struct thermal_zone_device *subtz)
475 { return -ENODEV; }
476 static inline struct thermal_zone_device *thermal_zone_get_zone_by_name(
477 const char *name)
478 { return ERR_PTR(-ENODEV); }
479 static inline int thermal_zone_get_temp(

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

Attachment: .config.gz
Description: Binary data