public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Remove static declaration from gunzip_bmp()
@ 2009-07-21 10:30 Mark Jackson
  2009-07-23 19:34 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Jackson @ 2009-07-21 10:30 UTC (permalink / raw)
  To: u-boot

This patch removes the static declaration from gunzip_bmp()

Without it, the gunzip_bmp() function is not visible to
common/lcd.c and fails to compile with an error.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
---
 common/cmd_bmp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
index fc8462e..27d5896 100644
--- a/common/cmd_bmp.c
+++ b/common/cmd_bmp.c
@@ -46,7 +46,7 @@ int gunzip(void *, int, unsigned char *, unsigned long *);
  * didn't contain a valid BMP signature.
  */
 #ifdef CONFIG_VIDEO_BMP_GZIP
-static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
+bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 {
 	void *dst;
 	unsigned long len;
@@ -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, unsigned long *lenp)
+bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 {
 	return NULL;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] Remove static declaration from gunzip_bmp()
  2009-07-21 10:30 [U-Boot] [PATCH] Remove static declaration from gunzip_bmp() Mark Jackson
@ 2009-07-23 19:34 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-07-23 19:34 UTC (permalink / raw)
  To: u-boot

Dear Mark Jackson,

In message <4A6598DD.2090807@mimc.co.uk> you wrote:
> This patch removes the static declaration from gunzip_bmp()
> 
> Without it, the gunzip_bmp() function is not visible to
> common/lcd.c and fails to compile with an error.
> 
> Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
> ---
>  common/cmd_bmp.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
We, the unwilling, led by the unknowing, are doing the impossible for
the ungrateful. We have done so much, for so long, with so little, we
are now qualified to do anything with nothing.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-23 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21 10:30 [U-Boot] [PATCH] Remove static declaration from gunzip_bmp() Mark Jackson
2009-07-23 19:34 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox