diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 18c1b59b22ccfb08533664967890bb442263a9c4..bb48cac1efac9784dbe44ca901ae06b7353ffc94 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -96,7 +96,7 @@ end:
 	return 0;
 }
 
-int spl_mmc_get_device_index(u32 boot_device)
+static int spl_mmc_get_device_index(u32 boot_device)
 {
 	switch (boot_device) {
 	case BOOT_DEVICE_MMC1: