linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function
@ 2023-03-20 12:52 Tom Rix
  2023-03-20 13:42 ` Christophe Leroy
  2025-05-09 14:28 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 5+ messages in thread
From: Tom Rix @ 2023-03-20 12:52 UTC (permalink / raw)
  To: qiang.zhao, leoyang.li, nathan, ndesaulniers
  Cc: Tom Rix, llvm, linuxppc-dev, linux-kernel, linux-arm-kernel

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.

Signed-off-by: Tom Rix <trix@redhat.com>
---
v2: Add to commit log when the use was removed.

---
 drivers/soc/fsl/qe/qe_ic.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c
index bbae3d39c7be..c0b4f865fba9 100644
--- a/drivers/soc/fsl/qe/qe_ic.c
+++ b/drivers/soc/fsl/qe/qe_ic.c
@@ -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.27.0


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

* Re: [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function
  2023-03-20 12:52 [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function Tom Rix
@ 2023-03-20 13:42 ` Christophe Leroy
  2025-05-09 14:28 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 5+ messages in thread
From: Christophe Leroy @ 2023-03-20 13:42 UTC (permalink / raw)
  To: Tom Rix, qiang.zhao@nxp.com, leoyang.li@nxp.com,
	nathan@kernel.org, ndesaulniers@google.com
  Cc: llvm@lists.linux.dev, linuxppc-dev@lists.ozlabs.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org



Le 20/03/2023 à 13:52, Tom Rix a écrit :
> 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.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>

Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>

> ---
> v2: Add to commit log when the use was removed.
> 
> ---
>   drivers/soc/fsl/qe/qe_ic.c | 5 -----
>   1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c
> index bbae3d39c7be..c0b4f865fba9 100644
> --- a/drivers/soc/fsl/qe/qe_ic.c
> +++ b/drivers/soc/fsl/qe/qe_ic.c
> @@ -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);

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

* Re: [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function
  2023-03-20 12:52 [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function Tom Rix
  2023-03-20 13:42 ` Christophe Leroy
@ 2025-05-09 14:28 ` Krzysztof Kozlowski
  2025-05-09 16:16   ` LEROY Christophe
  2025-05-09 16:16   ` Christophe Leroy
  1 sibling, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-09 14:28 UTC (permalink / raw)
  To: qiang.zhao, leoyang.li, nathan, Nick Desaulniers, Tom Rix
  Cc: Krzysztof Kozlowski, linuxppc-dev, linux-arm-kernel, linux-kernel,
	llvm


On Mon, 20 Mar 2023 08:52:02 -0400, Tom Rix wrote:
> 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,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


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

* Re: [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function
  2025-05-09 14:28 ` Krzysztof Kozlowski
@ 2025-05-09 16:16   ` LEROY Christophe
  2025-05-09 16:16   ` Christophe Leroy
  1 sibling, 0 replies; 5+ messages in thread
From: LEROY Christophe @ 2025-05-09 16:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski, qiang.zhao@nxp.com, leoyang.li@nxp.com,
	nathan@kernel.org, Nick Desaulniers, Tom Rix
  Cc: linuxppc-dev@lists.ozlabs.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, llvm@lists.linux.dev



Le 09/05/2025 à 16:28, Krzysztof Kozlowski a écrit :
>
> On Mon, 20 Mar 2023 08:52:02 -0400, Tom Rix wrote:
>> 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:


Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>



>
> 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,


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

* Re: [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function
  2025-05-09 14:28 ` Krzysztof Kozlowski
  2025-05-09 16:16   ` LEROY Christophe
@ 2025-05-09 16:16   ` Christophe Leroy
  1 sibling, 0 replies; 5+ messages in thread
From: Christophe Leroy @ 2025-05-09 16:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski, qiang.zhao, leoyang.li, nathan,
	Nick Desaulniers, Tom Rix
  Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, llvm



Le 09/05/2025 à 16:28, Krzysztof Kozlowski a écrit :
> 
> On Mon, 20 Mar 2023 08:52:02 -0400, Tom Rix wrote:
>> 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://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:


Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>



> 
> 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,



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

end of thread, other threads:[~2025-05-09 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-20 12:52 [PATCH v2] soc: fsl: qe: remove unused qe_ic_from_irq function Tom Rix
2023-03-20 13:42 ` Christophe Leroy
2025-05-09 14:28 ` Krzysztof Kozlowski
2025-05-09 16:16   ` LEROY Christophe
2025-05-09 16:16   ` Christophe Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).