Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp174916ybl; Wed, 21 Aug 2019 17:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvPdUyHlPnUgvcnI/yk5AU9i2NUrJRMZTpmYWUnEaaYdX0gw8/F+Jl1eQ28AGc9jvQamMH X-Received: by 2002:a62:6045:: with SMTP id u66mr32970657pfb.261.1566432273296; Wed, 21 Aug 2019 17:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566432273; cv=none; d=google.com; s=arc-20160816; b=XV/KesehwnajBI/P4WLIgrQ7TWJd4Bt1XJpG9lOwho/VopXLE77d7/C3XEolnuE2hF UpiIok61tBSYSihuN8biErI/wcQwU0TQqro87aIQjsvOA1pz5+bxQliuKQ+0hybAdhqb UPV004FYN3u9GnklWzpMlw2rLdw7OwXDwXKKCPAt/Zc2/ztHEd2tnQ8hOw00FVm1j37c e+yTGdxbAVhvFBRpMbur0ti3rM4wHl/k2UqG0IF34WnH1hxMJ8IceZ77oiqt200jLXUo RrPjdb5dlEqBOQ3EoGQRANgbE5+4p3Uau+zQaE3NL4cUYVJAFi7vq2d6fb/5BZSXizKj l5Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WM7SZ88kyqemBkIYTm2NML5mscgb3zmbfZeZ+GXNIXY=; b=EEAyKjjNdDZiQ7lsARbLM8gGXMmErsredWfFvN4c1K3MuJ1dAKZ7gyFCFsLd0acBXF 6tQTTHq+ksvl8RkKm4BU03QguU/mRdgltsdX1y1cKH3RH3TjuRssatHR/tKVL6I5GA35 APFx3PjS8Lrv9KSA/ztkzAa7mIJEaLlJta+hAV9TzNAu/jz25RQlEqa88yQQVz3300w+ vwdU3g34bKAQDweO1qC1d/J6hMnYENfdhVM96T2yUJ7hEkfyWGrQqZvxnXHezG2wMMEE OvHg6/LZQO8DccvYRf2BxvIgJKpGBQ4xJDmm9SJNMGKYX7L9vUV2C+16tRSbLLhjL6/5 AzMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LGr1j52G; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si1087947pjo.48.2019.08.21.17.04.18; Wed, 21 Aug 2019 17:04:33 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LGr1j52G; 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 S1731346AbfHUXNg (ORCPT + 99 others); Wed, 21 Aug 2019 19:13:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54474 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729763AbfHUXNf (ORCPT ); Wed, 21 Aug 2019 19:13:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WM7SZ88kyqemBkIYTm2NML5mscgb3zmbfZeZ+GXNIXY=; b=LGr1j52GyKOw/HBHTEYaEj8Hb uA7xSFH9W6skRCtnvb26k+BfEDOTMOQLZ5pwCWM8HwOXugtz2pCIoK6rLI6lixhEVzv4Z8m5yNnJz Qx8xlXi5+HXyevRlwQE5FIV8mAWh+oXFTCQc8E8E9WmokfjsL7VKctjLPqGdsHTxW8ITHyfc3YTe8 b7Ai//7E3J9wDTuVpUe6vP3AQdrCPGkrkWfEIMECAmG0AVR4ecNuJUlt8XcUiFs9LkTVxX3TcFJ+I p6RKEpo3+dmRQwHaD5q0tvwK50Ysnd7WrYD3oAvjPpTw9FoeKaVXP9N4ol7y0xXLVVwIDzISdxKDJ wcG1XLSsg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i0ZnF-00059G-IV; Wed, 21 Aug 2019 23:13:29 +0000 Date: Wed, 21 Aug 2019 16:13:29 -0700 From: Christoph Hellwig To: Matthias Maennich Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, arnd@arndb.de, geert@linux-m68k.org, gregkh@linuxfoundation.org, hpa@zytor.com, jeyu@kernel.org, joel@joelfernandes.org, kstewart@linuxfoundation.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-modules@vger.kernel.org, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, lucas.de.marchi@gmail.com, maco@android.com, maco@google.com, michal.lkml@markovi.net, mingo@redhat.com, oneukum@suse.com, pombredanne@nexb.com, sam@ravnborg.org, sspatil@google.com, stern@rowland.harvard.edu, tglx@linutronix.de, usb-storage@lists.one-eyed-alien.net, x86@kernel.org, yamada.masahiro@socionext.com Subject: Re: [PATCH v3 10/11] RFC: usb-storage: export symbols in USB_STORAGE namespace Message-ID: <20190821231329.GA369@infradead.org> References: <20190813121733.52480-1-maennich@google.com> <20190821114955.12788-1-maennich@google.com> <20190821114955.12788-11-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190821114955.12788-11-maennich@google.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 12:49:25PM +0100, Matthias Maennich wrote: > Modules using these symbols are required to explicitly import the > namespace. This patch was generated with the following steps and serves > as a reference to use the symbol namespace feature: > > 1) Define DEFAULT_SYMBOL_NAMESPACE in the corresponding Makefile > 2) make (see warnings during modpost about missing imports) > 3) make nsdeps > > Instead of a DEFAULT_SYMBOL_NAMESPACE definition, the EXPORT_SYMBOL_NS > variants can be used to explicitly specify the namespace. The advantage > of the method used here is that newly added symbols are automatically > exported and existing ones are exported without touching their > respective EXPORT_SYMBOL macro expansion. So what is USB_STORAGE here? It isn't a C string, so where does it come from? To me using a C string would seem like the nicer interface vs a random cpp symbol that gets injected somewhere.