aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/boot/compressed
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2020-10-17 15:55:10 +0200
committerHeiko Carstens <hca@linux.ibm.com>2020-11-09 11:20:59 +0100
commit39f2899b9872d02ec178568a9acfe90804d7fd70 (patch)
treefed8ccf90c0cb5546e3143ede872cb4b3db06d87 /arch/s390/boot/compressed
parents390/mm: let vmalloc area size depend on physical memory size (diff)
downloadlinux-dev-39f2899b9872d02ec178568a9acfe90804d7fd70.tar.xz
linux-dev-39f2899b9872d02ec178568a9acfe90804d7fd70.zip
s390/decompressor: fix build warning
Fixes the following warning with CONFIG_KERNEL_UNCOMPRESSED=y arch/s390/boot/compressed/decompressor.h:6:46: warning: non-void function does not return a value [-Wreturn-type] static inline void *decompress_kernel(void) {} ^ Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/compressed')
-rw-r--r--arch/s390/boot/compressed/decompressor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/boot/compressed/decompressor.h b/arch/s390/boot/compressed/decompressor.h
index c15eb7114d83..41f0ad97a4db 100644
--- a/arch/s390/boot/compressed/decompressor.h
+++ b/arch/s390/boot/compressed/decompressor.h
@@ -2,8 +2,10 @@
#ifndef BOOT_COMPRESSED_DECOMPRESSOR_H
#define BOOT_COMPRESSED_DECOMPRESSOR_H
+#include <linux/stddef.h>
+
#ifdef CONFIG_KERNEL_UNCOMPRESSED
-static inline void *decompress_kernel(void) {}
+static inline void *decompress_kernel(void) { return NULL; }
#else
void *decompress_kernel(void);
#endif