lib: Move struct sbi_ipi_data definition to sbi_ipi.c
authorAnup Patel <anup.patel@wdc.com>
Wed, 15 Jan 2020 05:18:56 +0000 (10:48 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 22 Jan 2020 06:40:33 +0000 (12:10 +0530)
The struct sbi_ipi_data is only used in sbi_ipi.c so move it
to sbi_ipi.c from sbi_ipi.h.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_ipi.h
lib/sbi/sbi_ipi.c

index 2dbc096..e99bfdb 100644 (file)
 /* clang-format on */
 
 struct sbi_scratch;
-struct sbi_trap_info;
-
-struct sbi_ipi_data {
-       unsigned long ipi_type;
-};
 
 int sbi_ipi_send_many(struct sbi_scratch *scratch, ulong hmask,
                      ulong hbase, u32 event, void *data);
index 3c50503..e5ebfb5 100644 (file)
 #include <sbi/sbi_tlb.h>
 #include <sbi/sbi_trap.h>
 
+struct sbi_ipi_data {
+       unsigned long ipi_type;
+};
+
 static unsigned long ipi_data_off;
 
 static int sbi_ipi_send(struct sbi_scratch *scratch, u32 hartid, u32 event,