From patchwork Thu Dec 23 02:56:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Kuohai X-Patchwork-Id: 12697894 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1852CC433EF for ; Thu, 23 Dec 2021 02:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2FwXQWrHhtD474Cfc3Eh84O3qd/kXlpOr4677hMaL+U=; b=kykS7ncMmPFod1 XVvb7Ap5K0fcIeqst0OE+JLFnqPjoj7QpN7vfvWizOa3Z/Wp3d+qYRtZOxEImsjTFL1P8i1NZ2/Qm JFP/43JsYUEjHfCCFIAom4enQC1QVIPqey+nuKKJLWF2h7Di+gDtwjWEJtA1aMvRyHLuR38OxXk0X 8MlYwoQkBQ6H/UjBc1JH/FQXc8poibc+4eykz/hCYDTHc5YQs+88RLmEE5A3hgje0V4GRiXOYRIbU 75AsUUTF/UnIVEDcmjjCWVo2uZ6gU0RPnZif4CmMAZ7voaehQvIuo1PqkzpxVbMfJtDs47gnfaro/ kYqfEh68X0cAsmMk24Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0EDl-00BmD1-OZ; Thu, 23 Dec 2021 02:52:45 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0EDi-00BmCF-36 for linux-arm-kernel@lists.infradead.org; Thu, 23 Dec 2021 02:52:43 +0000 Received: from dggeme764-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4JKF5b1HyqzZdpx; Thu, 23 Dec 2021 10:49:23 +0800 (CST) Received: from huawei.com (10.67.174.119) by dggeme764-chm.china.huawei.com (10.3.19.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Thu, 23 Dec 2021 10:52:32 +0800 From: Xu Kuohai To: , , Subject: [PATCH RESEND] ARM: Add unwinding annotations to __loop.*delay functions Date: Thu, 23 Dec 2021 02:56:58 +0000 Message-ID: <20211223025658.3768629-1-xukuohai@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.67.174.119] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggeme764-chm.china.huawei.com (10.3.19.110) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_185242_349534_980D9B19 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The unwind directives can't handle nested function entries, so only the outermost function __loop_udelay is annotated, and the inner nested entries share the same unwind info with __loop_udelay. Signed-off-by: Xu Kuohai --- arch/arm/lib/delay-loop.S | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/lib/delay-loop.S b/arch/arm/lib/delay-loop.S index 3ccade0f8130..f0a076f9abc5 100644 --- a/arch/arm/lib/delay-loop.S +++ b/arch/arm/lib/delay-loop.S @@ -7,6 +7,7 @@ #include #include #include +#include .text @@ -21,6 +22,7 @@ */ ENTRY(__loop_udelay) +UNWIND(.fnstart) ldr r2, .LC1 mul r0, r2, r0 @ r0 = delay_us * UDELAY_MULT ENTRY(__loop_const_udelay) @ 0 <= r0 <= 0xfffffaf0 @@ -54,6 +56,7 @@ ENTRY(__loop_delay) #endif bhi __loop_delay ret lr -ENDPROC(__loop_udelay) -ENDPROC(__loop_const_udelay) ENDPROC(__loop_delay) +ENDPROC(__loop_const_udelay) +UNWIND(.fnend) +ENDPROC(__loop_udelay)