Skip to contentSkip to conversation

soc: fsl: qe: remove unused qe_ic_from_irq function

PATCH Applied Tom Rix 4 participants 5 messages Mar 20, 2023 – May 9, 2025

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH v2 1/1 soc: fsl: qe: remove unused qe_ic_from_irq function

clang with W=1 reports drivers/soc/fsl/qe/qe_ic.c:235:29: error: unused function
'qe_ic_from_irq' [-Werror,-Wunused-function]
static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)

                            ^

The use of this function was removed with
commit d7c2878cfcfa ("soc: fsl: qe: remove unused qe_ic_set_* functions")

This function is not used, so remove it.

---
v2: Add to commit log when the use was removed.

---
 drivers/soc/fsl/qe/qe_ic.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/soc/fsl/qe/qe_ic.c +0 -5
index bbae3d39c7be..c0b4f865fba9 100644
@@ -232,11 +232,6 @@ static inline void qe_ic_write(__be32  __iomem *base, unsigned int reg,
 	iowrite32be(value, base + (reg >> 2));
 }
 
-static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)
-{
-	return irq_get_chip_data(virq);
-}
-
 static inline struct qe_ic *qe_ic_from_irq_data(struct irq_data *d)
 {
 	return irq_data_get_irq_chip_data(d);
Signature · 1 line
2.27.0
Reviewed-by on v2 1/1
#1 lore raw

Le 20/03/2023 à 13:52, Tom Rix a écrit :

Quoted 11 lines

clang with W=1 reports drivers/soc/fsl/qe/qe_ic.c:235:29: error: unused function
'qe_ic_from_irq' [-Werror,-Wunused-function]
static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)

                             ^

The use of this function was removed with
commit d7c2878cfcfa ("soc: fsl: qe: remove unused qe_ic_set_* functions")

This function is not used, so remove it.

Quoted 23 lines

---
v2: Add to commit log when the use was removed.

---
  drivers/soc/fsl/qe/qe_ic.c | 5 -----
  1 file changed, 5 deletions(-)
drivers/soc/fsl/qe/qe_ic.c +0 -5
index bbae3d39c7be..c0b4f865fba9 100644
@@ -232,11 +232,6 @@ static inline void qe_ic_write(__be32  __iomem *base, unsigned int reg,
  	iowrite32be(value, base + (reg >> 2));
  }
 
-static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)
-{
-	return irq_get_chip_data(virq);
-}
-
  static inline struct qe_ic *qe_ic_from_irq_data(struct irq_data *d)
  {
  	return irq_data_get_irq_chip_data(d);
#2 lore raw
In reply to Tom Rix
Quoted 9 lines · Tom Rix

clang with W=1 reports drivers/soc/fsl/qe/qe_ic.c:235:29: error: unused function
'qe_ic_from_irq' [-Werror,-Wunused-function]
static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)

                            ^

The use of this function was removed with
commit d7c2878cfcfa ("soc: fsl: qe: remove unused qe_ic_set_* functions")

[...]

Commit from 2021:
https://lore.kernel.org/all/1619002613-18216-1-git-send-email-jiapeng.chong@linux.alibaba.com/

did not apply, but this applies.

I am annoying hitting this warning on every W=1 build, so:

Applied, thanks!

[1/1] soc: fsl: qe: remove unused qe_ic_from_irq function

      https://git.kernel.org/krzk/linux-dt/c/d47f1233374597c348696c3da2142cc92a36fc90

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Acked-by Christophe Leroy
#3 lore raw
Quoted 13 lines · Krzysztof Kozlowski
Quoted 9 lines · Tom Rix

clang with W=1 reports drivers/soc/fsl/qe/qe_ic.c:235:29: error: unused function
'qe_ic_from_irq' [-Werror,-Wunused-function]
static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)

                             ^

The use of this function was removed with
commit d7c2878cfcfa ("soc: fsl: qe: remove unused qe_ic_set_* functions")

[...]

Quoted 6 lines

Commit from 2021:
https://lore.kernel.org/all/1619002613-18216-1-git-send-email-jiapeng.chong@linux.alibaba.com/

did not apply, but this applies.

I am annoying hitting this warning on every W=1 build, so:

Quoted 7 lines

Applied, thanks!

[1/1] soc: fsl: qe: remove unused qe_ic_from_irq function

       https://git.kernel.org/krzk/linux-dt/c/d47f1233374597c348696c3da2142cc92a36fc90

Best regards,

#4 lore raw
In reply to Krzysztof Kozlowski

Le 09/05/2025 à 16:28, Krzysztof Kozlowski a écrit :

Quoted 13 lines · Tom Rix
Quoted 9 lines

clang with W=1 reports drivers/soc/fsl/qe/qe_ic.c:235:29: error: unused function
'qe_ic_from_irq' [-Werror,-Wunused-function]
static inline struct qe_ic *qe_ic_from_irq(unsigned int virq)

                             ^

The use of this function was removed with
commit d7c2878cfcfa ("soc: fsl: qe: remove unused qe_ic_set_* functions")

[...]

Quoted 6 lines

Commit from 2021:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F1619002613-18216-1-git-send-email-jiapeng.chong%40linux.alibaba.com%2F&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7Cd5ee085f1ff64e69aec608dd8f05d608%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638823977413929827%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=kaeZGwikWMhIhz9iC6ZEVs%2Ffbd9UsZHJz7vBbODUHgg%3D&reserved=0

did not apply, but this applies.

I am annoying hitting this warning on every W=1 build, so:

Quoted 7 lines

Applied, thanks!

[1/1] soc: fsl: qe: remove unused qe_ic_from_irq function

       https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fkrzk%2Flinux-dt%2Fc%2Fd47f1233374597c348696c3da2142cc92a36fc90&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7Cd5ee085f1ff64e69aec608dd8f05d608%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638823977413952218%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=HzwgkKFqffwtkmoskS9Y1OhlXShSW%2B%2BZLKxc3k3fCpA%3D&reserved=0

Best regards,