Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3470920imu; Sun, 11 Nov 2018 15:51:56 -0800 (PST) X-Google-Smtp-Source: AJdET5f6+1wX48KvgVt4A0t1e2+8Z6ai9pVLK/w3oVbvJLhXAkAHywHts/QFEOhLuCqwY3VV7pJW X-Received: by 2002:a63:7c13:: with SMTP id x19mr15324755pgc.45.1541980316632; Sun, 11 Nov 2018 15:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980316; cv=none; d=google.com; s=arc-20160816; b=UnotDHuSQGA+bZjfPAjjuY1oRwYPmxxOtnxCMbnBDAzJtwLqvZxJiGJOoFCvj4IKLb EQPMa9iriVGPEWULe6N6RCzYdlDCFMCIs+l8Ak5QPNFAWyISXCVisRkRMB5oy1FKnsak 7lKs/lHPsoREVUi859nW1grZEGKdxL2c+tPCnjcrtpjHqQ8HgFuxdXw/oI4/9zst72nv b/gde0DZ4llixsBhAu2T8ywR+Kd/n1PJ09ZdBKNpyL1S6SYx8vlC1KMzV0D01BG/hkRb Ztthi4KRnOEwZWovBWSMJkbT5cCx8eanvK6O70Bxi9g1dEs70oG05YSPO5gZeg0c7A/P ekZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y/3qtaH6f4cG1rdRVJf0reCC/70FSmBmjN2K5Hlcy9A=; b=qB2FBtbnmBTl+t1Y/hx1e5mJK+bTDUH30qloyGd19l9l3Mn9PiUrRfoLMszFgDVXux svi8APk20XIdJtDnnoYNTOJw3TSuRXfqBA+kPARDOBUgfUgkK7E6znEbv2CMli4m5tMg nepEZNr4BlZ47jwt+tThi+PIVZ0D2mRundVk/ATVJlsgyUKto8/J+AhTMjQt8itglMN1 N+FhakucXW/lCYfidc4stBzM9QujOtKpi5ESt83bjwIRMZueJ2wYzglUgd1fUaHdMa9e iwJ1swv4zBTUGWyb17dGJwbSAJKbJYtnoQ/RnXyf1knns8yrpIK7j1B9hpcTnMobJ4Eg Apcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XflAp7fy; 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 f35si13232420pgf.449.2018.11.11.15.51.41; Sun, 11 Nov 2018 15:51:56 -0800 (PST) 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=@kernel.org header.s=default header.b=XflAp7fy; 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 S1733291AbeKLJka (ORCPT + 99 others); Mon, 12 Nov 2018 04:40:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:38130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732914AbeKLISg (ORCPT ); Mon, 12 Nov 2018 03:18:36 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 93757224E3; Sun, 11 Nov 2018 22:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975320; bh=nIE8doO+PHkVDd5H5s4C2sHawL3dHu7gIPYj7pNMYG4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XflAp7fyRcfB0ynO3AvJx/vXCowesrKKtelwYyaVe8+uqSGBRR882OrnJzZmY/Hej r1p05dE3lzF5qRwyEt0PWgN502VmCVO7NpXry4omOuaz6I2mGByri8+WLRbgkoe3q9 n5Sz993WwfQOGAJe+hDyU5G890yRhLzsgmGUHL7Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Will Deacon , Tri Vo , Catalin Marinas Subject: [PATCH 4.19 316/361] arm64: lse: remove -fcall-used-x0 flag Date: Sun, 11 Nov 2018 14:21:03 -0800 Message-Id: <20181111221658.700510069@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tri Vo commit 2a6c7c367de82951c98a290a21156770f6f82c84 upstream. x0 is not callee-saved in the PCS. So there is no need to specify -fcall-used-x0. Clang doesn't currently support -fcall-used flags. This patch will help building the kernel with clang. Tested-by: Nick Desaulniers Acked-by: Will Deacon Signed-off-by: Tri Vo Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- arch/arm64/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/lib/Makefile +++ b/arch/arm64/lib/Makefile @@ -12,7 +12,7 @@ lib-y := clear_user.o delay.o copy_from # when supported by the CPU. Result and argument registers are handled # correctly, based on the function prototype. lib-$(CONFIG_ARM64_LSE_ATOMICS) += atomic_ll_sc.o -CFLAGS_atomic_ll_sc.o := -fcall-used-x0 -ffixed-x1 -ffixed-x2 \ +CFLAGS_atomic_ll_sc.o := -ffixed-x1 -ffixed-x2 \ -ffixed-x3 -ffixed-x4 -ffixed-x5 -ffixed-x6 \ -ffixed-x7 -fcall-saved-x8 -fcall-saved-x9 \ -fcall-saved-x10 -fcall-saved-x11 -fcall-saved-x12 \