Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3428511imu; Sun, 11 Nov 2018 14:53:43 -0800 (PST) X-Google-Smtp-Source: AJdET5fasmBkRs4vAIxqIWx9CkinJ2WhTNgjlxxW0lcj8gvn0Dpgm5EpnOSWBduylM1DkCybhiaS X-Received: by 2002:a62:5086:: with SMTP id g6-v6mr17884087pfj.48.1541976823733; Sun, 11 Nov 2018 14:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976823; cv=none; d=google.com; s=arc-20160816; b=Nm12jPJcEwIE4vDp8T6H0+sydMKsV9tbDI+b/EP16lI9fYHqSh1AKKNb+J8veYg96z /4TAJx/qvJxpFvR6YpDH3KTSo56AqvYmbmxa2vrnmpzuelcVlUdo/yQ3bnML1G3B+CYN cB69O2FI4N6tWpDB7UzZAqtu99L+7WInlriY9q3NLAoPuleb1yPgx9bF3JZrhFukw4xa c2c3otJRBlI9k/tb8ERqV+DUgKxhYpX44JM+yBZrFrEoOffA4jBU35Bu2zUEuIzjqQuE jlLvXgCktOnq5B54I5ez9Vsh18C5la94waP+77I7t9wHT0X3wcFdCkTD4CRkos3dijKV bP5w== 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=mQTQZXaIoNp0CUgjUfjubn8sl6xluF6Ih2gWDAVuw9Y=; b=BkWmK1sqEyQLAKBbiH0upAzKKap2cQwW+vqTcU9lpxa2nKqI5FUok7jdw3KX0ZRDEu oW5J6Huy0ta7PqqTy1Q12pNBPUDRVNHDIiKtBv6Sn5vfeZIrt8uMjRSAZyfmLDG6CKjs CEhkEOWMJSH8Oas3c7GZKZVtJr7dzvesLD5rMtZYjQ0IpfQgb1p2kc/pFz4NEQJ/pZwa jueMKXV0ZAeHpY75RaQ0twpiVE2BXAZ9CyhjXcO3x7i40Td5x4KhAkV++iqS0fGEIPas poTWDVBoCEfNJ9cpllS0ubYHtIFO7DI2aTPboMFIh8mxu8Al2X4FWUvZ1bJKagERwFag 2jxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=caS5ut3t; 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 1-v6si16130204plj.146.2018.11.11.14.53.28; Sun, 11 Nov 2018 14:53:43 -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=caS5ut3t; 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 S2390905AbeKLInM (ORCPT + 99 others); Mon, 12 Nov 2018 03:43:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:54620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387767AbeKLIXD (ORCPT ); Mon, 12 Nov 2018 03:23:03 -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 E72252154B; Sun, 11 Nov 2018 22:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975586; bh=XbSsyQrlBWfYObxVoIyknTPdzRinn/9eapqOgqshkTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=caS5ut3t+/FGK0ousiSU3aanxYDWa6pvPmLJVy86oeOp7ielUxEyvF//b87HhpkNs Z4B716oOI2VA4eXHUg3H7SyEa5BcjqDBSKrOckSVpygA8w3NlVbaen2pw0TQl1/GGF OteFUrasfVxG0sVgyB76JHlGiyLY6zD1GOmevECM= 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.14 189/222] arm64: lse: remove -fcall-used-x0 flag Date: Sun, 11 Nov 2018 14:24:46 -0800 Message-Id: <20181111221703.837208325@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@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.14-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 := bitops.o clear_user.o delay.o # 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 \