]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
IB/hfi1: make clear_all_interrupts static
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 7 Oct 2024 23:53:26 +0000 (00:53 +0100)
committerLeon Romanovsky <leon@kernel.org>
Tue, 8 Oct 2024 07:43:17 +0000 (10:43 +0300)
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>
Link: https://patch.msgid.link/20241007235327.128613-1-linux@treblig.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/chip.h

index c52e6b2c9914d322525ad3fdc909b0d6faa9000a..a442eca498b8dee17361ac1ce25898a66ed58504 100644 (file)
@@ -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;
 
index d861aa8fc6404437df1ee9eb0b9258058488814e..8841db16bde7e771bd18acba33169e3b8e400cf6 100644 (file)
@@ -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);