Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8477456ybl; Thu, 16 Jan 2020 17:39:26 -0800 (PST) X-Google-Smtp-Source: APXvYqz9HUTpV623cqCQBL7zd0ZFE4b6bwNnlGrkNYVJa7ztQyR2+wYQEgP1jDgDm0lBA8Rmbs1n X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr4512809otp.346.1579225165632; Thu, 16 Jan 2020 17:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579225165; cv=none; d=google.com; s=arc-20160816; b=sxr6r46MpEAIn0X9WDitFs5HfxbFkc/cJ8D9V9hc0eLeK9uKbmkQBBXzUcUDWfYB2q kKVPlOXEs/jNMneWDg10VZ+PCzuqBvQNMi+UxA7/nNIi5ULKYF4S/nRNK2Yhve6AD9oP OcO6deeSHPcKcBcDVodboWAqmrO1ZzTASXPLIROTulbj6TKW5MIYuXsecfEpGg2+wJsH f5QfC6kfW2lqOavI7JyG3AeDhrnCv4yIIhJjEospPR1oAUzaR9WB8QvoYChbo+Kjo+vG brAH+Vm2Fii0Eby7DTNn1HRBOpAzxkfJyrxycLXkToQTiSkGNu7XM+lqjb2mDf5tDEOV hBSQ== 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=UVnVN0VYZusNPOc8iJdQ1odphExaPaUhGkneHDd+OoU=; b=zFUvn4+f/9E6xQ8VtXCI9awk8mnGHgFFv7gtzfGBPqHc4olRlqeLYw73WCXtEbvng6 QNgkyY01+N4EiTddbgvyuFERDBuhLZtgWONJutnTgXvYhg3LODNKlcgRsNzbqhkI4kad Wt4DtWQO5M9a6x1w65oYGPPtcusmDiF0JaEPUhXyXa9xByBmRayG3RBFyVdtNMY2EwCH UIrvXcYN5ygBeluiJuDj907sKc2q/fRdlpR4Y1/vMyDr1SN9zIC6fDtqnMqvH8y5qwoX tYrgdZRYOY5+OykYPsAQZF674L4nACM1sFwKX/f1PqiDL3oWzqM8MWc9CUHew9Vh3tgg 8u3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Imy1OlfA; 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 c21si14744024oto.176.2020.01.16.17.39.13; Thu, 16 Jan 2020 17:39:25 -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=Imy1OlfA; 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 S2389735AbgAPX10 (ORCPT + 99 others); Thu, 16 Jan 2020 18:27:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:58658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389952AbgAPX1L (ORCPT ); Thu, 16 Jan 2020 18:27:11 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 BF2B52072E; Thu, 16 Jan 2020 23:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217231; bh=Aytek8Oeq2kjP+SKLkIWAm/vPNoAgNEImfVwsIfTtWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Imy1OlfAx3trhATfO7DKnCXWcGfWaPaOj+W1e8HBaAOX7ZXEnTmPGssVn8XW+T5pu 259MY1/bdPvlhkRALjAFt27slY2t7t7DqqMyNADu/OmkwIx0dyf0WIk/o1HHNGq3r7 uI95ZfT4xz1/JsRFiqhN+wgaMVOiQX5nEDZPKGzw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Sid Manning , Brian Cain , Allison Randal , Richard Fontana , Thomas Gleixner , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.4 202/203] hexagon: work around compiler crash Date: Fri, 17 Jan 2020 00:18:39 +0100 Message-Id: <20200116231801.719032043@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Nick Desaulniers [ Upstream commit 63e80314ab7cf4783526d2e44ee57a90514911c9 ] Clang cannot translate the string "r30" into a valid register yet. Link: https://github.com/ClangBuiltLinux/linux/issues/755 Link: http://lkml.kernel.org/r/20191028155722.23419-1-ndesaulniers@google.com Signed-off-by: Nick Desaulniers Suggested-by: Sid Manning Reviewed-by: Brian Cain Cc: Allison Randal Cc: Greg Kroah-Hartman Cc: Richard Fontana Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/hexagon/kernel/stacktrace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/hexagon/kernel/stacktrace.c b/arch/hexagon/kernel/stacktrace.c index 35f29423fda8..5ed02f699479 100644 --- a/arch/hexagon/kernel/stacktrace.c +++ b/arch/hexagon/kernel/stacktrace.c @@ -11,8 +11,6 @@ #include #include -register unsigned long current_frame_pointer asm("r30"); - struct stackframe { unsigned long fp; unsigned long rets; @@ -30,7 +28,7 @@ void save_stack_trace(struct stack_trace *trace) low = (unsigned long)task_stack_page(current); high = low + THREAD_SIZE; - fp = current_frame_pointer; + fp = (unsigned long)__builtin_frame_address(0); while (fp >= low && fp <= (high - sizeof(*frame))) { frame = (struct stackframe *)fp; -- 2.20.1