Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp985430ybl; Tue, 13 Aug 2019 05:48:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnYHIoWksEVa6fhRGTVybKprBxiA+MfezTRWUQuMU+l2UEx/6l33iWgvFGJdDtLGmjrVvV X-Received: by 2002:a63:31c1:: with SMTP id x184mr35388661pgx.128.1565700504817; Tue, 13 Aug 2019 05:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565700504; cv=none; d=google.com; s=arc-20160816; b=NkhHBSV8ovekwtUSShvslkHitF4cIbUBiDnVzk7gOVjcz3z/sVEGfvrQWy5kOVO0j5 DlhmDVj9Uv7grfJ5X16xwa3JiKU73tug7/LKC4b3nJScSVmdhyuJdWoI/TsXh2AK+Tnb vVLN3br9zSdvHFTTxrfdRx0DHrAkcCb0DVxtxFbuwMcc/uiQLrQNCb3fh8zb2hOxXwcx diV3Q2a297zLseb8yExHCPOObPa8/s14v1nYTZJkY7FDE5oqZjN+dJ0XR2n5DjvOciCV /nvbitiWRdZpLF8hsDFY9AMUrTPudgTO8fnVohvuNSCocDBeNPM4L5UJkeOvbAIBYVEg w14Q== 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=s5UZpAIRy0j0ZPOdwmmq9QaMRgso4Xyw3aFfsj0x520=; b=I0FSK9u/xrdqs3gqVlbeEcZ/StyYpy+f+Pir/HKNOZnfLrK6qhqZ5JhPws9wEt+qi0 MTdujNSOFnDuv34/YZh6GpdFvSNYL2q1uPz07AkwXUw1Ti23+3Vf7doNP7KkujzP4Q9r un+W+35JljIxZgZnihJ0wRCTBotDiY1wYVvQf0dFgiAPm1hWsFudIT+43Aw5z19R7bC9 q+5+dUFPy1V7NNhaygeJ2I+MVIBLJox3TbbN8YII/H6pb6aQ8GF0WY+wxujwCpK2O8U0 TnPycxFB+jo1UeeJ9RzNs+u70WegwbFtrXxP88V2pRTnnmbK2Ci9xllDJZxqNAEmgZpR lO1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1vHS1eay; 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 205si36466463pge.295.2019.08.13.05.48.09; Tue, 13 Aug 2019 05:48:24 -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=pass header.i=@kernel.org header.s=default header.b=1vHS1eay; 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 S1728420AbfHMMrM (ORCPT + 99 others); Tue, 13 Aug 2019 08:47:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:52980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726993AbfHMMrM (ORCPT ); Tue, 13 Aug 2019 08:47:12 -0400 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 834E920578; Tue, 13 Aug 2019 12:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565700431; bh=BiEA9fjKc3dKtMJNhv4RcmljM8dSb5LNtQ4cws/6LXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1vHS1eayY4MYBdvrsWrCmrF1BYhN4EqmL8NrDPkmiJwtjC9B8pj1EFBRk3aYNxQYW 8LKA/4SCESx9XxS5V53BB14XeilVF/857yTsLI0bzZ6gSPMfRM1o9okBbzxADRmGuR +kw8tqTbwsw8kzB0Amwee4BILkyJtLdZDkeRvtwI= Date: Tue, 13 Aug 2019 14:47:08 +0200 From: Greg KH To: Matthias Maennich Cc: linux-kernel@vger.kernel.org, maco@android.com, kernel-team@android.com, arnd@arndb.de, geert@linux-m68k.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@google.com, michal.lkml@markovi.net, mingo@redhat.com, oneukum@suse.com, pombredanne@nexb.com, sam@ravnborg.org, sboyd@codeaurora.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 v2 10/10] RFC: usb-storage: export symbols in USB_STORAGE namespace Message-ID: <20190813124708.GC12475@kroah.com> References: <20180716122125.175792-1-maco@android.com> <20190813121733.52480-1-maennich@google.com> <20190813121733.52480-11-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190813121733.52480-11-maennich@google.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 01:17:07PM +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 DDEFAULT_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. Ok, I can't read text, this answers my previous question. But, as an example, shouldn't we also have some code here that uses the EXPORT_SYMBOL_NS() macro to ensure that it actually works? thanks, greg k-h