Hi Edward, [auto build test ERROR on linus/master] [also build test ERROR on next-20170712] [cannot apply to v4.12] [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/Eddie-James/drivers-fsi-Add-SBEFIFO-and-OCC-drivers/20170707-232144 config: um-allyesconfig (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=um All errors (new ones prefixed by >>): arch/um/drivers/built-in.o: In function `vde_open_real': (.text+0xc9f1): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking arch/um/drivers/built-in.o: In function `vde_open_real': (.text+0xc83c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking arch/um/drivers/built-in.o: In function `vde_open_real': (.text+0xcb55): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking arch/um/drivers/built-in.o: In function `pcap_nametoaddr': (.text+0x1d5e5): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking arch/um/drivers/built-in.o: In function `pcap_nametonetaddr': (.text+0x1d685): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking arch/um/drivers/built-in.o: In function `pcap_nametoproto': (.text+0x1d8a5): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking arch/um/drivers/built-in.o: In function `pcap_nametoport': (.text+0x1d6d7): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking drivers/built-in.o: In function `img_ascii_lcd_probe': drivers/auxdisplay/img-ascii-lcd.c:386: undefined reference to `devm_ioremap_resource' drivers/built-in.o: In function `sbefifo_probe': >> drivers/fsi/fsi-sbefifo.c:853: undefined reference to `of_platform_device_create' collect2: error: ld returned 1 exit status vim +853 drivers/fsi/fsi-sbefifo.c 792 793 static int sbefifo_probe(struct device *dev) 794 { 795 struct fsi_device *fsi_dev = to_fsi_dev(dev); 796 struct sbefifo *sbefifo; 797 struct device_node *np; 798 struct platform_device *child; 799 char child_name[32]; 800 u32 sts; 801 int ret, child_idx = 0; 802 803 sbefifo = kzalloc(sizeof(*sbefifo), GFP_KERNEL); 804 if (!sbefifo) 805 return -ENOMEM; 806 807 sbefifo->fsi_dev = fsi_dev; 808 809 ret = sbefifo_inw(sbefifo, SBEFIFO_UP | SBEFIFO_STS, &sts); 810 if (ret) 811 return ret; 812 813 if (!(sts & SBEFIFO_EMPTY)) { 814 dev_err(&sbefifo->fsi_dev->dev, 815 "Found data in upstream fifo\n"); 816 return -EIO; 817 } 818 819 ret = sbefifo_inw(sbefifo, SBEFIFO_DWN | SBEFIFO_STS, &sts); 820 if (ret) 821 return ret; 822 823 if (!(sts & SBEFIFO_EMPTY)) { 824 dev_err(&sbefifo->fsi_dev->dev, 825 "Found data in downstream fifo\n"); 826 return -EIO; 827 } 828 829 sbefifo->mdev.minor = MISC_DYNAMIC_MINOR; 830 sbefifo->mdev.fops = &sbefifo_fops; 831 sbefifo->mdev.name = sbefifo->name; 832 sbefifo->mdev.parent = dev; 833 spin_lock_init(&sbefifo->lock); 834 kref_init(&sbefifo->kref); 835 836 sbefifo->idx = ida_simple_get(&sbefifo_ida, 1, INT_MAX, GFP_KERNEL); 837 snprintf(sbefifo->name, sizeof(sbefifo->name), "sbefifo%d", 838 sbefifo->idx); 839 init_waitqueue_head(&sbefifo->wait); 840 INIT_LIST_HEAD(&sbefifo->xfrs); 841 842 /* This bit of silicon doesn't offer any interrupts... */ 843 setup_timer(&sbefifo->poll_timer, sbefifo_poll_timer, 844 (unsigned long)sbefifo); 845 846 list_add(&sbefifo->link, &sbefifo_fifos); 847 848 if (dev->of_node) { 849 /* create platform devs for dts child nodes (occ, etc) */ 850 for_each_child_of_node(dev->of_node, np) { 851 snprintf(child_name, sizeof(child_name), "%s-dev%d", 852 sbefifo->name, child_idx++); > 853 child = of_platform_device_create(np, child_name, dev); 854 if (!child) 855 dev_warn(&sbefifo->fsi_dev->dev, 856 "failed to create child node dev\n"); 857 } 858 } 859 860 return misc_register(&sbefifo->mdev); 861 } 862 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation