Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3769347pxb; Tue, 26 Jan 2021 04:26:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwP4XXwD7p2zOioGWKo49dcC10VYZfeFeef61uqpMcEn3T8UZ40j/MnrqCkH12uPqO05FqT X-Received: by 2002:aa7:de8f:: with SMTP id j15mr4537903edv.268.1611663978766; Tue, 26 Jan 2021 04:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611663978; cv=none; d=google.com; s=arc-20160816; b=gt/ywF0OA6vmrHOCkc9R0XDmttHY3kHqBEqmC8mWxG24WS0DMIY0XxWUZcPWo2KCRz p4XxhOgSIZC9fMOAEzB56uqyidsNPHulxNmu1Dc/oyezeCpyL7f+/9gQ8P+2Rtwe/PH4 AsojD7EiAgfOk+wrZukuwnMNFKKCpYu4e8uZ6XZpWVrHdF1T3/9VrzibfD+gLg2uIx0/ OCvGXrQwRhiClk0/j8xTB5TVmxmnHZ3k4oXvsBMCKNSZwbl3ak0yr+NLv3KN3G+uqjPW lAiWGapnJFw4PfrOXbHWMDzRAdVsK7d9PbBztdlB3M3vYL3aXPmltI7LAZZYr1vXw3ZX 8YQw== 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=oUGBK/BYGsYWiJXts+JUzG7BUVJ88xaHm0UB3PGuw/k=; b=RqByIElgguNY2rEkIzd6vSw4cbtZB70Oj4zdUOtT6k3a1+tZt7DzImufrhSa6x4tWC Qu4McwvYI7cl+84bzo4lkJeJ05MUe8aD2cpymC3UK7v95AxjKsGHG2tFjSpdtH4zYhhZ mGGjwL4eRfTRCp1uv0ruiBQKVRN8ezRz3dYR9PpjGwy3vAkUAF8dn2GHmjbCGnKbBsT2 /VC2jC4HRwBC3ddd8EzrnxzdQpbIkLu43dk5xYOuuoCpySJXPMthZkeDOtdA+rB1Xsqk h3LrX5+qAuLQv9KoyuolH1da0v96qJJXZtOZdlhE96D28cJCcK+SmGVvhPn3KU04sFcM o+Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=chSCMuaE; 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 z9si6963238eja.51.2021.01.26.04.25.54; Tue, 26 Jan 2021 04:26:18 -0800 (PST) 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=chSCMuaE; 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 S2392598AbhAZMVo (ORCPT + 99 others); Tue, 26 Jan 2021 07:21:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:58380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392571AbhAZMVQ (ORCPT ); Tue, 26 Jan 2021 07:21:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD4F62255F; Tue, 26 Jan 2021 12:20:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611663636; bh=SyEIFgGM/H0MBFGrTB8Qc18ZSnruxlWKVtgwOC9+6sI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=chSCMuaE2kMnB2pkwkzoLdIj6rfJPIa1NEcx5j0zOisZbWMlOO2UQNgVbFRNz/46H HWaQ3hG+gKRRWT7imZL6f8NQF+YK01rLP4RxNKbrD3+7qSvWMhA56SsKT/R2vfdiE/ ew4D8GP2Fi6MCtJ6cjWjd2dwrafk3lJcjMhdO4z8= Date: Tue, 26 Jan 2021 13:20:33 +0100 From: Greg KH To: Ray Chi Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Tso Subject: Re: [PATCH] usb: dwc3: add EXPORT_SYMBOL_GPL for role init functions Message-ID: References: <20210126094913.180945-1-raychi@google.com> 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 Tue, Jan 26, 2021 at 08:14:02PM +0800, Ray Chi wrote: > On Tue, Jan 26, 2021 at 6:01 PM Greg KH wrote: > > > > On Tue, Jan 26, 2021 at 05:49:13PM +0800, Ray Chi wrote: > > > Currently, role init functions are used in dwc3 driver but > > > can't be called from kernel modules. > > > dwc3_host_init > > > dwc3_host_exit > > > dwc3_gadget_init > > > dwc3_gadget_exit > > > dwc3_event_buffers_setup > > > dwc3_event_buffers_cleanup > > > > > > If other kernel modules want to use these functions, it needs > > > EXPORT_SYMBOL_GPL() to get compile pass. > > > > > > Signed-off-by: Ray Chi > > > > What current kernel configuration fails without this patch applied? I > > don't see any in-tree users of this as a module that would break, or am > > I missing something? > > > > thanks, > > > > greg k-h > > There is no failure for current status. This patch is just used for > any kernel modules > which want to call these functions. I think it is an expandability of > dwc3 core driver. We will gladly take exports for in-kernel users, but as you well know, we can not export symbols that no one in the kernel tree needs, that would be foolish of us to do so. Please submit the code that uses these symbols and include this patch as part of that patch series and all will be good! thanks, greg k-h