Skip to content

Commit f54d02c

Browse files
committed
xtensa: boot/lib: fix function prototypes
Add function prototype for gunzip() to the boot library code and make exit() and zalloc() static. arch/xtensa/boot/lib/zmem.c:8:6: warning: no previous prototype for 'exit' [-Wmissing-prototypes] 8 | void exit (void) arch/xtensa/boot/lib/zmem.c:13:7: warning: no previous prototype for 'zalloc' [-Wmissing-prototypes] 13 | void *zalloc(unsigned size) arch/xtensa/boot/lib/zmem.c:35:6: warning: no previous prototype for 'gunzip' [-Wmissing-prototypes] 35 | void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) Fixes: 4bedea9 ("xtensa: Architecture support for Tensilica Xtensa Part 2") Fixes: e7d163f ("xtensa: Removed local copy of zlib and fixed O= support") Suggested-by: Randy Dunlap <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 9aecda9 commit f54d02c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/xtensa/boot/lib/zmem.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
/* bits taken from ppc */
55

66
extern void *avail_ram, *end_avail;
7+
void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp);
78

8-
void exit (void)
9+
static void exit(void)
910
{
1011
for (;;);
1112
}
1213

13-
void *zalloc(unsigned size)
14+
static void *zalloc(unsigned int size)
1415
{
1516
void *p = avail_ram;
1617

0 commit comments

Comments
 (0)