diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
index 2437e2278017664bc05da3c3b1f3c6ffb5e2da1b..197e5e871d2621a070575c3932aa3a88632c86fb 100644
--- a/common/cmd_bmp.c
+++ b/common/cmd_bmp.c
@@ -85,7 +85,7 @@ static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 	return bmp;
 }
 #else
-static bmp_image_t *gunzip_bmp(unsigned long addr)
+static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 {
 	return NULL;
 }