From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.mindbit.ro (xs1.mindbit.ro [80.86.107.70]) (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 E395D13790B for ; Mon, 17 Aug 2026 14:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.86.107.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786976558; cv=none; b=cJe62laH03lHrOLax/qTTgJKWUGlar1R4PKUymrJBptW58uaLEKZFrUG/n0S2InxGuWX4wsLdjO20v/8E2Q9OdPYf3LfG1IwuZm12TB0YDluPwD/94DZD0P1rEdwY6Zv2dGIVDaT232GlwM48OkUKaQaARVtonsYhEPQsnLP2ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786976558; c=relaxed/simple; bh=G+aKbmhaHP0NGgFdkqNr90LQKYfMRLEOgHSkwLUeOX0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=ha67fW9evj2o/txjIslu58ehvK/DeNyb7p/yN9aZaomyWFejnZigf8MoeIMXAKGMCYOV4qDtgHbCirtvaEYvVN4rTlL/z5JFMLgMowzDSpK/bs0YTayravRe9gVDktXVnK39++Da28GuG631Mww/eD2D7CsxJeEfEq9HOd8QBFY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rendec.net; spf=pass smtp.mailfrom=rendec.net; dkim=pass (2048-bit key) header.d=rendec.net header.i=@rendec.net header.b=NHP3Hkzv; arc=none smtp.client-ip=80.86.107.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rendec.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rendec.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rendec.net header.i=@rendec.net header.b="NHP3Hkzv" Received: from bat.kanata.rendec.net (unknown [72.143.213.121]) by mail.mindbit.ro (Postfix) with ESMTPSA id A6D7DC2DC3; Mon, 17 Aug 2026 17:22:26 +0300 (EEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.mindbit.ro A6D7DC2DC3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendec.net; s=default; t=1786976552; bh=x870GT5Ttl54hOQSXtF0U2TrjP06S5Unm7xPT+iv8sY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=NHP3Hkzv3KLtoD51h0fVopqZjUy59iLvZIfmxkLYllog3zGe5FM5xP4nTkwMCWEAt D38MpEPfKKMY/ButVIL6fjF2wT4ywuwjicSebga6jWW6rr89mXxk6lYsINCLGMHEcR ZSmrNRJAiBGrd+G8ytcerFwKiZQk5bv8KVQn7W1AKcHCE4b1iGtOnTLxeOpufifV/b w5AFd5RSQ4FTZp0bZeh1exz3sd/RCDg1sP0PmjOTkoGebzhJ0ZgtNhyMWf+zx5v+1d c/Vlw8l5/Gl0kKP1bUEKL2VhI7kz3xi/pN4iBVMKJmy9E1nZEiN4Sie4Kswh9tvBkw GfQkWOg+NV6JQ== Message-ID: Subject: Re: [PATCH 1/5] riscv: smp: Move enum ipi_message_type to asm/smp.h From: Radu Rendec To: Guo Ren , 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 Date: Mon, 17 Aug 2026 10:22:20 -0400 In-Reply-To: <20260816070049.2097442-2-guoren@kernel.org> References: <20260816070049.2097442-1-guoren@kernel.org> <20260816070049.2097442-2-guoren@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sun, 2026-08-16 at 07:00 +0000, Guo Ren wrote: > From: "GUO Ren (XuanTie)" >=20 > The IPI message type enumeration (and therefore IPI_MAX) is currently > private to arch/riscv/kernel/smp.c.=C2=A0 Several IPI providers need to k= now > the exact number of IPIs that the architecture requires, so move the > enum into the public header. >=20 > This is a pure code movement with no functional change. >=20 > Signed-off-by: GUO Ren (XuanTie) > --- > =C2=A0arch/riscv/include/asm/smp.h | 12 ++++++++++++ > =C2=A0arch/riscv/kernel/smp.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 12 --------= ---- > =C2=A02 files changed, 12 insertions(+), 12 deletions(-) >=20 > 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 @@ > =C2=A0struct seq_file; > =C2=A0extern unsigned long boot_cpu_hartid; > =C2=A0 > +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 > +}; > + > =C2=A0#ifdef CONFIG_SMP > =C2=A0 > =C2=A0#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 @@ > =C2=A0#include > =C2=A0#include > =C2=A0 > -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 > -}; > - > =C2=A0static const char * const ipi_names[] =3D { > =C2=A0 [IPI_RESCHEDULE] =3D "Rescheduling interrupts", > =C2=A0 [IPI_CALL_FUNC] =3D "Function call interrupts", Reviewed-by: Radu Rendec