From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82EE4349CDF for ; Sun, 16 Aug 2026 07:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786863668; cv=none; b=UumSShJqBPegNprSiMSl93SlG+y5zzeGYi8trKxqnNTfaYHaUPqiVzVXJ4KqKRSRf7zMyN+9PhAR8R6ALmhI+jY3xBYeFPl0TuD6ecsPZ4LILr/GMDiTMywR/igJ5fpsFD2DHezpFbWypjl2O16HZZGztcsubp9h9Xy9FLN/qGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786863668; c=relaxed/simple; bh=KnYLPM6e6fCoQKIc0XgzID4C/BO5rLBlBrg06RPyPTg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oEBaqnyBCYQIYtNrgxYyclgx2NEzRBhHwCIWJJUHR2hDKq5XSJLT7Ux1TwsVqADBlBpBSYq0XM3NW+euZ7T0vd1dO5Xa5Iu9zNUFeyIJxEnLaZ9aRgqiDB99864JrpazHdhAhwlyp/9czjEib2ijV1dcsJ0GNW/srHsFTi79kFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a/qZzLek; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a/qZzLek" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26DF81F00A3A; Sun, 16 Aug 2026 07:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786863667; bh=4UTcja3qkQaBcJbDA3wKGz+X1tVOnwXVEanKk8tH76s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=a/qZzLek3LA2KYN8J3cNK4mfzniQaCkmnd5sixczVuK9lNKuWCgJYvjIQzmJ3pHCn RCqiohQiDp2YnD4dcoTN9mwTwzcSE+0M78CvexNM4BR4Y+ZA6oLTULXCAt4oJzyCv6 10ETy9jt3X5HCgG8l5UJlb3zYqmDe4fUhR3PfxFX/QsuWLdJk6LSWuJ7E+bmTXO1E0 dTO9SA/k6xpTggKkMQG9FJXLPoN2bF6eYbp1nkhcGMQpiQITpyeZV8Kz8vNGEDPozQ GVrGklR/XnkrwNBJV/J75W6LUKojY3Fhtq2oI80swPuFmHObp00uObUlkXGOIkRBqp wXlEJvPYcQTGQ== From: Guo Ren To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: palmer@dabbelt.com, pjw@kernel.org, aou@eecs.berkeley.edu, alex@ghiti.fr, tglx@kernel.org, daniel.lezcano@kernel.org, anup@brainfault.org, hui.wang@canonical.com, samuel.holland@sifive.com, "GUO Ren (XuanTie)" Subject: [PATCH 1/5] riscv: smp: Move enum ipi_message_type to asm/smp.h Date: Sun, 16 Aug 2026 07:00:45 +0000 Message-ID: <20260816070049.2097442-2-guoren@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260816070049.2097442-1-guoren@kernel.org> References: <20260816070049.2097442-1-guoren@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "GUO Ren (XuanTie)" The IPI message type enumeration (and therefore IPI_MAX) is currently private to arch/riscv/kernel/smp.c. Several IPI providers need to know the exact number of IPIs that the architecture requires, so move the enum into the public header. This is a pure code movement with no functional change. Signed-off-by: GUO Ren (XuanTie) --- arch/riscv/include/asm/smp.h | 12 ++++++++++++ arch/riscv/kernel/smp.c | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/riscv/include/asm/smp.h b/arch/riscv/include/asm/smp.h index 0ecc67641b09..bed39fff1f8a 100644 --- a/arch/riscv/include/asm/smp.h +++ b/arch/riscv/include/asm/smp.h @@ -15,6 +15,18 @@ struct seq_file; extern unsigned long boot_cpu_hartid; +enum ipi_message_type { + IPI_RESCHEDULE, + IPI_CALL_FUNC, + IPI_CPU_STOP, + IPI_CPU_CRASH_STOP, + IPI_IRQ_WORK, + IPI_TIMER, + IPI_CPU_BACKTRACE, + IPI_KGDB_ROUNDUP, + IPI_MAX +}; + #ifdef CONFIG_SMP #include diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index fa66f9c97d74..8930b62b15e7 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -28,18 +28,6 @@ #include #include -enum ipi_message_type { - IPI_RESCHEDULE, - IPI_CALL_FUNC, - IPI_CPU_STOP, - IPI_CPU_CRASH_STOP, - IPI_IRQ_WORK, - IPI_TIMER, - IPI_CPU_BACKTRACE, - IPI_KGDB_ROUNDUP, - IPI_MAX -}; - static const char * const ipi_names[] = { [IPI_RESCHEDULE] = "Rescheduling interrupts", [IPI_CALL_FUNC] = "Function call interrupts", -- 2.43.0