* [U-Boot] [PATCH] Remove static type from gunzip_bmp()
@ 2009-01-27 10:21 Mark Jackson
2009-01-27 10:57 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Mark Jackson @ 2009-01-27 10:21 UTC (permalink / raw)
To: u-boot
THe current bmp routines support gzipped files, but compilation fails due to
the gunzip_bmp() function being defined as static.
This patch fixes this problem.
Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
---
common/cmd_bmp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
index bc08b26..2104e59 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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] Remove static type from gunzip_bmp()
2009-01-27 10:21 [U-Boot] [PATCH] Remove static type from gunzip_bmp() Mark Jackson
@ 2009-01-27 10:57 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-01-27 10:57 UTC (permalink / raw)
To: u-boot
Dear Mark Jackson,
In message <497EE024.9040800@mimc.co.uk> you wrote:
> THe current bmp routines support gzipped files, but compilation fails due to
> the gunzip_bmp() function being defined as static.
I cannot confirm that. There are boards that use this feature, and
they build fine.
> This patch fixes this problem.
>
> Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
> ---
> common/cmd_bmp.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
> index bc08b26..2104e59 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)
There is another ocurrence of "static bmp_image_t *gunzip_bmp()" in
this file - you change one and leave the other unchanged.
If you change this, please change both places so they stay in sync,
and add a proper prototype declaration to the header file.
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
"A child is a person who can't understand why someone would give away
a perfectly good kitten." - Doug Larson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-27 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27 10:21 [U-Boot] [PATCH] Remove static type from gunzip_bmp() Mark Jackson
2009-01-27 10:57 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.