tree: git://git.cmpxchg.org/linux-mmotm.git master head: 6102e3c755ac0084fdce65f69a7a149fc51a8a86 commit: 57add260b21afa6a56d0c045e951f98a0cc3f2c8 [134/321] genalloc: add support of multiple gen_pools per device config: i386-randconfig-r0-201528 (attached as .config) reproduce: git checkout 57add260b21afa6a56d0c045e951f98a0cc3f2c8 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): lib/genalloc.c: In function 'gen_pool_get': >> lib/genalloc.c:599:67: warning: passing argument 4 of 'devres_find' discards 'const' qualifier from pointer target type p = devres_find(dev, devm_gen_pool_release, devm_gen_pool_match, name); ^ In file included from include/linux/node.h:17:0, from include/linux/cpu.h:16, from include/linux/of_device.h:4, from lib/genalloc.c:37: include/linux/device.h:620:14: note: expected 'void *' but argument is of type 'const char *' extern void *devres_find(struct device *dev, dr_release_t release, ^ vim +599 lib/genalloc.c 583 return 0; 584 585 return !strcmp((*p)->name, data); 586 } 587 588 /** 589 * gen_pool_get - Obtain the gen_pool (if any) for a device 590 * @dev: device to retrieve the gen_pool from 591 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device 592 * 593 * Returns the gen_pool for the device if one is present, or NULL. 594 */ 595 struct gen_pool *gen_pool_get(struct device *dev, const char *name) 596 { 597 struct gen_pool **p; 598 > 599 p = devres_find(dev, devm_gen_pool_release, devm_gen_pool_match, name); 600 if (!p) 601 return NULL; 602 return *p; 603 } 604 EXPORT_SYMBOL_GPL(gen_pool_get); 605 606 /** 607 * devm_gen_pool_create - managed gen_pool_create --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation