* [PATCH] IB/hfi1: make clear_all_interrupts static
@ 2024-10-07 23:53 linux
2024-10-08 7:49 ` Leon Romanovsky
0 siblings, 1 reply; 2+ messages in thread
From: linux @ 2024-10-07 23:53 UTC (permalink / raw)
To: dennis.dalessandro, jgg, leon
Cc: linux-rdma, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
clear_all_interrupts() in hw/hfi1/chip.c is currently global
but only used in the same file, so make it static.
There are also 'clear_all_interrupts' functions in i2c-nomadik and
emif.c but fortunately they're already static.
(Build and boot tested only, I don't have this hardware)
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/infiniband/hw/hfi1/chip.c | 2 +-
drivers/infiniband/hw/hfi1/chip.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/hfi1/chip.c b/drivers/infiniband/hw/hfi1/chip.c
index c52e6b2c9914..a442eca498b8 100644
--- a/drivers/infiniband/hw/hfi1/chip.c
+++ b/drivers/infiniband/hw/hfi1/chip.c
@@ -13235,7 +13235,7 @@ int set_intr_bits(struct hfi1_devdata *dd, u16 first, u16 last, bool set)
/*
* Clear all interrupt sources on the chip.
*/
-void clear_all_interrupts(struct hfi1_devdata *dd)
+static void clear_all_interrupts(struct hfi1_devdata *dd)
{
int i;
diff --git a/drivers/infiniband/hw/hfi1/chip.h b/drivers/infiniband/hw/hfi1/chip.h
index d861aa8fc640..8841db16bde7 100644
--- a/drivers/infiniband/hw/hfi1/chip.h
+++ b/drivers/infiniband/hw/hfi1/chip.h
@@ -1404,7 +1404,6 @@ irqreturn_t receive_context_interrupt_napi(int irq, void *data);
int set_intr_bits(struct hfi1_devdata *dd, u16 first, u16 last, bool set);
void init_qsfp_int(struct hfi1_devdata *dd);
-void clear_all_interrupts(struct hfi1_devdata *dd);
void remap_intr(struct hfi1_devdata *dd, int isrc, int msix_intr);
void remap_sdma_interrupts(struct hfi1_devdata *dd, int engine, int msix_intr);
void reset_interrupts(struct hfi1_devdata *dd);
--
2.46.2
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] IB/hfi1: make clear_all_interrupts static
2024-10-07 23:53 [PATCH] IB/hfi1: make clear_all_interrupts static linux
@ 2024-10-08 7:49 ` Leon Romanovsky
0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2024-10-08 7:49 UTC (permalink / raw)
To: dennis.dalessandro, jgg, linux; +Cc: linux-rdma, linux-kernel
On Tue, 08 Oct 2024 00:53:26 +0100, linux@treblig.org wrote:
> clear_all_interrupts() in hw/hfi1/chip.c is currently global
> but only used in the same file, so make it static.
>
> There are also 'clear_all_interrupts' functions in i2c-nomadik and
> emif.c but fortunately they're already static.
>
> (Build and boot tested only, I don't have this hardware)
>
> [...]
Applied, thanks!
[1/1] IB/hfi1: make clear_all_interrupts static
https://git.kernel.org/rdma/rdma/c/89e9ae55dc56f3
Best regards,
--
Leon Romanovsky <leon@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-08 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-07 23:53 [PATCH] IB/hfi1: make clear_all_interrupts static linux
2024-10-08 7:49 ` Leon Romanovsky
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®