Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp192789pxx; Mon, 26 Oct 2020 06:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbDdEBRl90k1onRM862nmlRa5uYY8z6iCAdV28ZkbGe7Q10/h9i8SuolM9pZdAVFqt97Po X-Received: by 2002:a50:f097:: with SMTP id v23mr15036633edl.347.1603719254312; Mon, 26 Oct 2020 06:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603719254; cv=none; d=google.com; s=arc-20160816; b=fE3sZ/3runtGEijOb94C1F6jB5MmKDb4xD2XYEpP1hkJlbcAToA7GrL6XFap2E1Qy7 6Zc90p03427zEWklmhoUWhaly9ANZV/eAxRlwpPXNBUHvPkeQ556g2GntHa7mqQn/qkJ ZtyLoeIbMl3kHadiTeWuqTbSZV4fBmlMqbXDpxjH8KpEZvx18rFHdvDMM67k6m75WnEL cLCz24Kb0UuXU4sa1Ho0kOtJdcz/RADOBMbNOanAGl6AxhEX0u3IjSVjveGc42cphb9J 0jJ7OAoYnNuBPQ7i39YK0Ol6RkF1OOc1+G6TpdGtNxNgWhNAnbHptmsKMyKcVRZydV9p jQiw== 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:dkim-signature; bh=2yx1YdhlwJAg3/Nd0uG6Y3uzIjyLxLnTpiyheWl/qvs=; b=zUdkKFibAfC1wzxnCagaEFKiT00LKU7PGh54w5WJBTqPsJ5gPf0rdyj7aDB5vKDhVv bBpqZBev/h9jOkKuYLYiEu8BdpOSK+SAULiz3MlNXQG9M2phg/wL5tKFjGBmQmSfXs+x 5mgYzoDevIrsB552HRNoPlEsxwtcRanrxHBr2lPI4uowzAjzPRx47deOLVp5kVW8V85j 9kl8AScT5aht/nvjrUKVAwsD50pVtwqLHL+OhUxx0FQbBPtGsuqfpuKqFXANVvyFUTKy 84dFD/mU+nV6oU5lEuFw0YiDyBVzpyW+vPNAQqxM7G1GhGyNWll0yEWgGy1OxgWlZp88 MunA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=J3MHI0HA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si7096340ejh.16.2020.10.26.06.33.51; Mon, 26 Oct 2020 06:34:14 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=J3MHI0HA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1775456AbgJZMtU (ORCPT + 99 others); Mon, 26 Oct 2020 08:49:20 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54348 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1768773AbgJZMtS (ORCPT ); Mon, 26 Oct 2020 08:49:18 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09QCVx1j170062; Mon, 26 Oct 2020 08:49:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=2yx1YdhlwJAg3/Nd0uG6Y3uzIjyLxLnTpiyheWl/qvs=; b=J3MHI0HACEDx2n7Zj80yVnpt6LIw3PYcW0rnbNu9jqwzZH1fMlwC6o7TWWhW6pFLmVu3 j0p/99U2GLMhs1n6SNzzlRN+PpcGw1LQjd7UK6dU3OuJynwbeTgLHoOqyaOwqGknBDvz AlkJTgoK1OpHA/W7wMSlfXmq4EEt4Sl+rfiz+JaTNqh5vYuKj30XpB612BIjr5YvEAOS izjihdJMewrR6oHKrTIF7aymxC1jfooUfOAdCt80l2vw9Ysf0DRElfs0u/K2VpBVxZJ+ s6Ye1yb6iYPwCV+gpz9gQ3m1SNWUjg0A8fmExscw3YAh1jpTOoWyDQGk0GhR842aKiIB 5Q== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 34d97fheur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Oct 2020 08:49:14 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 09QCkoon011630; Mon, 26 Oct 2020 12:49:12 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06ams.nl.ibm.com with ESMTP id 34cbhh27tr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Oct 2020 12:49:12 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 09QCnARb26018224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Oct 2020 12:49:10 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24F9D4C046; Mon, 26 Oct 2020 12:49:10 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B42C14C052; Mon, 26 Oct 2020 12:49:09 +0000 (GMT) Received: from localhost (unknown [9.145.93.124]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 26 Oct 2020 12:49:09 +0000 (GMT) Date: Mon, 26 Oct 2020 13:49:08 +0100 From: Vasily Gorbik To: Michal Kubecek Cc: linux-s390@vger.kernel.org, Joe Perches , linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 1/1] s390: correct __bootdata / __bootdata_preserved macros Message-ID: References: <20201026104811.22ta4pby2chmz4pv@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Patchwork-Bot: notify X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.737 definitions=2020-10-26_06:2020-10-26,2020-10-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 suspectscore=2 lowpriorityscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 malwarescore=0 phishscore=0 mlxlogscore=775 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010260088 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently s390 build is broken. SECTCMP .boot.data error: section .boot.data differs between vmlinux and arch/s390/boot/compressed/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 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. 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). Fixes: 33def8498fdd ("treewide: Convert macro and uses of __section(foo) to __section("foo")") Signed-off-by: Vasily Gorbik --- arch/s390/include/asm/sections.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/sections.h b/arch/s390/include/asm/sections.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(unsigned long addr) * final .boot.data section, which should be identical in the decompressor 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 /* * .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 decompressed * kernel. */ -#define __bootdata_preserved(var) __section(".boot.preserved.data.var") var +#define __bootdata_preserved(var) __section(".boot.preserved.data." #var) var extern unsigned long __sdma, __edma; extern unsigned long __stext_dma, __etext_dma; -- 2.25.4