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: Zhen Lei X-Patchwork-Id: 93 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp573246wrs; Thu, 13 Oct 2022 19:04:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75aGBIICJ7Bv/XfjOqzJ8bZmP+5d6XwbZ6OxOXL1vveqx0fMpccw0dDthj5PAbTXJPqRGx X-Received: by 2002:a17:906:4fd5:b0:78d:3f36:461 with SMTP id i21-20020a1709064fd500b0078d3f360461mr1860892ejw.165.1665713077150; Thu, 13 Oct 2022 19:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665713077; cv=none; d=google.com; s=arc-20160816; b=EW5+xiqwngXIDEczIPEO/ezBsR69x/se37XDpFwSKvg2mB5otfHWgbkbCQvWhkvyyF r1YWRS0U/3gGPIoW3vDJkZb0d2QGrXsE9P9mP/svbW8sNuYPwDkOJbOXPRvmXt9VLkj2 Dc0RZdQYlOpXc9F3kGrXb8nfTOSIdLzNvPpH5OB1OoMYKHzE6RC64qaVu9UQbQhe2hKK UU1Uy4bwQ+R6kP3d12As3zUqZViLLg1yig9+rzfVwagdXNU6b46c7TnSvdmO7q+UgLa9 mzQtrjKA972dCrBp3IFbGilQkURPR+WaQSa8ayhwb07O0kb7t33f1BcVtQwCEAyrmOAi TRcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vzGAAxg7wi4p7fFrrSWFMhtzXKGAr3EQIrXicVeXBS4=; b=XSxXzeAR+oI5kf+KZoX8y2HNoRSCEgbd2KDN22INxVawiREa4kL8kRJOFBQJUU58qZ ytPLBkEZm6rhNg/nYL+wpn+Q3YX71aRQnWggCr60TtFNSnHaoQcwXkHeR1MyhgGuDHTn jHuB/k6VUybcqCGHfmoTSKxO4LvcmkaPOEN6ydW2EVvW8ivFi+3QcQR7UhHHsRlAYFz4 4/iJv5ecIOV+JufDhDGbRVrANN+aA0g2f85+hE6Kmx/+VFW2vDUM4zcBU8gtf09QImjd PobNMCuWWQpttBQhySYF3SHk9TbkoZLO1v6hyIUNNDWnVXmsmly4UrVgcZMVKZXeNOcy 4elQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020a170906145900b0073d9f16e5b3si1129765ejc.258.2022.10.13.19.04.09; Thu, 13 Oct 2022 19:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbiJNCAr (ORCPT + 99 others); Thu, 13 Oct 2022 22:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJNCAq (ORCPT ); Thu, 13 Oct 2022 22:00:46 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0F1E7CE30 for ; Thu, 13 Oct 2022 19:00:44 -0700 (PDT) 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746626755364769364?= X-GMAIL-MSGID: =?utf-8?q?1746626755364769364?= 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(-)