soc: fsl: qe: remove unused qe_ic_from_irq function
Subsystems (2)
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
@@ -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
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 structqe_ic*qe_ic_from_irq(unsigned int virq)^The use of this function was removed with
commitd7c2878cfcfa("soc: fsl: qe: remove unused qe_ic_set_* functions")This function is not used, so remove it.
Signed-off-by Tom Rix <[email protected]>
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@@ -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);
Krzysztof Kozlowski
AppliedQuoted 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 structqe_ic*qe_ic_from_irq(unsigned int virq)^The use of this function was removed with
commitd7c2878cfcfa("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]>
LEROY Christophe
Acked-by Christophe LeroyQuoted 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 structqe_ic*qe_ic_from_irq(unsigned int virq)^The use of this function was removed with
commitd7c2878cfcfa("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_irqfunctionhttps://git.kernel.org/krzk/linux-dt/c/d47f1233374597c348696c3da2142cc92a36fc90Best regards,
Christophe Leroy
Acked-byLe 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 structqe_ic*qe_ic_from_irq(unsigned int virq)^The use of this function was removed with
commitd7c2878cfcfa("soc: fsl: qe: remove unused qe_ic_set_* functions")[...]
Quoted 6 lines
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_irqfunctionhttps://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=0Best regards,