From e2b5602acfec186a717f5a9b5ecdad179dc70cc7 Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Wed, 26 May 2021 10:35:25 -0400 Subject: [PATCH] fix gcc warning: function used but not defined The 'cdelay()' function is defined in LiteX 'liblitedram', so we should not be using 'static' to declare it before calling it from other C source files. --- litedram/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/init.py b/litedram/init.py index 2456822..7bed74e 100644 --- a/litedram/init.py +++ b/litedram/init.py @@ -730,7 +730,7 @@ def get_sdram_phy_c_header(phy_settings, timing_settings): r += "\n" - r += "static void cdelay(int i);\n" + r += "void cdelay(int i);\n" # Commands functions for n in range(nphases):