mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] irqchip/irq-bcm7038-l1: Drop unused reg_mask_status() function
@ 2025-11-06 15:52 Krzysztof Kozlowski
  2025-11-06 20:51 ` Florian Fainelli
  2025-11-11 21:17 ` [tip: irq/drivers] irqchip/irq-bcm7038-l1: Remove unused reg_mask_status() tip-bot2 for Krzysztof Kozlowski
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-11-06 15:52 UTC (permalink / raw)
  To: Florian Fainelli, Broadcom internal kernel review list,
	Thomas Gleixner, linux-mips, linux-kernel, linux-arm-kernel
  Cc: Krzysztof Kozlowski

reg_mask_status() is not referenced anywhere leading to W=1 warning:

  irq-bcm7038-l1.c:85:28: error: unused function 'reg_mask_status' [-Werror,-Wunused-function]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/irqchip/irq-bcm7038-l1.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c
index 821b288587ca..ea1446c0a09c 100644
--- a/drivers/irqchip/irq-bcm7038-l1.c
+++ b/drivers/irqchip/irq-bcm7038-l1.c
@@ -82,12 +82,6 @@ static inline unsigned int reg_status(struct bcm7038_l1_chip *intc,
 	return (0 * intc->n_words + word) * sizeof(u32);
 }
 
-static inline unsigned int reg_mask_status(struct bcm7038_l1_chip *intc,
-					   unsigned int word)
-{
-	return (1 * intc->n_words + word) * sizeof(u32);
-}
-
 static inline unsigned int reg_mask_set(struct bcm7038_l1_chip *intc,
 					unsigned int word)
 {
-- 
2.48.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] irqchip/irq-bcm7038-l1: Drop unused reg_mask_status() function
  2025-11-06 15:52 [PATCH] irqchip/irq-bcm7038-l1: Drop unused reg_mask_status() function Krzysztof Kozlowski
@ 2025-11-06 20:51 ` Florian Fainelli
  2025-11-11 21:17 ` [tip: irq/drivers] irqchip/irq-bcm7038-l1: Remove unused reg_mask_status() tip-bot2 for Krzysztof Kozlowski
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2025-11-06 20:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Broadcom internal kernel review list,
	Thomas Gleixner, linux-mips, linux-kernel, linux-arm-kernel

On 11/6/25 07:52, Krzysztof Kozlowski wrote:
> reg_mask_status() is not referenced anywhere leading to W=1 warning:
> 
>    irq-bcm7038-l1.c:85:28: error: unused function 'reg_mask_status' [-Werror,-Wunused-function]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: irq/drivers] irqchip/irq-bcm7038-l1: Remove unused reg_mask_status()
  2025-11-06 15:52 [PATCH] irqchip/irq-bcm7038-l1: Drop unused reg_mask_status() function Krzysztof Kozlowski
  2025-11-06 20:51 ` Florian Fainelli
@ 2025-11-11 21:17 ` tip-bot2 for Krzysztof Kozlowski
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Krzysztof Kozlowski @ 2025-11-11 21:17 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Krzysztof Kozlowski, Thomas Gleixner, Florian Fainelli, x86,
	linux-kernel

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

Commit-ID:     45cc441de72e61b92d5eed5a9851a0301a7469de
Gitweb:        https://git.kernel.org/tip/45cc441de72e61b92d5eed5a9851a0301a7469de
Author:        Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
AuthorDate:    Thu, 06 Nov 2025 16:52:01 +01:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 11 Nov 2025 22:11:17 +01:00

irqchip/irq-bcm7038-l1: Remove unused reg_mask_status()

reg_mask_status() is not referenced anywhere leading to W=1 warning:

  irq-bcm7038-l1.c:85:28: error: unused function 'reg_mask_status' [-Werror,-Wunused-function]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20251106155200.337399-2-krzysztof.kozlowski@linaro.org
---
 drivers/irqchip/irq-bcm7038-l1.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c
index 821b288..ea1446c 100644
--- a/drivers/irqchip/irq-bcm7038-l1.c
+++ b/drivers/irqchip/irq-bcm7038-l1.c
@@ -82,12 +82,6 @@ static inline unsigned int reg_status(struct bcm7038_l1_chip *intc,
 	return (0 * intc->n_words + word) * sizeof(u32);
 }
 
-static inline unsigned int reg_mask_status(struct bcm7038_l1_chip *intc,
-					   unsigned int word)
-{
-	return (1 * intc->n_words + word) * sizeof(u32);
-}
-
 static inline unsigned int reg_mask_set(struct bcm7038_l1_chip *intc,
 					unsigned int word)
 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-11 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-06 15:52 [PATCH] irqchip/irq-bcm7038-l1: Drop unused reg_mask_status() function Krzysztof Kozlowski
2025-11-06 20:51 ` Florian Fainelli
2025-11-11 21:17 ` [tip: irq/drivers] irqchip/irq-bcm7038-l1: Remove unused reg_mask_status() tip-bot2 for Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®