Skip to content

Commit

Permalink
parisc: boot: Nuke some sparse warnings in decompressor
Browse files Browse the repository at this point in the history
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
hdeller committed Aug 10, 2023
1 parent 2c9227f commit b967f48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/parisc/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ char *strchr(const char *s, int c)
return NULL;
}

int puts(const char *s)
static int puts(const char *s)
{
const char *nuline = s;

Expand Down Expand Up @@ -172,7 +172,7 @@ static int print_num(unsigned long num, int base)
return 0;
}

int printf(const char *fmt, ...)
static int printf(const char *fmt, ...)
{
va_list args;
int i = 0;
Expand Down Expand Up @@ -204,13 +204,13 @@ void abort(void)
}

#undef malloc
void *malloc(size_t size)
static void *malloc(size_t size)
{
return malloc_gzip(size);
}

#undef free
void free(void *ptr)
static void free(void *ptr)
{
return free_gzip(ptr);
}
Expand Down Expand Up @@ -278,7 +278,7 @@ static void parse_elf(void *output)
free(phdrs);
}

unsigned long decompress_kernel(unsigned int started_wide,
asmlinkage unsigned long __visible decompress_kernel(unsigned int started_wide,
unsigned int command_line,
const unsigned int rd_start,
const unsigned int rd_end)
Expand Down

0 comments on commit b967f48

Please sign in to comment.