emul_rtc_probe() is not called from anywhere else that's why make it
static. Issue is reported by build with W=1.

Signed-off-by: Michal Simek <[email protected]>
---

 drivers/rtc/emul_rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/emul_rtc.c b/drivers/rtc/emul_rtc.c
index 97a8d9bb7df5..6817daad18fe 100644
--- a/drivers/rtc/emul_rtc.c
+++ b/drivers/rtc/emul_rtc.c
@@ -58,7 +58,7 @@ static int emul_rtc_set(struct udevice *dev, const struct 
rtc_time *time)
        return 0;
 }
 
-int emul_rtc_probe(struct udevice *dev)
+static int emul_rtc_probe(struct udevice *dev)
 {
        struct emul_rtc *priv = dev_get_priv(dev);
        const char *epoch_str;
-- 
2.43.0

Reply via email to