From patchwork Wed Jun 22 12:34:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102120 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2524131qgy; Wed, 22 Jun 2016 05:33:15 -0700 (PDT) X-Received: by 10.107.4.78 with SMTP id 75mr42508585ioe.52.1466598795124; Wed, 22 Jun 2016 05:33:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si8944165par.183.2016.06.22.05.33.14; Wed, 22 Jun 2016 05:33:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752449AbcFVMdN (ORCPT + 30 others); Wed, 22 Jun 2016 08:33:13 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:60558 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671AbcFVMdL (ORCPT ); Wed, 22 Jun 2016 08:33:11 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0Lby3Y-1bh5ah2Wg8-00jKjH; Wed, 22 Jun 2016 14:32:43 +0200 From: Arnd Bergmann To: Felipe Balbi , Greg Kroah-Hartman Cc: Magnus Damm , Sebastian Reichel , Peter Chen , Arnd Bergmann , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: emxx_udc: allow modular build Date: Wed, 22 Jun 2016 14:34:33 +0200 Message-Id: <20160622123449.1260194-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:YtuJ6nGV+KMJ45E5cKLwW5WE+F20ylH76AU1x5zEt9QzCdOnxlR 7IzbDBqp3QLTRD6f/dgCfehGxN82z2gGnYGxNcuWa6noFyJgMCRQXyu/coj6lPCfXdLjB8X hNXs5dtLHAm4ZZAIggCTCnc3+LbSofjxw0upBNrYokr938b97nssLIGkvCxVqzyGUWUptUj vwa7bDkQSnm4BugIz2WsA== X-UI-Out-Filterresults: notjunk:1; V01:K0:/Cziqty2hbY=:Id651wQD8qunot4MgOhnjN UjMZgRIqVDyoLw7hNkYRHQuTdTZO67Dyc15+6BsQ4YRmGC1WjE1tX43+Y4s6wogGSh8Oxfwtj Rdc+N3pWyhT90KUbaZaYssVZBGO9OMCS/TONU9mEAEJjtZPFHBtFI03Bo3QaFVICN0p5JSTJA Yu9/+oNKoI1kcTb6SkCM8fGcKiBl6lKogKEGBcxa+px5Q8S5WNKh7Qxs3gBv7VHQHTcjEz8uA nfY62+k74P2+5jX0RhmC5m7UyE4W7So7T5KJsGGP9J59R36y8rsB2AC+vT98uOQ+5Q4xMhPFi zlIka993TYi//x9B5OyHe2aB6BACdbBYeOiXDDeHk5FkUTdUPh8Lqa2wiQxLtgjKCulVW6Hu4 E2sIJogFXXwMujr+Mk+nD6QnlXOWqhP5C5N+9bOWhh5H1c5GUay+esHBEEJCV0/ztJHC3neS/ ga4l4v9SaOB1RtwcE5McWeh9G4mwATm28f01Y7dl/FcGbXyDa6JXH5LUifBnvMvRxM4KkaFXl yb647PhfbIHjdOdDkw+X+CwlhRoiX5EPp2ioeQJ8wSApsuoWgQfUtFXEoSzJyHSDb3SJOoGnk K0IWxsEdlcdpa3ZXkDPqZmGbHTew9mIW2lRXBLCxYJWbrrxpuCRwThH/j5+NNqCAepOZY4zBu 7rDAydlegfMSos0e9yAs5ltm8wQBadefE9rCDDMFAFx2UotwZbY70FiBTJtPP/WH7xKE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A change to the usb gadget core allowed certain API functions to be part of a loadable module, which breaks having emxx_udc built-in: drivers/staging/built-in.o: In function `nbu2ss_drv_probe': (.text+0x2428): undefined reference to `usb_ep_set_maxpacket_limit' The original patch already fixed tons of other cases that have the added dependency but apparently missed this one that now appears in an ARM allmodconfig build. This patch makes the symbol "tristate", which lets the Kconfig dependency tracking handle it correctly. Signed-off-by: Arnd Bergmann Fixes: 5a8d651a2bde ("usb: gadget: move gadget API functions to udc-core") --- drivers/staging/emxx_udc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/staging/emxx_udc/Kconfig b/drivers/staging/emxx_udc/Kconfig index cc3402020487..d7577096fb25 100644 --- a/drivers/staging/emxx_udc/Kconfig +++ b/drivers/staging/emxx_udc/Kconfig @@ -1,5 +1,5 @@ config USB_EMXX - bool "EMXX USB Function Device Controller" + tristate "EMXX USB Function Device Controller" depends on USB_GADGET && (ARCH_SHMOBILE || (ARM && COMPILE_TEST)) help The Emma Mobile series of SoCs from Renesas Electronics and