Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp606738yba; Fri, 3 May 2019 07:36:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyAUrV+MNLKEZ2mEfDGeBp6h41RdPqwZRTN0PDk0AxQ64/3OsCUVdclyTfJvoEVU1oITGR X-Received: by 2002:a17:902:24a:: with SMTP id 68mr10423292plc.250.1556894206898; Fri, 03 May 2019 07:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556894206; cv=none; d=google.com; s=arc-20160816; b=cIZVWgPA31DcvTbRuBPAsk4u1/cF1RmFV8MbZFd79gwFS9cSybCcSrB0LKyLb9t3bO J9LZr7wIG8OvAqMrF5njjsY3dHFU+yEH5cnczPhIllH/A2XlqP/e7Aek99P0OlUZ7IYz BZZ/7TxXgtYVQ9dPJ9BDczZF/9avAD1aMvFB/HbS9b8aEtvVXCGd2AZZ2Ep/QfYSSYu5 D11uNywfy5wV0OSPvItApVupT6HLWVwt/4ZLvccTTyF0+npyNFVHQMbuzb5ZvVCZ9pse R3pOglMRSABDSuCrkkfpyZZfgNbGY8cNEPZcU/S+5BT2IxXgIJqDHeyBxL/d0KFqkE3f LKaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=+wdkZThJX1ZP+IiEhA1YyPERjqW61b55wU3N3j7duUc=; b=osl2JvSdauyDARPv8Ha4FkVHRIYGZI3pWKxcdoR8VabpbM8gx84rKMxwqw9N/fmw43 VpzCwZ4xwSlFlI9CyWR2dvjIpjBQ2WAA6h6/v3i6Ga1iT+h0tFGeL/l+i6qMoiMTYNQy Dh4CoAwfSd68WUTzgpi6FZUOaQLXrlNV2d/qboiyJTTK8jj+2G2OfQ48nG54HB/6NBoR 68EPJsWdwfsXjgsaP7nvTz6c6G22v9dn+ZiRIql3JYZzCMlTdCNocFRB456UphALtB/n OS6DZTGxphw1Cl/HQUCEBoHRcZEalOVN71h0nxE5QpptJzLLr0G2metW6v9wdyTtPmj0 NaTg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si2510460pgd.166.2019.05.03.07.36.30; Fri, 03 May 2019 07:36:46 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728152AbfECO0O (ORCPT + 99 others); Fri, 3 May 2019 10:26:14 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:33698 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727130AbfECO0N (ORCPT ); Fri, 3 May 2019 10:26:13 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x43EN6qH173567 for ; Fri, 3 May 2019 10:26:12 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2s8q3wrtu9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 03 May 2019 10:26:12 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 3 May 2019 15:26:10 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 3 May 2019 15:26:08 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x43EQ66p39845948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 May 2019 14:26:06 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7F92311C050; Fri, 3 May 2019 14:26:06 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2072F11C04A; Fri, 3 May 2019 14:26:06 +0000 (GMT) Received: from osiris (unknown [9.152.212.21]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 3 May 2019 14:26:06 +0000 (GMT) Date: Fri, 3 May 2019 16:26:04 +0200 From: Heiko Carstens To: Nathan Chancellor Cc: Arnd Bergmann , Martin Schwidefsky , clang-built-linux@googlegroups.com, Nick Desaulniers , linux-s390@vger.kernel.org, Vasily Gorbik , Masahiro Yamada , Luc Van Oostenryck , Philipp Rudo , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/4] s390: boot, purgatory: pass $(CLANG_FLAGS) where needed References: <20190415083605.2560074-1-arnd@arndb.de> <20190415083605.2560074-2-arnd@arndb.de> <20190415161206.GA6928@archlinux-i9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190415161206.GA6928@archlinux-i9> X-TM-AS-GCONF: 00 x-cbid: 19050314-0008-0000-0000-000002E2F17E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19050314-0009-0000-0000-0000224F63D3 Message-Id: <20190503142604.GD5602@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-03_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=923 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905030091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 09:12:06AM -0700, Nathan Chancellor wrote: > On Mon, Apr 15, 2019 at 10:35:52AM +0200, Arnd Bergmann wrote: > > The purgatory and boot Makefiles do not inherit the original cflags, > > so clang falls back to the default target architecture when building it, > > typically this would be x86 when cross-compiling. > > > > Add $(CLANG_FLAGS) everywhere so we pass the correct --target=s390x-linux > > option when cross-compiling. > > > > Signed-off-by: Arnd Bergmann > > Reviewed-by: Nathan Chancellor > > > --- > > arch/s390/Makefile | 4 ++-- > > arch/s390/purgatory/Makefile | 1 + > > 2 files changed, 3 insertions(+), 2 deletions(-) Applied, thanks.