Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp885812pxx; Tue, 27 Oct 2020 03:03:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznRgAoOhCPPVaFEkCYOSmglAirChzBgF6/ROavPOFULviKnjF0btizNw/dZGTH5KunsB6a X-Received: by 2002:a17:906:c1d4:: with SMTP id bw20mr1537784ejb.91.1603792986858; Tue, 27 Oct 2020 03:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603792986; cv=none; d=google.com; s=arc-20160816; b=FEEZR85j+3/Xxg85nzW7wGmIqgQgfeEuGfTKrPwkIYZpH/eSoDxRVuloPStk+p2v3K zKfVzIvVktR+DP1btQfqjjXZNdkTJ3SdBScu2YL2/lTPXEgvY1AQwWutFu27L6MVmWMt sWZZ9xeEhZSg+lIa01OixPdrPLoCw6pG1g9xYzmEM+NxmGsFa32tnqe/fh66O4v3YZze ahhkSZiwddKQOwl8iufOW7AScYGaflzvs7f22YOfS0/oCF+JCdXDKPk49guzv4oIgxX4 +wyxNjxv01EkJUbgieeET0i0ZCMtLYCNhEinDuZMDBLJmMdw/vfJn4mzfKSl7jMUS/GL UYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Fg3ChVjnpgjMlaynXfEaxhL6+22NnjAHmpQk0ibcBwg=; b=KdYgLOThts/I+hDd1RscHjv/pASQxWCxHLRcDhy/vwMxjhOivpX7FkkLuSz4TIHZIH UugWTegu/e98EvMi9xEU05f2sUnlCSQkgvstLSoqpYNH7kIAsQpT9gXup7YqRKmzk/ai S41dc7MVofkIIArX0PtcqeS4uBq9xlSmLlYF0n59FBrHxIr13eMh8aacmkbYBauzOA1b 7o1O7f6W9MNwKWYPYyUi6zgspF+pnl2dZ+E9lamSSFGrVTEamxjmvSzrLUPMdm2FVFYf nWejM3dn5C2pKdVvFTbFc1hADZlHjp4/MLWtqQd/VNxS1Pro+efajb7MjFB//gi33Vw8 hFkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si638160ejb.424.2020.10.27.03.02.44; Tue, 27 Oct 2020 03:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437100AbgJZX6m (ORCPT + 99 others); Mon, 26 Oct 2020 19:58:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:47890 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436664AbgJZX5D (ORCPT ); Mon, 26 Oct 2020 19:57:03 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 306D1AC43; Mon, 26 Oct 2020 23:57:01 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id C881E60736; Tue, 27 Oct 2020 00:57:00 +0100 (CET) Date: Tue, 27 Oct 2020 00:57:00 +0100 From: Michal Kubecek To: Vasily Gorbik Cc: linux-s390@vger.kernel.org, Joe Perches , linux-kernel@vger.kernel.org, Jiri Slaby Subject: Re: [PATCH 1/1] s390: correct __bootdata / __bootdata_preserved macros Message-ID: <20201026235700.3dga6r5obn7z5cxv@lion.mk-sys.cz> References: <20201026104811.22ta4pby2chmz4pv@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qcfgs5eg7rfckcnu" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qcfgs5eg7rfckcnu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 26, 2020 at 01:49:08PM +0100, Vasily Gorbik wrote: > Currently s390 build is broken. >=20 > SECTCMP .boot.data > error: section .boot.data differs between vmlinux and arch/s390/boot/comp= ressed/vmlinux > make[2]: *** [arch/s390/boot/section_cmp.boot.data] Error 1 > SECTCMP .boot.preserved.data > error: section .boot.preserved.data differs between vmlinux and arch/s390= /boot/compressed/vmlinux > make[2]: *** [arch/s390/boot/section_cmp.boot.preserved.data] Error 1 > make[1]: *** [bzImage] Error 2 >=20 > Commit 33def8498fdd ("treewide: Convert macro and uses of __section(foo) > to __section("foo")") converted all __section(foo) to __section("foo"). > This is wrong for __bootdata / __bootdata_preserved macros which want > variable names to be a part of intermediate section names .boot.data. name> and .boot.preserved.data.. Those sections are later > sorted by alignment + name and merged together into final .boot.data > / .boot.preserved.data sections. Those sections must be identical in > the decompressor and the decompressed kernel (that is checked during > the build). >=20 > Fixes: 33def8498fdd ("treewide: Convert macro and uses of __section(foo) = to __section("foo")") > Signed-off-by: Vasily Gorbik Tested-by: Michal Kubecek Thank you, Michal > --- > arch/s390/include/asm/sections.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/s390/include/asm/sections.h b/arch/s390/include/asm/sec= tions.h > index a996d3990a02..0c2151451ba5 100644 > --- a/arch/s390/include/asm/sections.h > +++ b/arch/s390/include/asm/sections.h > @@ -26,14 +26,14 @@ static inline int arch_is_kernel_initmem_freed(unsign= ed long addr) > * final .boot.data section, which should be identical in the decompress= or and > * the decompressed kernel (that is checked during the build). > */ > -#define __bootdata(var) __section(".boot.data.var") var > +#define __bootdata(var) __section(".boot.data." #var) var > =20 > /* > * .boot.preserved.data is similar to .boot.data, but it is not part of = the > * .init section and thus will be preserved for later use in the decompr= essed > * kernel. > */ > -#define __bootdata_preserved(var) __section(".boot.preserved.data.var") = var > +#define __bootdata_preserved(var) __section(".boot.preserved.data." #var= ) var > =20 > extern unsigned long __sdma, __edma; > extern unsigned long __stext_dma, __etext_dma; > --=20 > 2.25.4 --qcfgs5eg7rfckcnu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEWN3j3bieVmp26mKO538sG/LRdpUFAl+XYkcACgkQ538sG/LR dpWkIQf/ewe8ufeiPuicJmlgaV6TdHL3FAT8qcv6mHaTsLLX7wyxKw5IAjV7MQ5v qjREkYseptZ88CaoU6Rhzc1iGY2ugIpdQpPRrr/CbvgH5Kaw7AH0Ii9C/60W1CY8 zJl9UPKuOV/s5RiMA1gP0AKTDNVGLk35/GYKh4GnvIIoY1jjxkoaoGqew+jBkCc8 H6bJfChAHqb0YEhiOrB6quwEDbFBmongolgMmpHJ/kenhW/IeOyT1TRDt00jFr6i rpHMS48r4uhi5M0srNOW71mptisTBR1rjMzz/2maaNv8yntJsEFN3J2RbQ3Z/x1c TZ7UujMj5rSBT/RjXFwZcjPCp8KxOQ== =9yg/ -----END PGP SIGNATURE----- --qcfgs5eg7rfckcnu--