Hi David, [auto build test WARNING on j.anaszewski-leds/for-next] [also build test WARNING on next-20160302] [cannot apply to v4.5-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/David-Rivshin-Allworx/leds-Add-driver-for-the-ISSI-IS31FL32xx-family-of-LED-controllers/20160303-110656 base: https://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds for-next config: sparc64-allyesconfig (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=sparc64 All warnings (new ones prefixed by >>): drivers/leds/leds-is31fl32xx.c: In function 'is31fl32xx_parse_child_dt': >> drivers/leds/leds-is31fl32xx.c:344:6: warning: passing argument 1 of 'of_property_read_string' discards 'const' qualifier from pointer target type if (of_property_read_string(child, "label", &cdev->name)) ^ In file included from arch/sparc/include/asm/openprom.h:14:0, from arch/sparc/include/asm/device.h:9, from include/linux/device.h:30, from include/linux/i2c.h:30, from drivers/leds/leds-is31fl32xx.c:17: include/linux/of.h:299:12: note: expected 'struct device_node *' but argument is of type 'const struct device_node *' extern int of_property_read_string(struct device_node *np, ^ drivers/leds/leds-is31fl32xx.c:356:2: warning: passing argument 1 of 'of_property_read_string' discards 'const' qualifier from pointer target type of_property_read_string(child, "linux,default-trigger", ^ In file included from arch/sparc/include/asm/openprom.h:14:0, from arch/sparc/include/asm/device.h:9, from include/linux/device.h:30, from include/linux/i2c.h:30, from drivers/leds/leds-is31fl32xx.c:17: include/linux/of.h:299:12: note: expected 'struct device_node *' but argument is of type 'const struct device_node *' extern int of_property_read_string(struct device_node *np, ^ vim +344 drivers/leds/leds-is31fl32xx.c 328 } 329 330 static inline size_t sizeof_is31fl32xx_priv(int num_leds) 331 { 332 return sizeof(struct is31fl32xx_priv) + 333 (sizeof(struct is31fl32xx_led_data) * num_leds); 334 } 335 336 static int is31fl32xx_parse_child_dt(const struct device *dev, 337 const struct device_node *child, 338 struct is31fl32xx_led_data *led_data) 339 { 340 struct led_classdev *cdev = &led_data->cdev; 341 int ret = 0; 342 u32 reg; 343 > 344 if (of_property_read_string(child, "label", &cdev->name)) 345 cdev->name = child->name; 346 347 ret = of_property_read_u32(child, "reg", ®); 348 if (ret || reg < 1 || reg > led_data->priv->cdef->channels) { 349 dev_err(dev, 350 "Child node %s does not have a valid reg property\n", 351 child->full_name); 352 return -EINVAL; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data