[tip: irq/core] genirq/matrix, LoongArch: Delete IRQ_MATRIX_BITS leftovers

From: tip-bot2 for Nam Cao

Date: Tue Mar 17 2026 - 06:15:40 EST


The following commit has been merged into the irq/core branch of tip:

Commit-ID: 56c167a0c0fa24aa6eb14c4e81cc4bad1048d651
Gitweb: https://git.kernel.org/tip/56c167a0c0fa24aa6eb14c4e81cc4bad1048d651
Author: Nam Cao <namcao@xxxxxxxxxxxxx>
AuthorDate: Mon, 16 Mar 2026 08:28:50 +01:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 17 Mar 2026 10:57:03 +01:00

genirq/matrix, LoongArch: Delete IRQ_MATRIX_BITS leftovers

Delete IRQ_MATRIX_BITS leftovers after commit 5b98d210ac1e ("genirq/matrix:
Dynamic bitmap allocation") has made IRQ_MATRIX_BITS obsolete.

Signed-off-by: Nam Cao <namcao@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260316072850.467995-1-namcao@xxxxxxxxxxxxx
---
arch/loongarch/include/asm/irq.h | 1 -
kernel/irq/matrix.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/loongarch/include/asm/irq.h b/arch/loongarch/include/asm/irq.h
index 3943647..537add2 100644
--- a/arch/loongarch/include/asm/irq.h
+++ b/arch/loongarch/include/asm/irq.h
@@ -48,7 +48,6 @@ void spurious_interrupt(void);
*/
#define NR_VECTORS 256
#define NR_LEGACY_VECTORS 16
-#define IRQ_MATRIX_BITS NR_VECTORS

#define AVEC_IRQ_SHIFT 4
#define AVEC_IRQ_BIT 8
diff --git a/kernel/irq/matrix.c b/kernel/irq/matrix.c
index 0f79a4a..faafb43 100644
--- a/kernel/irq/matrix.c
+++ b/kernel/irq/matrix.c
@@ -39,7 +39,7 @@ struct irq_matrix {

/**
* irq_alloc_matrix - Allocate a irq_matrix structure and initialize it
- * @matrix_bits: Number of matrix bits must be <= IRQ_MATRIX_BITS
+ * @matrix_bits: Number of matrix bits
* @alloc_start: From which bit the allocation search starts
* @alloc_end: At which bit the allocation search ends, i.e first
* invalid bit