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 C1559349CDF for ; Sun, 16 Aug 2026 07:01:21 +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=1786863682; cv=none; b=OCau56/g9hysXF1N+3+H8pnCgNGXO0yNfeKFG0oP4GIe3mRF1Y2igZPOMh1VjdhJ++RviepfCvQEEDwsnTR5s2vfWxAGZy8wCdK6lpzF6o/vgpGWBAL9d1/PUsH06Elar8gcAzjWsVq2DQRhkhAFM3Rvjo/jM5vCJ0Khwbdt9q4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786863682; c=relaxed/simple; bh=QSRGQ1iG7+gwazbcPiOB4YhtjqfYeKSjaWJ1RPzk01Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fIAhdEfLeeCeImzZMN6tQfedSQ9lveUcWaOLQivXCOHtzyjmmyEJ9POuouq+oCyU+VSEMElShB6qqE8K+G5sEDWkjqHDK+gny3WsfaRFou2HMRFz9mZAo+23tYue/Wthu+c5LXGmBbz2BBb+jnmms7SCA0WHtvunLO8Bi8/J5nA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KKcb1R+X; 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="KKcb1R+X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4D681F000E9; Sun, 16 Aug 2026 07:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786863681; bh=LlOcdIlR/UGWGcEjF0DyvDvYmc+/0am7NsuqSYJwMus=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KKcb1R+Xwd4GvUUSNnuZzdkD3oUAdGwfW8N+3N3NxtTn1PnvshNzfZNLmACHZcQkJ /H7iN29zcbP/2ZseOjXPbB4VANCJQ+dMjtpGAg7910jHP8Xew/fo0wyCS4jzi2E0aI ezKKUmep86SPUxBUR5tDFwLkasA65HL3Op7496gyJZ6zOjT9uGl/MFr+F0CXzr8Z61 5zi4CuBS9O9LLtMLr5y4UByw6qioMeHATuqONMecsAARzBtSDmW8M5TCzlRF1WyATd gZ3NdT8Vnc1vndK01nlASHAfbhkdYYyxXlGZCyavBFv7+J21mAPuKJmeeZ2TYoJY5f NHLhU3cN2s4bw== 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 4/5] irqchip/aclint-sswi: Use IPI_MAX for IPI muxing Date: Sun, 16 Aug 2026 07:00:48 +0000 Message-ID: <20260816070049.2097442-5-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)" Replace the hard-coded BITS_PER_BYTE with IPI_MAX now that the constant is exported from riscv asm/smp.h. Signed-off-by: GUO Ren (XuanTie) --- drivers/irqchip/irq-aclint-sswi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-aclint-sswi.c b/drivers/irqchip/irq-aclint-sswi.c index ca06efd86fa1..5e010fc401f7 100644 --- a/drivers/irqchip/irq-aclint-sswi.c +++ b/drivers/irqchip/irq-aclint-sswi.c @@ -138,7 +138,7 @@ static int __init aclint_sswi_probe(struct fwnode_handle *fwnode) } /* Register SSWI irq and handler */ - virq = ipi_mux_create(BITS_PER_BYTE, aclint_sswi_ipi_send); + virq = ipi_mux_create(IPI_MAX, aclint_sswi_ipi_send); if (virq <= 0) { pr_err("unable to create muxed IPIs\n"); irq_dispose_mapping(sswi_ipi_virq); @@ -152,7 +152,7 @@ static int __init aclint_sswi_probe(struct fwnode_handle *fwnode) aclint_sswi_starting_cpu, aclint_sswi_dying_cpu); - riscv_ipi_set_virq_range(virq, BITS_PER_BYTE); + riscv_ipi_set_virq_range(virq, IPI_MAX); return 0; } -- 2.43.0