Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp104912ybz; Thu, 23 Apr 2020 19:28:49 -0700 (PDT) X-Google-Smtp-Source: APiQypL0Was9wpK1Q0Ke4faVQOyx2rr8bKJlA4pfd3YmGKIOlC/eKnx75t9pcnNV5I+HKqBDGjUj X-Received: by 2002:a17:906:35cd:: with SMTP id p13mr5462578ejb.206.1587695329755; Thu, 23 Apr 2020 19:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587695329; cv=none; d=google.com; s=arc-20160816; b=z3d5X6aD8xjTy52MxIOvLrPFXv29sToe7OsnoOKf3A4STAXmeKFHqdA/5+uMr9v5Ll kN23Z3SQ6jvX11dnHI5Hbo+1xE8FPE+6urNOHY+8pM3K2SuPQnPDAg0W6ViCT/R27mLU UHMdobgMxpLDIwJ82767slfBNpVn3Wlqy5TNrOUjQkrjbG64iZeU5smmnXDvXjcS3LlI 3J344+ZEZvDkkXoAG5c7X10GS3cRpREc3g0IN8DqH9qcTtuBxggOAkw1y2Vv0zwyGfeV 0SDP5V3LqKvoqJyOmTeWdePjAWzA4xg8pLha5mITUmtN+Ygq3/2QREAvj5TzY8wxYgkB Q6Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6jg83JwrUc4Qa5UTPTIUHbq5+ryy3N6k3IIDya4aHXc=; b=PZLf9fh9E6th43v33ypdEUO84YjyfHF739GvDJjNEnDfMJuIQhR6V0A4l5VRQcNyx+ sO+extwCuIfTCAyzVlwqchCVMGmC24DA8Y4jenNLLcOp2gveIZDFWFw0dWnUDG5Jx6qO ZWv+dXm3rh5tWfwtj/PxlVIkXlx2RrIWOsgIF8xKXZcnZaWdVZDIuWcWMGAoDlYRTNC6 P8iV8GwADic5HakjhM3bb0DMto4qLqbzRMkKP2Ct7P6XEtO7KsZ+9jR0FCyZEFEAj1hl tHMExpkiXPMO+SEDxs1BtQGssPfpkfK+Ga+V7ikx/YEqw6xda63JK5OImU7uhkoVXhIH xVAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=AQJIlA4V; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp6si2945273ejc.238.2020.04.23.19.28.15; Thu, 23 Apr 2020 19:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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 (test mode) header.i=@wp.pl header.s=1024a header.b=AQJIlA4V; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726424AbgDXC1o (ORCPT + 99 others); Thu, 23 Apr 2020 22:27:44 -0400 Received: from mx4.wp.pl ([212.77.101.11]:10258 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgDXC1n (ORCPT ); Thu, 23 Apr 2020 22:27:43 -0400 X-Greylist: delayed 4892 seconds by postgrey-1.27 at vger.kernel.org; Thu, 23 Apr 2020 22:27:41 EDT Received: (wp-smtpd smtp.wp.pl 19782 invoked from network); 24 Apr 2020 04:27:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1587695259; bh=6jg83JwrUc4Qa5UTPTIUHbq5+ryy3N6k3IIDya4aHXc=; h=From:To:Cc:Subject; b=AQJIlA4V5DMc1Sd0PCeHxN/5wP0bOrRSA9HhgTR2I2nvnsDzZcHZPeniUQI7zoUPS ba/qPFH2u/33E9FplPJYv9De+O/3gshBsOWwDZA1R63B3/9jb4RrKws5lZ6h4ut2SO p/wggvjqpYo8XGw9XpmXFW2L7Jqu9sqB4X0XHTJA= Received: from unknown (HELO kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com) (kubakici@wp.pl@[163.114.132.1]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 24 Apr 2020 04:27:39 +0200 Date: Thu, 23 Apr 2020 19:27:16 -0700 From: Jakub Kicinski To: Luis Chamberlain Cc: gregkh@linuxfoundation.org, akpm@linux-foundation.org, josh@joshtriplett.org, rishabhb@codeaurora.org, maco@android.com, andy.gross@linaro.org, david.brown@linaro.org, bjorn.andersson@linaro.org, linux-wireless@vger.kernel.org, keescook@chromium.org, shuah@kernel.org, mfuzzey@parkeon.com, zohar@linux.vnet.ibm.com, dhowells@redhat.com, pali.rohar@gmail.com, tiwai@suse.de, arend.vanspriel@broadcom.com, zajec5@gmail.com, nbroeking@me.com, markivx@codeaurora.org, broonie@kernel.org, dmitry.torokhov@gmail.com, dwmw2@infradead.org, torvalds@linux-foundation.org, Abhay_Salunke@dell.com, jewalt@lgsinnovations.com, cantabile.desu@gmail.com, ast@fb.com, andresx7@gmail.com, dan.rue@linaro.org, brendanhiggins@google.com, yzaikin@google.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Randy Dunlap , Stephen Rothwell Subject: Re: [PATCH] firmware_loader: re-export fw_fallback_config into firmware_loader's own namespace Message-ID: <20200423192716.2c32f5dd@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200424021420.GZ11244@42.do-not-panic.com> References: <20200423203140.19510-1-mcgrof@kernel.org> <20200423180544.60d12af0@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200424021420.GZ11244@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: 814065103326dcc26bec12dfaf1106fd X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000003 [wfDU] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 24 Apr 2020 02:14:20 +0000 Luis Chamberlain wrote: > On Thu, Apr 23, 2020 at 06:05:44PM -0700, Jakub Kicinski wrote: > > On Thu, 23 Apr 2020 20:31:40 +0000 Luis R. Rodriguez wrote: > > > From: Luis Chamberlain > > > > > > Christoph's recent patch "firmware_loader: remove unused exports", which > > > is not merged upstream yet, removed two exported symbols. One is fine to > > > remove since only built-in code uses it but the other is incorrect. > > > > > > If CONFIG_FW_LOADER=m so the firmware_loader is modular but > > > CONFIG_FW_LOADER_USER_HELPER=y we fail at mostpost with: > > > > > > ERROR: modpost: "fw_fallback_config" [drivers/base/firmware_loader/firmware_class.ko] undefined! > > > > > > This happens because the variable fw_fallback_config is built into the > > > kernel if CONFIG_FW_LOADER_USER_HELPER=y always, so we need to grant > > > access to the firmware loader module by exporting it. > > > > > > Instead of just exporting it as we used to, take advantage of the new > > > kernel symbol namespacing functionality, and export the symbol only to > > > the firmware loader private namespace. This would prevent misuses from > > > other drivers and makes it clear the goal is to keep this private to > > > the firmware loader alone. > > > > > > Cc: Christoph Hellwig > > > Cc: Randy Dunlap > > > Cc: Stephen Rothwell > > > Fixes: "firmware_loader: remove unused exports" > > > > Can't help but notice this strange form of the Fixes tag, is it > > intentional? > > Yeah, no there is no commit for the patch as the commit is ephemeral in > a development tree not yet upstream, ie, not on Linus' tree yet. Using a > commit here then makes no sense unless one wants to use a reference > development tree in this case, as development trees are expected to > rebase to move closer towards Linus' tree. When a tree rebases, the > commit IDs change, and this is why the commit is ephemeral unless > one uses a base tree / branch / tag. I'd think that either the commit is rebase-able and the fix can be squashed into it, or it's not and it has a stable commit id. But I guess it may get tricky around the edges..