decompressor: fix undeclared items
PATCH 1/1 decompressor: fix undeclared items
The follow items are not declared but also not exported so use __attribute__((__externally_visible__)) to silence the following sparse warnings:
./include/linux/decompress/mm.h:31:30: warning: symbol 'malloc_ptr' was not declared. Should it be static?./include/linux/decompress/mm.h:32:20: warning: symbol 'malloc_count' was not declared. Should it be static? arch/arm/boot/compressed/decompress.c:59:5: warning: symbol 'do_decompress' was not declared. Should it be static?
Signed-off-by Ben Dooks <[email protected]>
---
Cc: Russell King <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- arch/arm/boot/compressed/decompress.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm/boot/compressed/decompress.c +3 -2
@@ -9,7 +9,7 @@#include "misc.h" #define STATIC static -#define STATIC_RW_DATA /* non-static please */ +#define STATIC_RW_DATA __attribute__((__externally_visible__))/* non-static please */ /* Diagnostic functions */ #ifdef DEBUG
@@ -56,7 +56,8 @@ extern char * strchrnul(const char *, int);#include "../../../../lib/decompress_unlz4.c" #endif -int do_decompress (u8 *input,int len,u8 *output,void (*error)(char *x)) +int __attribute__((__externally_visible__)) +do_decompress (u8 *input,int len,u8 *output,void (*error)(char *x)) {return __decompress (input, len,NULL ,NULL , output,0 ,NULL , error); }
Signature · 7 lines
2.23.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel