[PATCH 1/6] arm: socfpga: iossm: make io96b_cal_status static

Michael Tretter m.tretter at pengutronix.de
Thu Apr 16 08:25:46 PDT 2026


The function is only used in iossm_mailbox. Make it static.

Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
 arch/arm/mach-socfpga/iossm_mailbox.c | 2 +-
 arch/arm/mach-socfpga/iossm_mailbox.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-socfpga/iossm_mailbox.c b/arch/arm/mach-socfpga/iossm_mailbox.c
index 2d287b57c0b2..b8c1fcf68c09 100644
--- a/arch/arm/mach-socfpga/iossm_mailbox.c
+++ b/arch/arm/mach-socfpga/iossm_mailbox.c
@@ -258,7 +258,7 @@ void io96b_mb_init(struct io96b_info *io96b_ctrl)
 	}
 }
 
-int io96b_cal_status(phys_addr_t addr)
+static int io96b_cal_status(phys_addr_t addr)
 {
 	int ret;
 	u32 cal_success, cal_fail;
diff --git a/arch/arm/mach-socfpga/iossm_mailbox.h b/arch/arm/mach-socfpga/iossm_mailbox.h
index febe51591ca0..5db558ff04c6 100644
--- a/arch/arm/mach-socfpga/iossm_mailbox.h
+++ b/arch/arm/mach-socfpga/iossm_mailbox.h
@@ -150,7 +150,6 @@ static inline int io96b_mb_req_no_param(phys_addr_t io96b_csr_addr, u32 ip_type,
 
 /* Supported IOSSM mailbox function */
 void io96b_mb_init(struct io96b_info *io96b_ctrl);
-int io96b_cal_status(phys_addr_t addr);
 void io96b_init_mem_cal(struct io96b_info *io96b_ctrl);
 int io96b_trig_mem_cal(struct io96b_info *io96b_ctrl);
 int io96b_get_mem_technology(struct io96b_info *io96b_ctrl);

-- 
2.47.3




More information about the barebox mailing list