tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing head: 65b66682344a15ba2069d4dd8d0cc39cc3aed7e9 commit: 92ce7e83b4e5c86687d748ba53cb755acdce1256 [84/85] driver_find_device: Unify the match function with class_find_device() config: s390-debug_defconfig (attached as .config) compiler: s390-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 92ce7e83b4e5c86687d748ba53cb755acdce1256 # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag Reported-by: kbuild test robot All warnings (new ones prefixed by >>): drivers/s390/cio/device.c: In function '__ccwdev_check_busid': >> drivers/s390/cio/device.c:1660:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] bus_id = id; ^ -- drivers/s390/cio/ccwgroup.c: In function '__ccwgroupdev_check_busid': >> drivers/s390/cio/ccwgroup.c:613:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *bus_id = id; ^~ vim +/const +1660 drivers/s390/cio/device.c ^1da177e Linus Torvalds 2005-04-16 1651 ^1da177e Linus Torvalds 2005-04-16 1652 /* ^1da177e Linus Torvalds 2005-04-16 1653 * get ccw_device matching the busid, but only if owned by cdrv ^1da177e Linus Torvalds 2005-04-16 1654 */ b0744bd2 Cornelia Huck 2005-06-25 1655 static int 92ce7e83 Suzuki K Poulose 2019-06-14 1656 __ccwdev_check_busid(struct device *dev, const void *id) b0744bd2 Cornelia Huck 2005-06-25 1657 { b0744bd2 Cornelia Huck 2005-06-25 1658 char *bus_id; b0744bd2 Cornelia Huck 2005-06-25 1659 12975aef Cornelia Huck 2006-10-11 @1660 bus_id = id; b0744bd2 Cornelia Huck 2005-06-25 1661 98df67b3 Kay Sievers 2008-12-25 1662 return (strcmp(bus_id, dev_name(dev)) == 0); b0744bd2 Cornelia Huck 2005-06-25 1663 } b0744bd2 Cornelia Huck 2005-06-25 1664 :::::: The code at line 1660 was first introduced by commit :::::: 12975aef62836e9f3e179afaaded8045f8a25ac4 [S390] cio: remove casts from/to (void *). :::::: TO: Cornelia Huck :::::: CC: Martin Schwidefsky --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation