Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12110999rwb; Sat, 26 Nov 2022 04:43:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sfLxlBW79qL7E7b7bBBDtyNowRPOsBUgFOY4yWR0BF2IfIfg+W1+kepHdZQbVWJKk3GmZ X-Received: by 2002:a17:90b:46ca:b0:212:ce2d:9fd7 with SMTP id jx10-20020a17090b46ca00b00212ce2d9fd7mr45981873pjb.157.1669466591963; Sat, 26 Nov 2022 04:43:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669466591; cv=none; d=google.com; s=arc-20160816; b=im6CdUXTRZKI4AlTUPhImU9zhHz2XHi1SFlEYiG1vJoBCU6/iTzDeSdMIgw5rw9W6c ZAmrNSo73NPzoBDy1rSgxGVj2Tnqvy1//uEnQLWN8oZamag0R9MYbP3QdRoNjL+l0u9z fZi6x8wZCPo7cYcaFvHvM0c5GxfEUNSO0OYRbU+5yWqwTATDj3uCer/8fpxR/16ca1I/ +fu3XBGnUv0nc39RLHHWwGfh2Es+oYp+pwrJL9X4mFUjkn0wL+Fza0K3XpZIRu/XdGo9 FxMLHOkj5kYE84eEn0Way7eM9C6fkkt6n10R+aiPszhNv8VJpOT5vvQ7inUnWHOW7V3S bGtg== 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=sVkVVvYV8YjHryHcSirye3UD6rVmsZaQKk67h11KpXI=; b=b+2KbYUNhS6zF2KQ4LBt8N/JeCy8G/8P6szgGLO9lGRIVugdu8r8HnxnX/hoUmq9c9 8vdNubADL7TGOR1DO/19kut99XNlX0DL+1nIwmGCryhX4STJWjdHDxZdCD2wpIYdkcFp KcacL1XiC0S6jEh85X0QMbSSlqa6MPG5+8J2sQ37Sj8+FsQQWrjEcZgNP6f124Jw+tDZ 8IwHHVHl6ApnYlFlXtk7PdXisFsZfJNjfyhF8vyJYzMzBgUisnQKihjS3K7FXqxTTUkx u4wPMQcCAl4QWce49dnoKY43YqhqZwGv/Tr1C/o9w1UF9fREVIONsfNCqYRWbFt+uNy4 t/ag== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170903230100b00179ec1d9eb4si7565325plh.112.2022.11.26.04.43.00; Sat, 26 Nov 2022 04:43:11 -0800 (PST) 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 S229599AbiKZM3Q (ORCPT + 84 others); Sat, 26 Nov 2022 07:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiKZM3P (ORCPT ); Sat, 26 Nov 2022 07:29:15 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 097BD1CB1F for ; Sat, 26 Nov 2022 04:29:13 -0800 (PST) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NK9xv51YBzmW0N; Sat, 26 Nov 2022 20:28:35 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 26 Nov 2022 20:29:11 +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; Sat, 26 Nov 2022 20:29:10 +0800 From: Zhen Lei To: Russell King , Ard Biesheuvel , , CC: Zhen Lei Subject: [PATCH v4 0/2] ARM: Make the dumped instructions are consistent with the disassembled ones Date: Sat, 26 Nov 2022 20:21:35 +0800 Message-ID: <20221126122137.2025-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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 v3 --> v4: 1. The sparse warnings that are not involved in the modification are not eliminated. 2. Eliminate the sparse warnings involved in the modification when refactor dump_instr(), no longer use a separate patch. 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 (2): ARM: Refactor dump_instr() ARM: Make the dumped instructions are consistent with the disassembled ones arch/arm/kernel/traps.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) -- 2.25.1