Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3246181imm; Tue, 4 Sep 2018 18:55:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZaBTQ0+Tzg0e55xGwqctCivFPeE/PhdT61gCKVQx/xCB1QG3IZTo4Y/d2K4zzTI0fl99CT X-Received: by 2002:a17:902:b784:: with SMTP id e4-v6mr36673777pls.204.1536112534741; Tue, 04 Sep 2018 18:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536112534; cv=none; d=google.com; s=arc-20160816; b=c/+dB95/QxmdgZukJEiVowjUCrWm52N56/C3/wEuIwyYjEBJuI63ynWJxJPQoW5mmP aT0lvOh90C83aOppj82fT2SJb2KQ1SK+iUZZ5lXuhW+QNjLKQ7xP28j38I34IQEY4mZs nt+pcejGfnUXWaOCE9dVON+T/80QY6fcRNiI6wH9IKMA4NYzmLrk2tW+JdqPhvTyZeN+ 9TBDlP02i+NKZIB0DJPlGChgokY+AuTQXoTeVaPXXNCRe1uUhOMqBFnSKI6mxwZpEIRC EyCDWQX1a7DDgLlk+9rKL5+vtR0cj9rb+4OTWSS3yTqGb8HLAyd89CJu7or4xhdxLVCZ pjxQ== 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=6VWhdi2SpJVA70YGfZQfeRsusj6bNXZP85GHSGdVqHs=; b=bjo0jTDW9TfocXt5vREXNHANYymWSB9sZ4I1+WAC69mjMr1WsKQI8cpPTOIpbpGMtJ h7KaIdowXx6RaUu4ZxAFqDUXr7uX1mdqrAmJSPb3kNbouky1Fy3DYTIUmmtAikHH88UM 62DSWfiLsGKhUWH4k1f+w575HWalzKJN7faJQn9vOO7jebfDPOIO1eOz5U5ftjeEs5iA Kl2ScbteUNnyons7pomf1UQTKfJ1lww2GvhPrtGbDX3SEXAozvvZ4jhLrSsq+mlxO3p0 h+9RnGSCDcYU5BwOIPwM4ufTa2ZISwwpNc207RFS5n+KKof1RlSQTmilcZMVmW8I2iIJ GyWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=DtyyFFcK; 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 v9-v6si566157ply.16.2018.09.04.18.55.19; Tue, 04 Sep 2018 18:55:34 -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=DtyyFFcK; 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 S1726300AbeIEGWC (ORCPT + 99 others); Wed, 5 Sep 2018 02:22:02 -0400 Received: from ozlabs.org ([203.11.71.1]:46561 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbeIEGWC (ORCPT ); Wed, 5 Sep 2018 02:22:02 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 424mw40vgyz9s3Z; Wed, 5 Sep 2018 11:54:12 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1536112452; bh=bjfhgGxOK+ouw21QVz2khjcGZfqK6Jh5Og2+DndW6iY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DtyyFFcKE9AjCCFQLKBOfFL262J27S6rRzWSHjiUU+ioJkz4i0Y2sAToO8xQPhrFL 4lYtaNMmKSQTa2Pc1aft1OFb1Nn97CH39+1TBN6Ryy9RW9UOfx1VaahSrePHDIGgGl X0vaGQVpTtH8mlgmCcCD4+WCdY8gnp+s+NBO/ixaH1lS8l2fhNv/8dtLPMMK6MvfIB CPcmkdYD086e0jmeet0V1v9Kv+HzFwqxu+k1ckcsHtXhNJksMaYwD+5NsDknnU+FAP 1ofe6/6n7WcKkitQ86hXFaLn6UXTwwHfRaVBQ17nui9QWwCtLkqxg+aBcoAVWIDETb vf1wlnGxipuYw== Date: Wed, 5 Sep 2018 11:54:11 +1000 From: Stephen Rothwell To: Rob Herring Cc: Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warnings after merge of the devicetree tree Message-ID: <20180905115411.0c52399c@canb.auug.org.au> In-Reply-To: <20180905103906.232545a4@canb.auug.org.au> References: <20180905103906.232545a4@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/0/BLZllQuEWZoEPwDtwElt0"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/0/BLZllQuEWZoEPwDtwElt0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Wed, 5 Sep 2018 10:39:06 +1000 Stephen Rothwell w= rote: > > After merging the devicetree tree, today's linux-next build (x86_64 > allmodconfig) produced these warnings: >=20 > WARNING: vmlinux.o(.text+0xf40a16): Section mismatch in reference from th= e function of_fdt_limit_memory() to the variable .init.data:dt_root_addr_ce= lls > The function of_fdt_limit_memory() references > the variable __initdata dt_root_addr_cells. > This is often because of_fdt_limit_memory lacks a __initdata=20 > annotation or the annotation of dt_root_addr_cells is wrong. >=20 > WARNING: vmlinux.o(.text+0xf40a1d): Section mismatch in reference from th= e function of_fdt_limit_memory() to the variable .init.data:dt_root_size_ce= lls > The function of_fdt_limit_memory() references > the variable __initdata dt_root_size_cells. > This is often because of_fdt_limit_memory lacks a __initdata=20 > annotation or the annotation of dt_root_size_cells is wrong. >=20 > Introduced by commit >=20 > bb35ea5c7c30 ("of/fdt: avoid re-parsing '#{address,size}-cells' in of_f= dt_limit_memory") It turns out that section mismatches are fatal errors in some configs (like= powerpc allnoconfig), so I have added the following patch for today: From: Stephen Rothwell Date: Wed, 5 Sep 2018 11:50:29 +1000 Subject: [PATCH] mark of_fdt_limit_memory() as __init Signed-off-by: Stephen Rothwell --- drivers/of/fdt.c | 2 +- include/linux/of_fdt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index fef4b2c8a171..fe78bed8925f 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -39,7 +39,7 @@ * memory entries in the /memory node. This function may be called * any time after initial_boot_param is set. */ -void of_fdt_limit_memory(int limit) +void __init of_fdt_limit_memory(int limit) { int memory; int len; diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index b9cd9ebdf9b9..19ebf22a7862 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -46,7 +46,7 @@ extern char __dtb_end[]; =20 /* Other Prototypes */ extern u64 of_flat_dt_translate_address(unsigned long node); -extern void of_fdt_limit_memory(int limit); +extern void __init of_fdt_limit_memory(int limit); #endif /* CONFIG_OF_FLATTREE */ =20 #ifdef CONFIG_OF_EARLY_FLATTREE --=20 2.18.0 --=20 Cheers, Stephen Rothwell --Sig_/0/BLZllQuEWZoEPwDtwElt0 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAluPN0MACgkQAVBC80lX 0GzS7Af/RBQCMN/bP3s0wDxbRCf525BXEQntekpzz5H5khG4+vlJ4TAFTdI8G59K J7ICzb+Ub5GDC7h9y5075BMx8UT9+H3s8dV9xg2OEWEFFPZSG0W5LjgJx+SJ/Vt5 6DLRczr2paZxTU+6PxR6aa8PlDHg84ecsU0jgeEkR7TuMR1nhFfBGkRaP2aQLGVJ mwg36pu1EbK8w3Rg5o2PwF8GL5S2uRmghwfQRq+uk2Jtz64UtAa0lmuymEEf8h1o Mzy7cj5oUQjpln+4zVyLiVCV+7Cfz77rDPswSKNlpI9bw9GOVZk7kz7wj0EsWju8 L12KdrR9G6Pu/bUCJYUxAl6rR6XEpw== =Egvw -----END PGP SIGNATURE----- --Sig_/0/BLZllQuEWZoEPwDtwElt0--