From 046cc16e8be254e18df49da63fa521d2f54e3ce1 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Wed, 15 Jan 2020 10:48:56 +0530 Subject: [PATCH] lib: Move struct sbi_ipi_data definition to sbi_ipi.c 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 Reviewed-by: Atish Patra --- include/sbi/sbi_ipi.h | 5 ----- lib/sbi/sbi_ipi.c | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/sbi/sbi_ipi.h b/include/sbi/sbi_ipi.h index 2dbc096e..e99bfdb8 100644 --- a/include/sbi/sbi_ipi.h +++ b/include/sbi/sbi_ipi.h @@ -21,11 +21,6 @@ /* 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); diff --git a/lib/sbi/sbi_ipi.c b/lib/sbi/sbi_ipi.c index 3c505035..e5ebfb5d 100644 --- a/lib/sbi/sbi_ipi.c +++ b/lib/sbi/sbi_ipi.c @@ -20,6 +20,10 @@ #include #include +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,