From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE1EBC072B5 for ; Fri, 24 May 2019 07:46:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93B63217F9 for ; Fri, 24 May 2019 07:46:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="suI/KITx"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="EUN9fDVX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93B63217F9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4D4bbckGBXDMHGXBqT4woZlCCYz6pqVHVLIwS27oIow=; b=suI/KITxgQwWuU mPTXmb3YMG//Eonh2Vlbsv4ILE9oM8f0LR9U6+tLXxnJ2ApuwhQlYSlSqciJa1A/oQZs3ksFCu8mm fwZPYll86g2FcIokEijAPMnVI2k5qgEgizuJg67e0Oc6rpDgXb+YL7cFcF8B9j7BUC62X8k+tzdoc ZxkfUROM4cbXN4IRCtuX00Pifx1AO5SnNxNLF7NtVcYpE34CsMqAtdsYHJahdeD8wQ4XxcAlUKiBC 8u8mCTHcmXl4jpT2wDvGRx/PfwIjYC/FPYNh62xJ8cmhL3MdoqJDkWUZpk7a//r9mahT5GO67v+hF lh1Wj+TqBhm7aQh1fbSQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hU4tq-0006mO-8x; Fri, 24 May 2019 07:45:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hU4tn-0006kn-7m; Fri, 24 May 2019 07:45:56 +0000 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F2B0D217F9; Fri, 24 May 2019 07:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558683954; bh=ObrvGpPLiHEvyPviS1L6MjtoBDnP+praLC5ukqMFU0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EUN9fDVX77IBJUkCIzY9sNbVP5n/uaDGltIbrw7RwF72ifujn+NUZ3fD5lGSp2vF3 ES8/uxnuMieLrmdE953JA4Aznd29rvq5GXNIemu2kQtvCEi6Rilck3U7Ab+62zbQ+W 6H23cbY3lGz9eJcBK+CbpAf6HrBR8eMoOGFxBtfs= Date: Fri, 24 May 2019 09:45:52 +0200 From: Greg Kroah-Hartman To: Chunfeng Yun Subject: Re: [RESEND PATCH] usb: mtu3: fix up undefined reference to usb_debug_root Message-ID: <20190524074552.GA1080@kroah.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190524_004555_294234_402C2192 X-CRM114-Status: GOOD ( 15.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-usb@vger.kernel.org, Randy Dunlap , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 24, 2019 at 02:11:33PM +0800, Chunfeng Yun wrote: > When CONFIG_USB is not set, and CONFIG_USB_GADGET is set, > there is an issue: > > ld: > drivers/usb/mtu3/mtu3_debugfs.o: in function 'ssusb_debugfs_create_root': > mtu3_debugfs.c:(.text+0xba3): undefined reference to 'usb_debug_root' > > usb_debug_root is only built when CONFIG_USB is enabled, so here drop it > and use NULL instead. > > Reported-by: Randy Dunlap > Signed-off-by: Chunfeng Yun > Acked-by: Randy Dunlap > --- > drivers/usb/mtu3/mtu3_debugfs.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Why resend? > diff --git a/drivers/usb/mtu3/mtu3_debugfs.c b/drivers/usb/mtu3/mtu3_debugfs.c > index 62c57ddc554e..b7c86ccd50b4 100644 > --- a/drivers/usb/mtu3/mtu3_debugfs.c > +++ b/drivers/usb/mtu3/mtu3_debugfs.c > @@ -528,8 +528,7 @@ void ssusb_dr_debugfs_init(struct ssusb_mtk *ssusb) > > void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb) > { > - ssusb->dbgfs_root = > - debugfs_create_dir(dev_name(ssusb->dev), usb_debug_root); > + ssusb->dbgfs_root = debugfs_create_dir(dev_name(ssusb->dev), NULL); This moves the directory to a new location no matter what the configuration is. What's wrong with where it is today? And shoudn't we create the usb root directory if only gadget is enabled? thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel