Received: by 10.223.185.116 with SMTP id b49csp5835261wrg; Wed, 7 Mar 2018 19:45:52 -0800 (PST) X-Google-Smtp-Source: AG47ELvFBpPzusZ5eh8N2HIHkGjAK13x8gI7FSa2pQP+inJNhSG/BxcBMoCba2qhHxG35YyTG31v X-Received: by 10.98.131.4 with SMTP id h4mr24748705pfe.156.1520480752887; Wed, 07 Mar 2018 19:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520480752; cv=none; d=google.com; s=arc-20160816; b=fZRDZdUv1MC78WCMuUa0UlNjf1Svnh/xLL/kKOgyUdsNGlgvOf7b+tYw8gzx/YJEO3 g1Kgui69eu167mou/4p2F9pgOMmSmPLHEtrEpe6f4U6VAJ5yvMCt6nZbHm5XKhbyiPjH HbaMIIPmP75z0qquTvMjn+Vvt+Hr2YZo8l3+osGyGSnb1a2NmN4eFz6t4ati86rc3zT4 rQFwqz/v9Fj97ZXPtKAIObew+LYde1JOq/pnJuSBdaIAo8RSxt9Xl8LIRt8q+yK/Q+7P MvvwtHYZSBgIPdryUku0bmdjOVG34jZ3TLK9oPZGA2AseH7dUXs3AOl0CWwvcT1NsH9M kE8A== 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:arc-authentication-results; bh=6xV4sBZs0so/XSVS1bYcZi2JfiZ53czjF4UPc6igX/c=; b=AG/M58NktGtCdkCIaAPN+SrhMmYLo0VHCt38VY2CrAgMhR6ESVNLqE+Uy29syq9+cK 0hTt5t8vA00SLt51U7JfZO4Vqg5YHpkV9x3wpDZRG4cDQphhRYWsTXxQd3j1hyfLZw8F NEZiuj5RpmgH7V1vVBBVseR3IaBG8RotNdS6D4vxuKXRyz05NkVYLAdSV2wZona2BHll n2KdL/NdO4ND7DqM6YWu4E6icyZU5jlS8U4AEQx5Eg/m2qQZAo9VJMoSHdhhbLHUNM4g f9QWi2ED6hleWnxL+ZnzeufFNtafJvH+5su+8E79eRRyqq5djFHbcGHoT+noDcgdLE9d JKkQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si14052818plx.463.2018.03.07.19.45.38; Wed, 07 Mar 2018 19:45:52 -0800 (PST) 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 S1754996AbeCHDoo (ORCPT + 99 others); Wed, 7 Mar 2018 22:44:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:41517 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754471AbeCHDon (ORCPT ); Wed, 7 Mar 2018 22:44:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9E95DAC95; Thu, 8 Mar 2018 03:44:40 +0000 (UTC) Date: Thu, 8 Mar 2018 03:44:38 +0000 From: "Luis R. Rodriguez" To: Greg KH Cc: Kees Cook , "Luis R. Rodriguez" , Andrew Morton , Shuah Khan , Martin Fuzzey , Mimi Zohar , David Howells , pali.rohar@gmail.com, Takashi Iwai , arend.vanspriel@broadcom.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , nbroeking@me.com, Vikram Mulukutla , stephen.boyd@linaro.org, Mark Brown , Dmitry Torokhov , David Woodhouse , Linus Torvalds , Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, LKML , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH v2 07/11] firmware: split firmware fallback functionality into its own file Message-ID: <20180308034438.GP14069@wotan.suse.de> References: <20180224024613.24078-1-mcgrof@kernel.org> <20180224024613.24078-8-mcgrof@kernel.org> <20180228012802.GG14069@wotan.suse.de> <20180228071131.GA17185@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228071131.GA17185@kroah.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 08:11:31AM +0100, Greg KH wrote: > On Tue, Feb 27, 2018 at 09:33:28PM -0800, Kees Cook wrote: > > On Tue, Feb 27, 2018 at 5:28 PM, Luis R. Rodriguez wrote: > > > On Tue, Feb 27, 2018 at 03:14:53PM -0800, Kees Cook wrote: > > >> On Fri, Feb 23, 2018 at 6:46 PM, Luis R. Rodriguez wrote: > > >> > The firmware fallback code is optional. Split that code out to help > > >> > distinguish the fallback functionlity from othere core firmware loader > > >> > features. This should make it easier to maintain and review code > > >> > changes. > > >> > > > >> > The reason for keeping the configuration onto a table which is built-in > > >> > if you enable firmware loading is so that we can later enable the kernel > > >> > after subsequent patches to tweak this configuration, even if the > > >> > firmware loader is modular. > > >> > > > >> > This introduces no functional changes. > > >> > > > >> > Signed-off-by: Luis R. Rodriguez > > >> > --- > > >> > drivers/base/Makefile | 4 +- > > >> > drivers/base/firmware_fallback.c | 661 +++++++++++++++++++++++++++ > > >> > drivers/base/firmware_fallback.h | 61 +++ > > >> > drivers/base/firmware_fallback_table.c | 29 ++ > > >> > drivers/base/firmware_loader.c | 803 +-------------------------------- > > >> > drivers/base/firmware_loader.h | 115 +++++ > > >> > 6 files changed, 874 insertions(+), 799 deletions(-) > > >> > create mode 100644 drivers/base/firmware_fallback.c > > >> > create mode 100644 drivers/base/firmware_fallback.h > > >> > create mode 100644 drivers/base/firmware_fallback_table.c > > >> > create mode 100644 drivers/base/firmware_loader.h > > >> > > >> Does it make sense to have a separate subdirectory for firmware > > >> instead? I did this _ stuff with lkdtm and have regretted it. (I'm > > >> likely going to make a subdirectory for it this cycle...) > > > > > > Sure, the only eyesore is that drivers/base/firmware.c what is that for? > > > > > > drivers/base/firmware_loader/ ok? > > > > Yeah? Seems fine to me. Greg, do you have thoughts on this? > > I don't care :) Alright, this was much easier done as a separate patch after. Luis