diff options
author | Helge Deller <deller@gmx.de> | 2023-08-10 22:42:57 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-08-10 22:42:57 +0200 |
commit | b967f48d0240fa9b3ac0bfd7135647985016826e (patch) | |
tree | 2815c115b48f6035acb52b97506eea8702ff70eb | |
parent | parisc: processor: Include asm/smp.h for init_per_cpu() (diff) | |
download | linux-b967f48d0240fa9b3ac0bfd7135647985016826e.tar.xz linux-b967f48d0240fa9b3ac0bfd7135647985016826e.zip |
parisc: boot: Nuke some sparse warnings in decompressor
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/boot/compressed/misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/parisc/boot/compressed/misc.c b/arch/parisc/boot/compressed/misc.c index 7ee49f5881d1..d389359e22ac 100644 --- a/arch/parisc/boot/compressed/misc.c +++ b/arch/parisc/boot/compressed/misc.c @@ -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; @@ -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; @@ -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); } @@ -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) |