From patchwork Fri Oct 14 01:59:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen (ThunderTown)" X-Patchwork-Id: 13006585 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 6D94CC43217 for ; Fri, 14 Oct 2022 02:02:17 +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:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nCxHFv4R+ZsqOTNaqdUoTxOiFZGf1ftC/qQcLROFfms=; b=0uVZDB/rUT0lMS WaFv/LZD7teMLsWaXHxlbsvKtPqIv7GtRmjqoWMLpmyXYkVdOal93gGFzno6F45Z7OgcNSn1sbr4E GdyLR6by3I7oN1JUxBhfvW/roSOu/ADc8uQiN0taf51TSxdaPXXJfiBTCEXhd+nUag92Vz372i2md p/sZfc8m2OGHi8mNDx3wuZewhQ8D6XqvJxFc0/Nizze+TPJ0Nd8tJflO+c6Prp5eKx/NsyiiNcsBw NuO/BM0HX18Q/qTSEIsXrOizXsH+dRRCvZV4WXDOqNmmj+IieKib78yu2viuFHq7jAXqADFNOL5HN uYE70Qb8lj27rQXHMAsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojA0i-00DLT7-0z; Fri, 14 Oct 2022 02:01:16 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojA0Q-00DLJU-8w for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 02:01:00 +0000 Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MpV0K57hkzDsWM; Fri, 14 Oct 2022 09:58:09 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 10:00:43 +0800 Received: from thunder-town.china.huawei.com (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 10:00:42 +0800 From: Zhen Lei To: Russell King , Ard Biesheuvel , , CC: Zhen Lei Subject: [PATCH v3 0/3] ARM: Make the dumped instructions are consistent with the disassembled ones Date: Fri, 14 Oct 2022 09:59:53 +0800 Message-ID: <20221014015956.2006-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221013_190058_519915_08690EA4 X-CRM114-Status: UNSURE ( 4.57 ) 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 v2 --> v3: 1. Don't use '__force to' cleanup the sparse warnings 2. Refactor dump_instr() 3. Relace cpu_to_le{32|16}() with __mem_to_opcode_{arm|thumb16}() v1 --> v2: 1. Cleanup sparse warnings. Zhen Lei (3): ARM: Fix some check warnings of tool sparse ARM: Refactor dump_instr() ARM: Make the dumped instructions are consistent with the disassembled ones arch/arm/kernel/traps.c | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-)