Skip to content

Commit b967f48

Browse files
committed
parisc: boot: Nuke some sparse warnings in decompressor
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 2c9227f commit b967f48

File tree

1 file changed

+5
-5
lines changed
  • arch/parisc/boot/compressed

1 file changed

+5
-5
lines changed

arch/parisc/boot/compressed/misc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ char *strchr(const char *s, int c)
117117
return NULL;
118118
}
119119

120-
int puts(const char *s)
120+
static int puts(const char *s)
121121
{
122122
const char *nuline = s;
123123

@@ -172,7 +172,7 @@ static int print_num(unsigned long num, int base)
172172
return 0;
173173
}
174174

175-
int printf(const char *fmt, ...)
175+
static int printf(const char *fmt, ...)
176176
{
177177
va_list args;
178178
int i = 0;
@@ -204,13 +204,13 @@ void abort(void)
204204
}
205205

206206
#undef malloc
207-
void *malloc(size_t size)
207+
static void *malloc(size_t size)
208208
{
209209
return malloc_gzip(size);
210210
}
211211

212212
#undef free
213-
void free(void *ptr)
213+
static void free(void *ptr)
214214
{
215215
return free_gzip(ptr);
216216
}
@@ -278,7 +278,7 @@ static void parse_elf(void *output)
278278
free(phdrs);
279279
}
280280

281-
unsigned long decompress_kernel(unsigned int started_wide,
281+
asmlinkage unsigned long __visible decompress_kernel(unsigned int started_wide,
282282
unsigned int command_line,
283283
const unsigned int rd_start,
284284
const unsigned int rd_end)

0 commit comments

Comments
 (0)