Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp340076ybi; Fri, 31 May 2019 02:16:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyes+Smhnv9uhKLQcsoL0UBs79vY50sCMH1Q/b6oAR61jLbEov5iwLPIk6V4YgEawCLdp7r X-Received: by 2002:a17:90a:ac18:: with SMTP id o24mr8282453pjq.116.1559294201747; Fri, 31 May 2019 02:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559294201; cv=none; d=google.com; s=arc-20160816; b=o1/LL6EbdU4kUvfcHxoruHK1e3ORD8DqlOfUUH4oPgzr9L1GaYOs9A3tYJVNnjAjw/ fAZitNSuhv7lR7jgzEiLm+TUVqjtPktr12rKD1eO458xefjY9QDFKVu/5xgWxUl/GSLk N/bFoKbYJ6J3p/jzFLnUKvpRG8NVQw+SXXZ+QZiJNhlbjym56NgX8no2jSQsasz1ddlq GkVrLEvcwMaVRp4383NT+tvNSUL4lyVrzNPpVnmw25lFPE5fWhXX85lG6v/13iOXExUH zQ+2bvq2ohNK7ftDspRD4U3CS/FMwKQ2SFQ6aZyTTk3Q6xmskMELydFl6zTfc2+EfYhE WmdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=vS7g8P/NY7dhNfYhpibp7ySBNkV6CxXTbUCyow6hlKE=; b=RsXElfV/B0PLgvD5wlxB9txv19gAoPqf1PBN2hIfnFZDIyjg1bEiIiEbnb8kKUHT+r r1kzzM+9YUFSm7kXqp9rmEa98TobzP1/R/I7sj0o2QnNxHIfv+rneHIMFJLbMDSMBzOw qkQLtSVzIfvnDG44dQTVy8fBuXrFFOe3jaA8YCvsWO99+ZGaaxww0CRVlBODHz1v8WAG 9buiQwjYEHM1QCIL7IMNXdcCjFs2Qfac6iy2SyIL7ZrXFbQZLvc0kKn9FYe6OlbVlKzE qr47kx+5+W4ew7Dkr/NtPuhKAV8P19Re8PTDx6LWC9AgKpQjki2SLKT26KOWnz4Yqmlg u9Sw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si5196838plz.27.2019.05.31.02.16.24; Fri, 31 May 2019 02:16:41 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727126AbfEaJNS (ORCPT + 99 others); Fri, 31 May 2019 05:13:18 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37626 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbfEaJNR (ORCPT ); Fri, 31 May 2019 05:13:17 -0400 Received: by mail-lj1-f193.google.com with SMTP id h19so8882970ljj.4 for ; Fri, 31 May 2019 02:13:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vS7g8P/NY7dhNfYhpibp7ySBNkV6CxXTbUCyow6hlKE=; b=FEctBwY+WhxwCRXglA+TAKQ5gqACEkl2pLYdNnDlagogYOE5abperwrPE9gq8eCt+a sBCbkWEIEZVyLzb3F5pEduefM3J6ZNK0wfjQuYFYeRLfEzBGF++tu6SRYFvvqSKm6P/9 QoJ7ajfFJtcfPJElBcSo8qpjtXEmkjIlzrKaWTzUTKjfV7LSJwG+wTZP27XnD6xQVaVv LKp+8OCnNCt9OdC4VoRnASLXV8Mvz71bXST7rE4aRq5hgcXZEnQEvAm8KOij1vcBOFv/ tM+MIDgvf0E3A5wLnP6nmP1VlNl7z7r+bJjZzQfP7eJqnIFPf/RLGv5tLu8fX4ZqPTAU XfpQ== X-Gm-Message-State: APjAAAVBShK3SMp3VYDUr22AAxO4oLZIARJ3/IqJi8VMa4NeKPePmaDy NVvFei56bmtDnOJLwt8ilY/EDGLIJSn+PUb3xaCHU3CtuWU= X-Received: by 2002:a2e:249:: with SMTP id 70mr4703468ljc.178.1559293995678; Fri, 31 May 2019 02:13:15 -0700 (PDT) MIME-Version: 1.0 References: <20190531012649.31797-1-mcroce@redhat.com> In-Reply-To: From: Matteo Croce Date: Fri, 31 May 2019 11:12:39 +0200 Message-ID: Subject: Re: [PATCH] firmware_loader: fix build without sysctl To: Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Luis Chamberlain , Greg Kroah-Hartman , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 31, 2019 at 4:15 AM Randy Dunlap wrote: > > 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 Hi, please correct the Fixes tag if possible. It seems that the hash of the offending commit now is d91bff3011cf Regards, -- Matteo Croce per aspera ad upstream