[tip: irq/drivers] irqchip/renesas-rzv2h: Kill icu_err string
From: tip-bot2 for Geert Uytterhoeven
Date: Tue Apr 07 2026 - 05:24:06 EST
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 669d2067e3d095d525c69e675d8b9c738e3616c6
Gitweb: https://git.kernel.org/tip/669d2067e3d095d525c69e675d8b9c738e3616c6
Author: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
AuthorDate: Fri, 03 Apr 2026 10:48:23 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 07 Apr 2026 11:19:02 +02:00
irqchip/renesas-rzv2h: Kill icu_err string
Replace the string variable icu_err by its expanded value where needed,
to improve readability.
This reduces generated code size by 16 bytes.
Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/c7472bec20dea2c4d63e390e8e293b7d7003ef39.1775205874.git.geert+renesas@xxxxxxxxx
---
drivers/irqchip/irq-renesas-rzv2h.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/irqchip/irq-renesas-rzv2h.c b/drivers/irqchip/irq-renesas-rzv2h.c
index c701e46..31c543c 100644
--- a/drivers/irqchip/irq-renesas-rzv2h.c
+++ b/drivers/irqchip/irq-renesas-rzv2h.c
@@ -755,7 +755,6 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
{
const struct rzv2h_hw_info *hw_info = rzv2h_icu_data->info;
bool irq_inject = IS_ENABLED(CONFIG_GENERIC_IRQ_INJECTION);
- static const char *icu_err = "icu-error-ca55";
void __iomem *base = rzv2h_icu_data->base;
struct device *dev = &pdev->dev;
struct irq_fwspec fwspec;
@@ -800,14 +799,12 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
fwspec.param[1] = IRQ_TYPE_LEVEL_HIGH;
virq = irq_create_fwspec_mapping(&fwspec);
- if (!virq) {
- return dev_err_probe(dev, -EINVAL, "failed to create IRQ mapping for %s\n",
- icu_err);
- }
+ if (!virq)
+ return dev_err_probe(dev, -EINVAL, "failed to create icu-error-ca55 IRQ mapping\n");
ret = devm_request_irq(dev, virq, rzv2h_icu_error_irq, 0, dev_name(dev), rzv2h_icu_data);
if (ret)
- return dev_err_probe(dev, ret, "Failed to request %s IRQ\n", icu_err);
+ return dev_err_probe(dev, ret, "Failed to request icu-error-ca55 IRQ\n");
return 0;
}