path: root/lib/zlib_dfltcc/dfltcc_deflate.c
diff options
authorRandy Dunlap <>2020-12-29 15:15:04 -0800
committerLinus Torvalds <>2020-12-29 15:36:49 -0800
commit605cc30dea249edf1b659e7d0146a2cf13cbbf71 (patch)
tree9686fabdf9773a01cd99e7471671cc0c62354fe2 /lib/zlib_dfltcc/dfltcc_deflate.c
parentf0bb29e8c4076444d32df00c8d32e169ceecf283 (diff)
zlib: move EXPORT_SYMBOL() and MODULE_LICENSE() out of dfltcc_syms.c
In commit 11fb479ff5d9 ("zlib: export S390 symbols for zlib modules"), I added EXPORT_SYMBOL()s to dfltcc_inflate.c but then Mikhail said that these should probably be in dfltcc_syms.c with the other EXPORT_SYMBOL()s. However, that is contrary to the current kernel style, which places EXPORT_SYMBOL() immediately after the function that it applies to, so move all EXPORT_SYMBOL()s to their respective function locations and drop the dfltcc_syms.c file. Also move MODULE_LICENSE() from the deleted file to dfltcc.c. [ remove dfltcc_syms.o from Makefile] Link: Link: Fixes: 11fb479ff5d9 ("zlib: export S390 symbols for zlib modules") Signed-off-by: Randy Dunlap <> Cc: Acked-by: Ilya Leoshkevich <> Acked-by: Christian Borntraeger <> Cc: Zaslonko Mikhail <> Cc: Heiko Carstens <> Cc: Vasily Gorbik <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'lib/zlib_dfltcc/dfltcc_deflate.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/zlib_dfltcc/dfltcc_deflate.c b/lib/zlib_dfltcc/dfltcc_deflate.c
index 00c185101c6d..6c946e8532ee 100644
--- a/lib/zlib_dfltcc/dfltcc_deflate.c
+++ b/lib/zlib_dfltcc/dfltcc_deflate.c
@@ -4,6 +4,7 @@
#include "dfltcc_util.h"
#include "dfltcc.h"
#include <asm/setup.h>
+#include <linux/export.h>
#include <linux/zutil.h>
@@ -34,6 +35,7 @@ int dfltcc_can_deflate(
return 1;
static void dfltcc_gdht(
z_streamp strm
@@ -277,3 +279,4 @@ again:
goto again; /* deflate() must use all input or all output */
return 1;