Message ID | 20241008094141.549248-3-zhangchunyan@iscas.ac.cn (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7AC1CEF147 for <linux-mm@archiver.kernel.org>; Tue, 8 Oct 2024 09:42:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 74BA86B0085; Tue, 8 Oct 2024 05:42:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6ACD66B008A; Tue, 8 Oct 2024 05:42:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 574666B008C; Tue, 8 Oct 2024 05:42:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 38A1F6B0085 for <linux-mm@kvack.org>; Tue, 8 Oct 2024 05:42:05 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4160816118D for <linux-mm@kvack.org>; Tue, 8 Oct 2024 09:42:04 +0000 (UTC) X-FDA: 82649943768.12.8FB6A70 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf20.hostedemail.com (Postfix) with ESMTP id 83B2D1C0010 for <linux-mm@kvack.org>; Tue, 8 Oct 2024 09:42:02 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf20.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728380480; a=rsa-sha256; cv=none; b=w7j3kx3xP51WfyGIId9DpceSd8ezMxZMDryyoKkefcLlOHvDJ86ceaBVMwfU5gQYauS6LH 4eMrvE/RtyAsFdMjHx2YvUUBagUzzvLMCS+j/+jKsFRkrIVuIPO9WTo5a2stez+7C7bycv P0XPzNDPopKiPli6GN4MWsDVCZh14AQ= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf20.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728380480; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D4HcPVudyyUgXLTK3uP8ayi7qpbGjKm8UJQLGLyEinY=; b=V70X33K1hm8LtnY+RNuvTyS4Ki8bMA2409p9Uls8RpZzKTiQrggjSuBDbN1Oi46ON641Rg HmJQiMj7VZEmeJ0wHQUW8vbVsRK+BpaJz/VFnSd23oaGoZW9dp1ag79LRc895qTU6BPMPI vU7tvBNArKJ4TwI7/OCr/NdlYsU1gzk= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAAH7nxf_gRnEkoDBQ--.54511S4; Tue, 08 Oct 2024 17:41:52 +0800 (CST) From: Chunyan Zhang <zhangchunyan@iscas.ac.cn> To: Palmer Dabbelt <palmer@dabbelt.com>, Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org>, Paul Walmsley <paul.walmsley@sifive.com> Cc: Alexandre Ghiti <alex@ghiti.fr>, Charlie Jenkins <charlie@rivosinc.com>, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang <zhang.lyra@gmail.com> Subject: [PATCH V2 2/4] riscv: Remove duplicated GET_RM Date: Tue, 8 Oct 2024 17:41:39 +0800 Message-Id: <20241008094141.549248-3-zhangchunyan@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241008094141.549248-1-zhangchunyan@iscas.ac.cn> References: <20241008094141.549248-1-zhangchunyan@iscas.ac.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowAAH7nxf_gRnEkoDBQ--.54511S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Wr1kZrW7Gw13WrW8GFW7Arb_yoWDGFb_Ar 1xCaykWr93Ca1FvF98AanYkF1Yk3y8tFWfC3WSgry8KryjqrWYkrsxK3y5twn8Gr4rG3s7 urn7Xrnaqw4jgjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb9kYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7 IE14v26r15M28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kIII0Yj41l84x0c7CE w4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6x kF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv 6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c 02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8JVWxJwAm72CE 4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7 CjxVAaw2AFwI0_Jw0_GFylc2xSY4AK67AK6r4fMxAIw28IcxkI7VAKI48JMxC20s026xCa FVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j 6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUv cSsGvfC2KfnxnUUI43ZEXa7IU0bo7JUUUUU== X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiBgsEB2cExcT2pgAAs8 X-Rspam-User: X-Rspamd-Queue-Id: 83B2D1C0010 X-Rspamd-Server: rspam01 X-Stat-Signature: edwaog8x7tu9hpm33co3ojkk374d3p4o X-HE-Tag: 1728380522-633808 X-HE-Meta: U2FsdGVkX19yZzYkFUjYNeuC84NwxqDaZZpgllOpyqR+jXAh3Pao1ccl8slQByvFckqm6NDLThgBtGCUtPNE+99e522qkLUWVQ/WGqrGJSzdxOHaN1vaw+MHX/6+s8VgAF9jiwJ0ZX17Yf//ntFWp/M1cFtGysUMOlW5Swgk3s9PPPTWJ7LYwtHMbfFRN9dLJ+sP33UdSCa17JtwZEBMtBbL3shHSTix3Txdz9TYjFSuJQ6CA31ynNx65bOwJr/+gKmjh5LDLFHCCqno6G3h8hIuQjTac84I7jq6NW1FduE/eulTle4ihBp83sgdz4vHyhPPwrp0ASyiV7jOpc71BlD6YfsbSI1o3sb4thY6SZwc7E3PTy3KDU4Efx/oaSQ/U/51Zu6IXDZMPChX3i6TfSjJsnLGkXtsfxpp5Ev2SOwagTzNOJpY1C453DeoJjjUWF7zDzddF9Lnd/QaJJRQx3NeHgoLwzhiIyn1Jlb24U/iCJp7Ay84nRVaaUOYqEXelCJHY6kAk7npuaFZl6csVa6lyQ3qti1SMtTtUqYDOfx53gQbZdFF9eNtNHEAyzv+Ok5nhSVFn+IFsVbzTCvHFUMdPilp1y8h40RR3EkfAh+gOYYm2vlWOUrvWvjvJSOG7MWB2nAggCoD95MO5EW4ILZ8tM9AEDpt66YO5H2redxERrYPr6YYxB5fxEvVcCsUeC+SVY5kESHrEhm07dOEFqdoYnNvv0aGP+CdBTON5UYvzHPIR4K7zQ/29LSgqmoKQyknHBylBX1IJ6ToUkFqvPnAmFByNiY+WW28Pgu2J7U+L6L3KO6XHFkRPRPFSr403rL5GhI8zC8E6KPBzKnJvAJGJAFQZLz2pJx3aepk11iYC2bV4RjxPtLAJGK2aknriDWxgo+KEzfMlazGjG1OrrqJQX4Nso8olTkn3C/fQjalh6oBHd+zFSWFsaOIxKw/53GLS5DSlv2A5fZpl1B 0maGZyqa NOi+WsUQkxq3sS4R2dfRd7ALecn6XjChMlWacqIuyh5sq72k/gvitzstDG52i82e6eyHti9MTru7avG6QgyBEY5YlNqFdI/GnnVht+QXhPVosI7IbD2UcRbER5xVT6imIrXY95ovfiR39ogmsRQIO5UdxG5v6KeZvNidH2PyfnMAy1lhXkM4ixYYkLPdmb48mUFV22A0AG/DKbjvv96+1mYvQ97oSr14Thrq2ZjTLK6A0yLcYsdtNJ2fsvgUanj3uzCFuz4JXQnq+FGZ8n2zGWqcDfqYCs+/Y5JDoLsi/sS64ALflp4asP/YLOBvrNnQ1F4Y8WLo1CPw0mgd5RwyDWFzQsaMYtBAqV+kZ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series | A few fixes for RISC-V | expand |
diff --git a/arch/riscv/kernel/traps_misaligned.c b/arch/riscv/kernel/traps_misaligned.c index d4fd8af7aaf5..1b9867136b61 100644 --- a/arch/riscv/kernel/traps_misaligned.c +++ b/arch/riscv/kernel/traps_misaligned.c @@ -136,8 +136,6 @@ #define REG_PTR(insn, pos, regs) \ (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos)) -#define GET_RM(insn) (((insn) >> 12) & 7) - #define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs)) #define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs)) #define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))