Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp665113rwb; Mon, 26 Sep 2022 04:26:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4A7Dl42y7PCD0cln/Ks/4y2h4rp81ksCH5eMTBWi1bAPYe2iQRDdfKsXE4kzhn43ztAfii X-Received: by 2002:a17:906:a3c2:b0:783:19a2:74d3 with SMTP id ca2-20020a170906a3c200b0078319a274d3mr7380161ejb.288.1664191605115; Mon, 26 Sep 2022 04:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664191605; cv=none; d=google.com; s=arc-20160816; b=lAEVcfP7nD4wNnLbkOAujSpT1kP2aMnJjiEOj9xkW1+0h9eLHUDwNV+mg8aFzFe64N GpMk8tdQ/SJYn2e2xDY+rr+ImwWG6MGyD1Og4jyrWY7ognVcAsBhbcRfyMaSHTfhSD1h Alv5Jin0IYH9bpBGMzA60B8H7kLFHOfThEuPLtVdj1xRmxAXWgkbuAWslDu4myLC9dUs K34bRC73sdM6hF7G4qCCP80/UQCxXcndnwuFCVOrYuSlHKp8jukNDGTBn8OrcU5ccdaB P3paq9z7J+6jl3NQoRKHfxnGZr0VavZerxvd+eG09Qa7Mek5MCrPZ+QG+cpRDMjuLsUu 3jmA== 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=ih+d5lyypUSjUW8g+P6Ay6h+ssZQlIvl+88XF2DHyG0=; b=qvDFtTFEq/wRgNaFcNF2ycLsfzaLBZ/WtMTR+Wbc9WvDagcipJQFzRucvKvh7s5jsW nKwRE4GopyxeUy9kAOtxSH+6ZDBgWCY2aFwEozNekU8oVCEPE5BTFSYwQ8h2NgLi+8q6 E152pkK1v1iKP5Fq4sYMp02hlV6lVTeNgWLx9b7EK9dXaBwOIua/XcoZ2PFoSZihJ6lz tuAYUH5BlaEAvcQtst5/4Xa18ikIw54Pe/fZvJqYzvts5iEOQlr2y/9D7lIsK/HHjhs/ UuSz4xeyVCz/hstScJDxLLdkeFgNOyesX9yOWLfudZxh8UNg5L79HB43ip+BKtzBQ+KW vnyw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he37-20020a1709073da500b00783489338b5si5449819ejc.148.2022.09.26.04.26.18; Mon, 26 Sep 2022 04:26:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234670AbiIZKBp (ORCPT + 99 others); Mon, 26 Sep 2022 06:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234164AbiIZKBg (ORCPT ); Mon, 26 Sep 2022 06:01:36 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19871B3D for ; Mon, 26 Sep 2022 03:01:34 -0700 (PDT) Received: from 4.cn (unknown [10.20.4.148]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx9OF5eDFj4CoiAA--.60647S2; Mon, 26 Sep 2022 18:01:29 +0800 (CST) From: Jun Yi To: Huacai Chen , WANG Xuerui , Tiezhu Yang , Jiaxun Yang , Qing Zhang , Guo Ren , Mao Bibo , Jianmin Lv Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2] LoongArch: Remove useless header branch.h Date: Mon, 26 Sep 2022 18:01:29 +0800 Message-Id: <20220926100129.1907890-1-yijun@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cx9OF5eDFj4CoiAA--.60647S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtF4DGr4rXw48WFW8tw48Xrb_yoW3Wwb_Z3 Wxuw1UWw4rA3yFvw1j9rW5G3WY9ay0vF1Fk3Z2vrZ3Cas8tw15trZ8J3Z8Arn0gFZ5Grs8 Z3yDKrn0kF15tjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbskFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628v n2kIc2xKxwCY02Avz4vE-syl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr 1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE 14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7 IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E 87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73Uj IFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: p1lm30o6or00hjvr0hdfq/1tbiAQABAWMwRN0RYAAAs6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 The content of LoongArch's branch.h is porting from MIPS which includes some functions about delay slot, so inline the definitions and remove the header. Signed-off-by: Jun Yi --- arch/loongarch/kernel/traps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/loongarch/kernel/traps.c b/arch/loongarch/kernel/traps.c index aa1c95aaf595..ec888eda3d45 100644 --- a/arch/loongarch/kernel/traps.c +++ b/arch/loongarch/kernel/traps.c @@ -477,8 +477,6 @@ asmlinkage void noinstr do_ri(struct pt_regs *regs) die_if_kernel("Reserved instruction in kernel code", regs); - compute_return_era(regs); - if (unlikely(get_user(opcode, era) < 0)) { status = SIGSEGV; current->thread.error_code = 1; -- 2.31.1