Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp9059ybi; Thu, 30 May 2019 19:17:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMtoipyifeRMiyG6VhlaixHuS8ltcDDpMM7aqCVuZulaFi3EoE+Lz9zW5YErJlhuDPRe/S X-Received: by 2002:a63:a84c:: with SMTP id i12mr6564872pgp.115.1559269055482; Thu, 30 May 2019 19:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559269055; cv=none; d=google.com; s=arc-20160816; b=1IIt5Rnum9FmRlmo/zJ7n5C/HIX4VRjnSGV2Fd7cW3LJz+lEp5XVkGwx0py/RGdQZX fhhQMxMAv5cOGHWSBC2vZjRbaqCrKBxfA3ja5uB5wPsxoTUSVORp3D+uF4Zhp9SV8cby t1EGoZmsWvLZ1snJMDBmJk7WIhoMuiiTRS7D0jH1VChB3GpAkPeAgA7s802RJV8E1VwM SAeqBIFtk7PLqJtF3viC+nHMxTyeEM3AD3yR6AyF2SBE127zQr2dZYi/3+pSeI58mVnS El8rYwAaP75LLwZosuMR+rLrZY0K3cVnNet+NV/YxzuORBFxWQWpm8p6x1SjF8anwN0e XNiw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zCkx6eSXnZ5ux9ABK0SMiffXGoJkIH1FMytbxhPwmkU=; b=HIdpL0BXxlLUlKX84oCjQnllYU6ojLpZB+GooFy5MjycAAu7SpsmF44kHIA5E9i2UZ b93DFYSv8/vQoarV5ks0SdVPHsA70h1yDFzXWw7c6Rx0emOR7ziiaAiCMF5QW3ge9jgR h2luy0hb8ArrbQbWqXxRM0eOquJu0a4IYuTVN8FnZwwGjh46aT6U3Lo90wQMTkBiUp+Z ddQK4pN0JUxrNC5v2wjWlQWWvooZ2Q5BRiRYCTA3Rp3OHZoXoyRbj55X1aitm+Lfbvzy 3fXRFDJz+YjyUtRCtZp37DEJ26Jlgiy5Z9cRheA7s674Gt+KihdERbrR8Vi9Bh34+eeJ KTCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=i1iz3ubo; 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 o1si4592913pld.142.2019.05.30.19.17.09; Thu, 30 May 2019 19:17:35 -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=i1iz3ubo; 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 S1726587AbfEaCPR (ORCPT + 99 others); Thu, 30 May 2019 22:15:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59782 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbfEaCPQ (ORCPT ); Thu, 30 May 2019 22:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To: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=zCkx6eSXnZ5ux9ABK0SMiffXGoJkIH1FMytbxhPwmkU=; b=i1iz3ubo+pzo8/9rIiWcX2DwK C7MRIRw6XgI3dAcNwe6iJ3JFfyE5x5uwKayo5I7AM1n8rtegbdZlBxSXCl0lrHv/cpKaKe9WEb0er IMf1FiuMGHipO3As5n0TPYiqoU88k/e+NIkH0x1pzYRUsNeIqxgvBbLaeMG72gxmX7a1FTx/s8zuO OmRZn3sOamfVtTsE9aOQUM7wDeLfDKb85i0flHh/lLXvNpeuiCGUM61VUMXM9cl++Ic7meaXfYDGe kkRTbH9WfBxXoxcpqiStPA1NkNTBOqwQ1SfgrzjuX3PRTu76x9/FAi31tO7uUsIagsai5iPbdj7Cz 9+FQKpOiQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hWX4e-0006u3-1T; Fri, 31 May 2019 02:15:16 +0000 Subject: Re: [PATCH] firmware_loader: fix build without sysctl To: Matteo Croce , Stephen Rothwell , Linux Next Mailing List Cc: Luis Chamberlain , Greg Kroah-Hartman , linux-kernel@vger.kernel.org References: <20190531012649.31797-1-mcroce@redhat.com> From: Randy Dunlap Message-ID: Date: Thu, 30 May 2019 19:15:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190531012649.31797-1-mcroce@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/19 6:26 PM, Matteo Croce wrote: > firmware_config_table has references to the sysctl code which > triggers a build failure when CONFIG_PROC_SYSCTL is not set: > > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x30): undefined reference to `sysctl_vals' > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x38): undefined reference to `sysctl_vals' > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x70): undefined reference to `sysctl_vals' > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x78): undefined reference to `sysctl_vals' > > Put the firmware_config_table struct under #ifdef CONFIG_PROC_SYSCTL. > > Fixes: 6a33853c5773 ("proc/sysctl: add shared variables for range check") > Reported-by: Randy Dunlap > Signed-off-by: Matteo Croce Works for me. Acked-by: Randy Dunlap # build-tested Thanks. > --- > drivers/base/firmware_loader/fallback_table.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/base/firmware_loader/fallback_table.c b/drivers/base/firmware_loader/fallback_table.c > index 58d4a1263480..18d646777fb9 100644 > --- a/drivers/base/firmware_loader/fallback_table.c > +++ b/drivers/base/firmware_loader/fallback_table.c > @@ -23,6 +23,8 @@ struct firmware_fallback_config fw_fallback_config = { > }; > EXPORT_SYMBOL_GPL(fw_fallback_config); > > +#ifdef CONFIG_PROC_SYSCTL > + > struct ctl_table firmware_config_table[] = { > { > .procname = "force_sysfs_fallback", > @@ -45,3 +47,5 @@ struct ctl_table firmware_config_table[] = { > { } > }; > EXPORT_SYMBOL_GPL(firmware_config_table); > + > +#endif > -- ~Randy