Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1466334ybi; Thu, 30 May 2019 18:34:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyR7/Ab8xZetesw2X5/pbPIqi3wzMd80wAXHePQoppegL3dX9f0f79opubZDoYlGxeCwO/ X-Received: by 2002:a17:90a:25ca:: with SMTP id k68mr6664328pje.14.1559266448950; Thu, 30 May 2019 18:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559266448; cv=none; d=google.com; s=arc-20160816; b=p1wwobT9TNyEdeZ8JDlwEw0d36oEtb081R2kfoKSrmHWggLmWRtN9gNAz8Y5qHj5JI Cnax0E4nJ1/o4F34/8ZXxkmeYJBUEUCrPYnJwFXzHNPVJF9IpaAwxp3z2BgJJWnb3pKn 0mwmECw72QTr6ivFkKG9dSSq1r9FWgRssPcOhNdSlZIZ0vvDwK2W1NaC0Ind+5ftyFj9 8VG5KjUNwSbKoE/14SEm+hmd3eBLFHOVCHiIEwI6THKLCk093C4XzYuAKmRK2zaXpMk0 ykxvK4j1OhJCFt4sPbqCiw7yDGg+0hI1BuvF08xAuvr9Rg7VFBD1NR3v0s5FuPIUMrNs M8kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=MVWCRMYBzgzlnaqoLxL7h9XErwzqneSDxsp4fHnwIl0=; b=w9HvbSJEtBzj4U6mEJqsQ/S+U1tKLQ5k0Vj1Un8pLCbFTIVvKwPm51sASpeC+d4qGw PjtjyxD9qISabMT6CR8wVSU2vQ5WtgutzXuo4DY0uTrOKnmZmJL9ddVEFvEY11HBxPCm s4b5EnLW9E3nLGycPNeHnGU4PkF/pIe+HdbYoeptY9q/8xFMEjuX5UwTn5i/AligCI1S q0ObNZOOsxgOsmoVa315FtXandlqXxwf+vFGLQxBtTeAAGqgnotVJ9XZVvBRAQuzhlA2 i10H9eSETBE+9QBKxQ7j+zDb9xgQNoZWMflZ+DvR6CGfnnad/CAXX2lekDwDHfLNmS8Y VnZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=rtCZuTiI; 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 x65si5097997pfd.44.2019.05.30.18.33.53; Thu, 30 May 2019 18:34:08 -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=@canb.auug.org.au header.s=201702 header.b=rtCZuTiI; 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 S1726728AbfEaBcV (ORCPT + 99 others); Thu, 30 May 2019 21:32:21 -0400 Received: from ozlabs.org ([203.11.71.1]:39451 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726372AbfEaBcV (ORCPT ); Thu, 30 May 2019 21:32:21 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45FRl51mj3z9sCJ; Fri, 31 May 2019 11:32:17 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1559266338; bh=ENrMprAgC7Pqmh5Zpsocx65Enrzzgtplf0cUUx2IBkc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rtCZuTiIc25EynzMguFPWOC1VDMJr/7ioblJT/MQPe/wokGzLTMvWYeKbI4NtxRh6 ZxPdHIdWxlnMiA+A3tC6vkjiI87Bu7Pmuw7haK21fLpdg5gse7kw68vvtuQFeTCAJI XsslUFC48qw2xa625nM79vRiPWhidTIKp8eH2fDY+3ChWY2gIfa463ZopZRhYlrfW4 1h2/ETlF3UIuym8WL6FLuIG6vh20FnQhYYN7PSbKgSQXa/xBC5xoddeUs889GqcDu6 9MUTbB+6ib3CIdneewBKDk+s3mowWOtJPid/5LIcMl44hrYVqvUDilI/m4azivW3kP z3pR1ImGtJL8Q== Date: Fri, 31 May 2019 11:32:16 +1000 From: Stephen Rothwell To: Matteo Croce Cc: Randy Dunlap , Linux Next Mailing List , Luis Chamberlain , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] firmware_loader: fix build without sysctl Message-ID: <20190531113216.796bb933@canb.auug.org.au> In-Reply-To: <20190531012649.31797-1-mcroce@redhat.com> References: <20190531012649.31797-1-mcroce@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/TPqHE_Oa=ZmOD5cJXg/Xd=E"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/TPqHE_Oa=ZmOD5cJXg/Xd=E Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, [Just cc'ing Andrew who is currently carrying the patch that this fixes.] On Fri, 31 May 2019 03:26:49 +0200 Matteo Croce wrote: > > firmware_config_table has references to the sysctl code which > triggers a build failure when CONFIG_PROC_SYSCTL is not set: >=20 > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x30): undef= ined reference to `sysctl_vals' > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x38): undef= ined reference to `sysctl_vals' > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x70): undef= ined reference to `sysctl_vals' > ld: drivers/base/firmware_loader/fallback_table.o:(.data+0x78): undef= ined reference to `sysctl_vals' >=20 > Put the firmware_config_table struct under #ifdef CONFIG_PROC_SYSCTL. >=20 > Fixes: 6a33853c5773 ("proc/sysctl: add shared variables for range check") > Reported-by: Randy Dunlap > Signed-off-by: Matteo Croce > --- > drivers/base/firmware_loader/fallback_table.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > 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 =3D { > }; > EXPORT_SYMBOL_GPL(fw_fallback_config); > =20 > +#ifdef CONFIG_PROC_SYSCTL > + > struct ctl_table firmware_config_table[] =3D { > { > .procname =3D "force_sysfs_fallback", > @@ -45,3 +47,5 @@ struct ctl_table firmware_config_table[] =3D { > { } > }; > EXPORT_SYMBOL_GPL(firmware_config_table); > + > +#endif > --=20 > 2.21.0 >=20 --=20 Cheers, Stephen Rothwell --Sig_/TPqHE_Oa=ZmOD5cJXg/Xd=E Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlzwhCAACgkQAVBC80lX 0Gw0qQf/evM65VBHkhgx3KVeMRBmdSccZ9FHYEeofJFXMPJwh2vm4AEAws/PYLRH RL529NygtdmzuK6f/+GKNvbRVXWR2KA2/iBxPFvQOq1aAQDeomLVGrgIXTApy/5D 44ddPNZaVDLToM894A+DKetLxq8p1+ir9KAa+ZEM5EbZbd34vWJkC8u0HtMscmFW zyvpA8d2YBZ+okjdI89AHFbhYnD7x81+ukkNxTkU3Xiy6syyuit5c/JIjHDzTP4a nlHygjsJjVXusYBJVHS+HU2hN6s6+NCVtFCaLeIdp8SJvki/OXsvJuZPMZuxVbgk pzZDpKGs3wSJxfyOqvyZET0wdWNyOg== =MEoS -----END PGP SIGNATURE----- --Sig_/TPqHE_Oa=ZmOD5cJXg/Xd=E--