[PATCH] fpga: Make do_fpga_loads() static

Michal Simek michal.simek at amd.com
Mon Feb 3 10:28:15 CET 2025


do_fpga_loads() is not called from anywhere else that's why make it static.

Signed-off-by: Michal Simek <michal.simek at amd.com>
---

 cmd/fpga.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/fpga.c b/cmd/fpga.c
index 212f421739fa..9dc7b63db5d1 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -67,7 +67,8 @@ static int do_fpga_check_params(long *dev, long *fpga_data, size_t *data_size,
 }
 
 #if defined(CONFIG_CMD_FPGA_LOAD_SECURE)
-int do_fpga_loads(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
+static int do_fpga_loads(struct cmd_tbl *cmdtp, int flag, int argc,
+			 char *const argv[])
 {
 	size_t data_size = 0;
 	long fpga_data, dev;
-- 
2.43.0



More information about the U-Boot mailing list