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