Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1136458pxj; Thu, 17 Jun 2021 23:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/lsNdqk9sZBAcKd6RM+ukGBVg4rp0t7mqW+LjDzzmCyEo7WZSSBsknngDO7h3d2y1s0tZ X-Received: by 2002:a92:d2ca:: with SMTP id w10mr6109991ilg.54.1623999009511; Thu, 17 Jun 2021 23:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623999009; cv=none; d=google.com; s=arc-20160816; b=GVL22fPODa9twEIVxhXgT1DVqVLeIITdmRySgYNxkKeJL0b0DR8b0qdcx7IyeJmmdD wAGC5vyDVd1BwEtkAeUIwHdHtMuhB/H5WFpy1jXyhb61B4j3ZxnVmFoqTidTJdAJroBK nZRwUoBcQikk+gy7g4PC5VJNtDqe588J85FhuXGs2UvI3qnudwcpprPIQK2d3eb+O2jJ 5Cl6N7GB5S3uQxln0sX+McHpacExSKOFNTjyQRu4/Dr8IHhA9Aahekd7vzegNw7n7wZR RxQ9OqmvOjvqlYwaZroGQT8qjmksv72CLAb9nf2U7auKxHO6d35I8mkiwB1GXHfPm5RE aSnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mEnbPlkHvOQw6x4hQSqF68c/8QoN3iBBT3UWqvpQoDU=; b=lXUBFw5Zj1T9Yf1YkNLLBKuMYLTOshVGppr2S0q/fnrpPC9RGTmjCWxfPJXIpfDkfh xEyBO+cH8JzM5TwHK9WMv+y4/6nViHu31AOUdzZsxkdZGbh27TNk2PXBOmtoNgW/Sfe+ XuiQLq8SRH9X19atiVk/PnRqr57Oaa8C8w5Xl79LtZ9MnapvDMDwok4AcxEHCFPoppGX 3ooPLJzEIBP1FYBlt5XtOQ+PSJeunH2ipyJavBZywbiqrUry27mvLdIkVucsCyP4KBS0 rygYlCJsNm0HjzLiNuuaR9iDSaFCoIiLvhCSJRrNA5+CZMgUiqHk+vrDphl75wIozKmS v1YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bV8rj8NK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q49si8150986jav.91.2021.06.17.23.49.57; Thu, 17 Jun 2021 23:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bV8rj8NK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231759AbhFRGnF (ORCPT + 99 others); Fri, 18 Jun 2021 02:43:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:41374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbhFRGnE (ORCPT ); Fri, 18 Jun 2021 02:43:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7B78F60FF4; Fri, 18 Jun 2021 06:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623998455; bh=I6t3BsuXoW1cps0ZCaiZQV3tOIvkZXAxUoTVJlmGoVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bV8rj8NKR6MT5+dMfX1d3UWWu78qlCZdZJdArcyOc5sixFcTYkFI73RvUPKpYRgbq C7VTjsvmwQLugqTAF6z+zKfS2ayJfb0iUTrEo24yVwdMWxXmPxmv8tUJFYYVABMHZZ d9dSl9N9eM+mof6SoYrdl9qrP2/HYhskIE36SXbo= Date: Fri, 18 Jun 2021 08:40:52 +0200 From: Greg Kroah-Hartman To: Matthias Kaehlcke Cc: Masahiro Yamada , Naresh Kamboju , Linux-Next Mailing List , open list , linux-usb@vger.kernel.or, lkft-triage@lists.linaro.org, Stephen Rothwell , linux-kbuild@vger.kernel.org Subject: Re: [next] [arm64] allmodconfig build failed - xhci-plat.c:427: undefined reference to `onboard_hub_destroy_pdevs' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2021 at 11:16:18AM -0700, Matthias Kaehlcke wrote: > On Thu, Jun 17, 2021 at 03:45:57PM +0200, Greg Kroah-Hartman wrote: > > On Thu, Jun 17, 2021 at 07:09:15PM +0530, Naresh Kamboju wrote: > > > The arm64 allmodconfig build failed on Linux next 20210617 tag due to > > > the commit, > > > > > > c950686b382d ("usb: host: xhci-plat: Create platform device for > > > onboard hubs in probe()") > > > > > > build error: > > > ------------ > > > aarch64-linux-gnu-ld: drivers/usb/host/xhci-plat.o: in function > > > `xhci_plat_remove': > > > drivers/usb/host/xhci-plat.c:427: undefined reference to > > > `onboard_hub_destroy_pdevs' > > > drivers/usb/host/xhci-plat.c:427:(.text+0x82c): relocation truncated > > > to fit: R_AARCH64_CALL26 against undefined symbol > > > `onboard_hub_destroy_pdevs' > > > aarch64-linux-gnu-ld: drivers/usb/host/xhci-plat.o: in function > > > `xhci_plat_probe': > > > drivers/usb/host/xhci-plat.c:379: undefined reference to > > > `onboard_hub_create_pdevs' > > > drivers/usb/host/xhci-plat.c:379:(.text+0x131c): relocation truncated > > > to fit: R_AARCH64_CALL26 against undefined symbol > > > `onboard_hub_create_pdevs' > > > make[1]: *** [Makefile:1252: vmlinux] Error 1 > > > make[1]: Target '__all' not remade because of errors. > > > make: *** [Makefile:222: __sub-make] Error 2 > > > make: Target '__all' not remade because of errors. > > > > Matthias, this is due to your patch, yet-another config option mis-match > > somewhere. Can you please fix it up? > > I can repro this with: > > make -j 16 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \ > KCONFIG_ALLCONFIG=arch/arm64/configs/defconfig allmodconfig kernel modules > > This results in: > > CONFIG_USB_XHCI_PLATFORM=y > CONFIG_USB_ONBOARD_HUB=m > > The following Kconfig dependency was supposed to prevent this scenario: > > config USB_XHCI_PLATFORM > depends on USB_ONBOARD_HUB || !USB_ONBOARD_HUB > > But apparently this isn't the case. > > With the above allmodconfig command the following warning is emitted: > > WARNING: unmet direct dependencies detected for USB_XHCI_PLATFORM > Depends on [m]: USB_SUPPORT [=y] && USB [=y] && USB_XHCI_HCD [=y] && (USB_ONBOARD_HUB [=m] || !USB_ONBOARD_HUB [=m]) > > I read through kconfig-language.rst multiple times, but it's still not > clear to me how to specify this dependency properly. > > Masahiro/Greg, do you have any pointers? Right now, no, sorry, and I don't have the bandwidth to look into this myself. I've reverted this series from the tree for now, as this issue isn't ok for breaking linux-next, and due to the other merge issues with the dts files. Please work on fixing this up and resending the series when it is resolved. thanks, greg k-h