Hi Andy, [auto build test ERROR on usb/usb-testing] [also build test ERROR on v4.12-rc4 next-20170609] [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/Andy-Shevchenko/usb-misc-usbsevseg-Use-__sysfs_match_string-helper/20170610-055240 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-acpi-redef (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/usb/misc/usbsevseg.c: In function 'set_attr_textmode': >> drivers/usb/misc/usbsevseg.c:307:27: error: passing argument 1 of '__sysfs_match_string' from incompatible pointer type [-Werror=incompatible-pointer-types] i = __sysfs_match_string(display_textmodes, -1, buf); ^~~~~~~~~~~~~~~~~ In file included from include/linux/bitmap.h:8:0, from include/linux/cpumask.h:11, from arch/x86/include/asm/cpumask.h:4, from arch/x86/include/asm/msr.h:10, from arch/x86/include/asm/processor.h:20, from arch/x86/include/asm/cpufeature.h:4, from arch/x86/include/asm/thread_info.h:52, from include/linux/thread_info.h:37, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:80, from include/linux/spinlock.h:50, from include/linux/mmzone.h:7, from include/linux/gfp.h:5, from include/linux/slab.h:14, from drivers/usb/misc/usbsevseg.c:15: include/linux/string.h:146:5: note: expected 'const char * const*' but argument is of type 'char **' int __sysfs_match_string(const char * const *array, size_t n, const char *s); ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/__sysfs_match_string +307 drivers/usb/misc/usbsevseg.c 301 struct device_attribute *attr, const char *buf, size_t count) 302 { 303 struct usb_interface *intf = to_usb_interface(dev); 304 struct usb_sevsegdev *mydev = usb_get_intfdata(intf); 305 int i; 306 > 307 i = __sysfs_match_string(display_textmodes, -1, buf); 308 if (i < 0) 309 return i; 310 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip