From patchwork Thu Jan 21 05:31:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinyang He X-Patchwork-Id: 12034725 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16284C433E0 for ; Thu, 21 Jan 2021 05:44:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C1B3923788 for ; Thu, 21 Jan 2021 05:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726698AbhAUFng (ORCPT ); Thu, 21 Jan 2021 00:43:36 -0500 Received: from mail.loongson.cn ([114.242.206.163]:47434 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726765AbhAUFcn (ORCPT ); Thu, 21 Jan 2021 00:32:43 -0500 Received: from loongson.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxeL7GEQlgHXEIAA--.13206S2; Thu, 21 Jan 2021 13:31:51 +0800 (CST) From: Jinyang He To: Thomas Bogendoerfer Cc: Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Burton , Jun-Ru Chang Subject: [PATCH v2 0/4] MIPS: process: Some fixes and improvements about get_frame_info() Date: Thu, 21 Jan 2021 13:31:34 +0800 Message-Id: <1611207098-11381-1-git-send-email-hejinyang@loongson.cn> X-Mailer: git-send-email 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UUI43ZEXa7IU5LZ2DUUUUU== X-CM-SenderInfo: pkhmx0p1dqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Not familiar with microMIPS. Not test on microMIPS. Changelog v2: - Thanks to Thomas for suggesting that remove and sort header includes. [PATCH 1/4] for details. - Thanks to Jiaxun for test v1 and told me it stuck at loading init. I mistakenly thought that r_format.rs and pool32a_format.rs are the same. See [PATCH 4/4] for details. Jinyang He (4): MIPS: process: Remove unnecessary headers inclusion MIPS: microMIPS: Fix the judgment of mm_jr16_op and mm_jalr_op MIPS: Fix get_frame_info() handing of function size MIPS: Add is_jr_ra_ins() to end the loop early arch/mips/kernel/process.c | 87 ++++++++++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 37 deletions(-)