From patchwork Tue Oct 8 09:41:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13826118 Return-Path: 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 7CC96CEF14A for ; Tue, 8 Oct 2024 09:42:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F24066B0089; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EC38C6B008C; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B1C796B0085; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 770336B0088 for ; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id CCE56412AB for ; Tue, 8 Oct 2024 09:42:02 +0000 (UTC) X-FDA: 82649943726.25.61FB6EF Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf17.hostedemail.com (Postfix) with ESMTP id 22C4240007 for ; Tue, 8 Oct 2024 09:42:00 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728380454; 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=P3sDoyri88WlSd+g2RCg7JAq4M25PFOIlBASDXLaxWQ=; b=AYxZtgiUmDeamxnyIqtw0UqVO/r1Mth+IjONGqe/fxYBYCyE+lYAHpRppAiHebxWSCtp9W Nevr2Afhk0sHNAQXIbC8DujR9bAYbVR+JbiWZnd120ygybt7HCmh6Epj6inGW2DEliDzPV o0U3qHX8+U6nXJaH0UmTL46brPB7lLU= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728380454; a=rsa-sha256; cv=none; b=0mVdnoTV4gMNTercucG3+0vB+Ke7nETyFroBGh+Pdm+JSmkVVh8LyIiDa90TpRFvvoAH4a 8a9k6at/9nsG182Gv9UN54YXN5GAoz7DhJzZyF9AJOKAb6xrU0/UmEAJjYiO13VbBSqZlH kV1r8vJJSGvEjNMjJSUlgi6ZskcljE8= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAAH7nxf_gRnEkoDBQ--.54511S3; Tue, 08 Oct 2024 17:41:52 +0800 (CST) From: Chunyan Zhang To: Palmer Dabbelt , Andrew Morton , Shuah Khan , Paul Walmsley Cc: Alexandre Ghiti , Charlie Jenkins , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: [PATCH V2 1/4] riscv: Remove unused GENERATING_ASM_OFFSETS Date: Tue, 8 Oct 2024 17:41:38 +0800 Message-Id: <20241008094141.549248-2-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 X-CM-TRANSID: qwCowAAH7nxf_gRnEkoDBQ--.54511S3 X-Coremail-Antispam: 1UD129KBjvdXoW7XFW5Cr1xXF47KFy7Zr4DXFb_yoWkZrb_Cw 4xWas8GryrJF4F9ay7Awn3KFs0yw1rtFyFqF4fCF95uFnIvry0kws3t3Z5Jwn7Gr17Ja93 Aa97JFZIvr1j9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb9kYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Xr0_Wr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7 IE14v26r18M28IrcIa0xkI8VCY1x0267AKxVW8JVW5JwA2ocxC64kIII0Yj41l84x0c7CE w4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6x kF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv 6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c 02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8JVWxJwAm72CE 4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7 CjxVAaw2AFwI0_Jw0_GFylc2xSY4AK67AK6r4fMxAIw28IcxkI7VAKI48JMxC20s026xCa FVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j 6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUv cSsGvfC2KfnxnUUI43ZEXa7IU0AsqJUUUUU== X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiBwwEB2cExpL0xAAAsP X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 22C4240007 X-Stat-Signature: 9ugpbaz9xidyryf916a6ws3nkyk5hfbf X-HE-Tag: 1728380520-456332 X-HE-Meta: U2FsdGVkX19FQ70GSwfNYUm9N2tzVXlwtF+LeD2fjzlyIwkn5gLEmOWYYKGGittB3K76s+Co6i5K8emuXukoP/Nd51B2MSIw56V1HVjuxIRelkBSooUGAEpyt90yW/w8C5qIj6IDYQejJoM4lNSBTcVATgd4Pbc32v723msCQu1atX6pi0xWXDFxBqWX4z8eHMurne1gmyfY81isxMdmJLDJnYZKXRj1XB4nYcddtlzvoBnselky3uoW17onMtFUnJ4+Bm7hcuRzSpRXVfAmwVeWLiVmwOGB3Vj4hjjjiD/qXLbzN+fs/4p4oGySZJOkkjT1iMGwgmAkp7J3W60XvJIBUeSiH3x0Jr9UhQOHR4RldhN8rcPN0em4t42bTWRii87Q3wg8x5uKJY5mlIe6eyqQkfWYhXDZcTekifcPSmg0+KmlQA0ssEHoy/XCAkVHHoLolPiOS0mS+yNPrOcyDe+xrnB7UiX0LTdkzDxSqa7E70/KMk6jviqOLL/7g8EwllPDp9jVoTajCcmZ4SieWK/WlxTHx1xkvmPpNq7EtDdBzaH3e7Q2ItEF268jNlo/lfwI5kTnn+WUbpOYLJcbvoVI4jCb1MalifdG+d+VEB2LXpjD3QTFZtfodKER69nsjfXDw9W4RANWBuoiioHSQKC24lEB6RMNw/X05FQa2KOf/VhTQkBfi3Oo+61DaMM8757LsISe76IEv6oDCMHvLjdkM+/kTOPBsT1K8mp9YexhC846ymStOLufuLNhFUFJr0avYeuo2Em3rZIBltXoV/TnJtqR0EMIG/j5fZJJuaqV5OTDZALxmJq84oynQfcAwtiTFrxTN773ZBwiuUaJOemYFHntUwz2JO7KrBIPn7+19+noxMRTWiYN/Mon9rz/ZkS45eeLnHW6Uwr0/n71vwlm8waB+7KNxVccCorvR1kZD4Y47MwPQKilCXHC+kmt0MsGXmKVbW2dVu8ldMp m5OjbLEh TYDK7vMlExbWSaZnVPW/TB63PNFGc8hW6zmKXVecMhSHOsLHYnqwYqNbnLwyiEQYHkoU1cBr4f405VHI0ZYNvCqrGuf6Oro7sU9hiPduxuOlKrpiYsIQa1z6FDNZeweh7biIJC7gHlAs41WxpmeIsoIjcW/frLtg5KdyVJSiW00vwYehRH7F33yO1r/fqfGFMV9zOGor9A0ShdjWeJ61LXdo07qQG9ef/Mnx84y2uEs2kO9FM5v5dOEXOkTccvA22F/RTbvpgtUmkJmU+CwShmav/LjwW+izQdgDv0yniMpZKv+JDZQWuUhxo7nA5pXlpFqNvnogW00ZLt9Roeeui3jCHTaghjSyXFQEx 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: List-Subscribe: List-Unsubscribe: The macro is not used in the current version of kernel, it looks like can be removed to avoid a build warning: ../arch/riscv/kernel/asm-offsets.c: At top level: ../arch/riscv/kernel/asm-offsets.c:7: warning: macro "GENERATING_ASM_OFFSETS" is not used [-Wunused-macros] 7 | #define GENERATING_ASM_OFFSETS Fixes: 9639a44394b9 ("RISC-V: Provide a cleaner raw_smp_processor_id()") Reviewed-by: Alexandre Ghiti Tested-by: Alexandre Ghiti Signed-off-by: Chunyan Zhang --- V1: https://lore.kernel.org/lkml/20240816101912.1049329-1-zhangchunyan@iscas.ac.cn/T/ --- arch/riscv/kernel/asm-offsets.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/riscv/kernel/asm-offsets.c b/arch/riscv/kernel/asm-offsets.c index e94180ba432f..c2f3129a8e5c 100644 --- a/arch/riscv/kernel/asm-offsets.c +++ b/arch/riscv/kernel/asm-offsets.c @@ -4,8 +4,6 @@ * Copyright (C) 2017 SiFive */ -#define GENERATING_ASM_OFFSETS - #include #include #include From patchwork Tue Oct 8 09:41:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13826119 Return-Path: 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 ; 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 ; 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 ; 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 ; 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 To: Palmer Dabbelt , Andrew Morton , Shuah Khan , Paul Walmsley Cc: Alexandre Ghiti , Charlie Jenkins , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang 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 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: List-Subscribe: List-Unsubscribe: The macro GET_RM defined twice in this file, one can be removed. Reviewed-by: Alexandre Ghiti Signed-off-by: Chunyan Zhang --- V1: https://lore.kernel.org/lkml/20240909095557.446745-1-zhangchunyan@iscas.ac.cn/T/ --- arch/riscv/kernel/traps_misaligned.c | 2 -- 1 file changed, 2 deletions(-) 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)) From patchwork Tue Oct 8 09:41:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13826117 Return-Path: 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 524BDCEF149 for ; Tue, 8 Oct 2024 09:42:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D41976B0088; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CA8CE6B0089; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A080B6B008C; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5D0A06B0085 for ; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 84CB11A1AC4 for ; Tue, 8 Oct 2024 09:42:02 +0000 (UTC) X-FDA: 82649943768.24.A5A4922 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf28.hostedemail.com (Postfix) with ESMTP id CE09CC001B for ; Tue, 8 Oct 2024 09:42:00 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728380453; a=rsa-sha256; cv=none; b=phXJp5Mf66xD4gUyFFkNn0GG7CioyD/jB8DA7bQv0LGrNNj9pfh7ACKwDEIdO1DekJYc1s +PSscjeMya4OO77o3Lp6C2T+gIcCoVMZ1FM88/3MCEKUL9O/x734cjifOU373FdL3Ol0WM Vj1HLiUFSEZTlZsOieTcO6WVsBRcqQM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728380453; 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=kKq38tJdIyE97qlA8Mh3eI3UDwxYmYHFZDs5JIEzmQ4=; b=INuLQL+5KtrrgRaN7tjLgfo4WOexWBqeZK6xtgzcshC0M7ksRaeQhdbM4zAa/XHKYR7B7N v8QEFJbp+gbRwzSZVBtPsgrWiXXQ/kKddPWNwLDP+DdzcsWTHA/H+J4RL8FLLL/Hfbh+IA 0OABJSZQMun0mhpVv0j9faLsGscHuM0= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAAH7nxf_gRnEkoDBQ--.54511S5; Tue, 08 Oct 2024 17:41:52 +0800 (CST) From: Chunyan Zhang To: Palmer Dabbelt , Andrew Morton , Shuah Khan , Paul Walmsley Cc: Alexandre Ghiti , Charlie Jenkins , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: [PATCH V2 3/4] selftest/mm: Fix typo in virtual_address_range Date: Tue, 8 Oct 2024 17:41:40 +0800 Message-Id: <20241008094141.549248-4-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 X-CM-TRANSID: qwCowAAH7nxf_gRnEkoDBQ--.54511S5 X-Coremail-Antispam: 1UD129KBjvdXoWrtr18Jry7CFWktr1UGF1xKrg_yoWkArX_Xa 1xtw1xArWDCF1Y9r1rJF1rur4kC3W5WFs7Gr1SqrWfJryUZF4fGFnY9r1kAF1furs8GFW2 yFZxJFZ3Cr45ujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb9kYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7 IE14v26r1rM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kIII0Yj41l84x0c7CE w4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6x kF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv 6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c 02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8JVWxJwAm72CE 4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7 CjxVAaw2AFwI0_Jw0_GFylc2xSY4AK67AK6r4fMxAIw28IcxkI7VAKI48JMxC20s026xCa FVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j 6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUv cSsGvfC2KfnxnUUI43ZEXa7IU0U5r7UUUUU== X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiBwoEB2cExpL0xQAAsI X-Stat-Signature: nbeoc1wmrq9h8k8btqts8bg55ej39nsi X-Rspamd-Queue-Id: CE09CC001B X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1728380520-34509 X-HE-Meta: U2FsdGVkX19WAzJLk5H/ozlkmZuLOeM1xAV4rGyFdMorRk01+w7fZGY20osVoMoNUneSDSlA4C0ulg2gsjxOANvhWxE/5LR5cVDdzjHl7IBkxabGA+08CuykvjVEfOLmoRkdcNWu70rdT5/djjVFWhN6RpnmtY7DsQl7uVLnsGNH8awcMmtkWPiMD6oyzHwjpU4zNxMUZ+zhVhhldM7EOrvcPA7xsG4/Jlv3iBmCL3j9r5b+AXSkqNrO5nKEuCHn3SZ4PZEzKNXjphJwEg388xPAc/lXhkFiF+BnyPExAUxe10Ahaz+FAPqgZ3VBoZ3Z/yYLPdlqIyLa80BgTcz0NHre2FN4BXrotFIR0X0ZCKPU8Dxzm4QltDSzFROWJxGsYxyqESSso3j6K5dRGOSa7YkWbaY1DNQsM/d0GyiIVtHSECg0eP7rhybnfwvS/zVAlkzuf650BUmkcqCA5drzo6oY7DMLz84FlSOof/ettzNA6RTrtSQqJwAFtIrtj8YJbckSMTb64qvNH+MTtDwTw0vux2T2Ekg690RpYTLmP7hvCbuVNgsS9Y8KpKJNVpuAZd0wvmPvHpCtJtPpLR/eXsPvMiOHf7IO+4dGtxk2x+0btk88m3V2cnyUuHmBuzJ5a0Yy+FwoTM2NjUcYgg4lQspQek//k+BZsVLmfWXfm33WGSgro2G1iMiLS+9IcJMVBqQC/amDQIWLH1fRl8Jse3g/OKamsT19q4ud+XlcsYYPnWOBsvE8uHhDuoZ0RrDKfeAFkplqmRy5El7U4IJxxvfx/mhiDOkbbfw/oG1/cn/2SxtV3eVlQFcfNcAo46ROVT0A7nhCTqYw1u55a/xBUYWo81KF1ScoLSK+oE1fFCRu57ZmoNFWsIg3f9wqMyf/usuuX/RNxCpV6S+zV7VKzJ9sy/9OD7cu0I3K2/jkXf6E40choDlSpuizgTiGY4je0fgTF+3tUjxhimaYl4V W+wHZWct NzLK7mHCdwOHkjPXCcPTaf7xSDtyr1TQy5l6kcAu7zv5fJngh1K/JAdz0fUaHjt01YtLSOfRcVnERyOwMwoyYfuK/ZqDoClO55okQlvMIUR2mHdc8rm3XmtcHTpqhnghGWt6rMQlStsLShCST+tKIjEf2dgIqnmkxkOazoKog9oMPLpimdk6N3KfZs5Vg4+0ieFMSKn5uPWF5HkLXZMVy6byKyoCrObG4hIAsAz9vM/KSjamXmtaNKdYOTKFsH5E1EK24ofV2jO7+SkiTcFlzmlX5iFyG6gLXgtQKhoP8BnMjOU/HHx1rxrKKYxi7JjWJypjBv7EYTac4b1J88uitjIXOVreAyHfokdBx 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: List-Subscribe: List-Unsubscribe: The function name should be *hint* address, so correct it. Reviewed-by: Charlie Jenkins Signed-off-by: Chunyan Zhang Acked-by: Palmer Dabbelt --- V1: https://lore.kernel.org/linux-mm/ZuOuedBpS7i3T%2Fo0@ghost/T/ --- tools/testing/selftests/mm/virtual_address_range.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/virtual_address_range.c b/tools/testing/selftests/mm/virtual_address_range.c index 4e4c1e311247..2a2b69e91950 100644 --- a/tools/testing/selftests/mm/virtual_address_range.c +++ b/tools/testing/selftests/mm/virtual_address_range.c @@ -64,7 +64,7 @@ #define NR_CHUNKS_HIGH NR_CHUNKS_384TB #endif -static char *hind_addr(void) +static char *hint_addr(void) { int bits = HIGH_ADDR_SHIFT + rand() % (63 - HIGH_ADDR_SHIFT); @@ -185,7 +185,7 @@ int main(int argc, char *argv[]) } for (i = 0; i < NR_CHUNKS_HIGH; i++) { - hint = hind_addr(); + hint = hint_addr(); hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); From patchwork Tue Oct 8 09:41:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13826116 Return-Path: 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 E99A3CEF148 for ; Tue, 8 Oct 2024 09:42:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1C966B0093; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AAA026B008A; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E0FB6B0089; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 457156B0088 for ; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 09A0D121B23 for ; Tue, 8 Oct 2024 09:42:03 +0000 (UTC) X-FDA: 82649943726.23.EC1ECC2 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf11.hostedemail.com (Postfix) with ESMTP id 1C22240013 for ; Tue, 8 Oct 2024 09:42:00 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728380454; 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=RIk/JQ6fSpq0Cr4H3Wg6F/hC04nPsQdCeEtyKlbNqEk=; b=IMP2gvxS5FAVnjuFCp2BW4lhlyun2C1idFsWjtwchgAdHNyQZUraTi4jKrvrD4iKTLJh8a MV67JrT9YqUfxupcG/A6DEqMaY/FfsLzLXNoWOTRbXJCC+jW3mPDEOK3y6qnAqDU95YoWJ 4QTbvabzLm7eBuJpiC8RFh+nmtKuS+Q= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728380454; a=rsa-sha256; cv=none; b=AeSXz12P3bWd5kU5hBkUKA059f2EIdFPhK8Cwe7u9mLip+405RnbGBN6U9PuS0nsCLmEDA LVnIrkXzkbMYqkWEkcZpHUWE8dryp00oo6drT3QDtX0TuCqUrt65hBjduW2Eegva6h2ADk zoQDB8U+A71KbhgFYGTz73Wk3JCTIEI= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAAH7nxf_gRnEkoDBQ--.54511S6; Tue, 08 Oct 2024 17:41:52 +0800 (CST) From: Chunyan Zhang To: Palmer Dabbelt , Andrew Morton , Shuah Khan , Paul Walmsley Cc: Alexandre Ghiti , Charlie Jenkins , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: [PATCH V2 4/4] selftests/mm: skip virtual_address_range tests on riscv Date: Tue, 8 Oct 2024 17:41:41 +0800 Message-Id: <20241008094141.549248-5-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 X-CM-TRANSID: qwCowAAH7nxf_gRnEkoDBQ--.54511S6 X-Coremail-Antispam: 1UD129KBjvJXoW7Ww13Kr13WryrGw1rAr13Jwb_yoW8uw1Dpa 4xA34Yvw10gFy7JF1kWr4DXFW8Ka1kGF48tFy8XryDury3Jry7ur4fKa1Ut3Wa9rWFqw4r Z3WSgasa9a4UJ3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUmKb7Iv0xC_Cr1lb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI 8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJM28C jxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI 8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2 z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0V AKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Gr0_Cr1l Ox8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4IIrI8v6xkF7I0E8cxan2IY04 v7MxkF7I0En4kS14v26r1q6r43MxkIecxEwVAFwVW8uwCF04k20xvY0x0EwIxGrwCFx2Iq xVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r 106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AK xVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcI k0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j 6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUxF4iUUUUU X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiCQ8EB2cExhf1+gAAs4 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 1C22240013 X-Stat-Signature: ktass7ix46daf1bf9agqe8eenrpd3dfi X-HE-Tag: 1728380520-532127 X-HE-Meta: U2FsdGVkX1/JHussOSLTSKW1K4OcfGkP1cJCc12BL87MtxiVuLl0wtvf+GOChhhoaQFBVR1cz3qhsYcwCeB6QTbMKay9PORogOaBcDfGGUMzUYxKDBu01Q00/CeZWIsvS3ZLpcjK3oXlcUVhPpnfYuSdoMxik62aKlTs9gzMUVBDjanPB+hKUoD8Yjg7yOUL6TVsuN1XAolsXs0KMJLBnTdds8Z9pIK4peISL3VaIM5c+xjWq7cjglz/N2Pi6iYgHVTWnkmTRZDDxmlHrlicMu7l2VMGEDf9Y7jgBBjblx6mJ9Eof9MqsO86KFWCNAxQbSNXCQCBvnINtz5ctuZ0ry5cDv1F1WyVFVsFvaIa55aTmigXaIS2m1B1DnsV70lR/5HpGu536RF7Am1VKi4WVSsXHUX3RKnWMYSPpWakJSGGWaZ5FJJ50CdEsFW/cgWTUZzjoDs7EO7HKecGPoiqQdwOuOGqBX8aVPJlrHocb5Jb8devX1V48vQMU87uvMeJzHz0BRaeBVFHa4F7Agzps3UspsNC5Ipho+GbbJLz6SmAB1tPQz9M9K/C521HcI25erbYEMvd5noiw69HHrcJjBGkDSSPYVG3X0j7465yk3w45dhgM8WCL3nvcbageDHWhQsds0MUCTopfu+/zw9KaDTaB21H0YCyKtJwJEudu+RAZ/YcJjtpv2zVer+7XUxrNu3JztpWhLqfVbCyjGIba74WcVUe9Oy4HEiNaiw0sMJvHnUgbu4f0rLwZFWbHAAwJzy5Ui7pVyz1fSq2G+/ziMlsxZwq/RAtqGIO4k8kbaRPN6v/nZVMBbP4oDNgxAgXCKa5z9bqL3eySf37IghGIMHpWPYA+ktOjGBgGi0LC+wdOxIdYHujdCWGgcAM5mluPRKiLMpml7Bu+/k2fx2eB2PmrB37OmtqH7d1/D9muaS7Wq1tvwKiBSj07n7SMOxdfultjAFYSaZ8MBYofvs nDjnubYI 8w8K5sRWxGD5nyjMa7n+8v9DsjbS0U3b+p2HDMyBoLRKa3zTdyU50c8n62Gj30kRg9OAvr6Ng61J/lEW2YvCqTy3+Avr3WxmLpwusVXf7VKlWUFPLa9UtKJkvwI8nRiC4I2AGnBIS+R1oi+QxiovIpitdSJLL9mBmNLsufPPMlWTGmmU3ZQqi0rTf70qO6pshOfi0Ms9ad+5hRcSl0Ungx4sZFXBMH8A3utu+iQ6HNiqDE5TfIfhbUBdvB/Ys8rYczzYQU3nPO6QwVPUH8DxZPSdDVdRKEWtC4OszLXd0Gwt/iAfuAscNw3guyHHZaYtMkx+OBZrxQOEdD2GOXs+YeWz1JB4MA4bLI7A2 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: List-Subscribe: List-Unsubscribe: RISC-V doesn't currently have the behavior of restricting the virtual address space which virtual_address_range tests check, this will cause the tests fail. So lets disable the whole test suite for riscv64 for now, not build it and run_vmtests.sh will skip it if it is not present. Reviewed-by: Charlie Jenkins Signed-off-by: Chunyan Zhang Acked-by: Palmer Dabbelt --- V1: https://lore.kernel.org/linux-mm/ZuOuedBpS7i3T%2Fo0@ghost/T/ --- tools/testing/selftests/mm/Makefile | 2 ++ tools/testing/selftests/mm/run_vmtests.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 02e1204971b0..76a378c5c141 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -115,7 +115,9 @@ endif ifneq (,$(filter $(ARCH),arm64 mips64 parisc64 powerpc riscv64 s390x sparc64 x86_64 s390)) TEST_GEN_FILES += va_high_addr_switch +ifneq ($(ARCH),riscv64) TEST_GEN_FILES += virtual_address_range +endif TEST_GEN_FILES += write_to_hugetlbfs endif diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index c5797ad1d37b..4493bfd1911c 100755 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -347,10 +347,12 @@ if [ $VADDR64 -ne 0 ]; then # allows high virtual address allocation requests independent # of platform's physical memory. - prev_policy=$(cat /proc/sys/vm/overcommit_memory) - echo 1 > /proc/sys/vm/overcommit_memory - CATEGORY="hugevm" run_test ./virtual_address_range - echo $prev_policy > /proc/sys/vm/overcommit_memory + if [ -x ./virtual_address_range ]; then + prev_policy=$(cat /proc/sys/vm/overcommit_memory) + echo 1 > /proc/sys/vm/overcommit_memory + CATEGORY="hugevm" run_test ./virtual_address_range + echo $prev_policy > /proc/sys/vm/overcommit_memory + fi # va high address boundary switch test ARCH_ARM64="arm64"