Module rewrite 4/20: everyone-needs-init
PATCH 1/1 Module rewrite 4/20: everyone-needs-init
Name: Every module needs module_init
Author: Rusty Russell
Status: Trivial
D: Every module needs a module_init now (that's when we insert the
D: module name), so insert a trivial one where needed. Most files
D: already have them, and it's a good sanity check that you're dealing
D: with a real module.
lib/zlib_deflate/deflate_syms.c +6 -0
@@ -19,3 +19,9 @@ EXPORT_SYMBOL(zlib_deflateReset);EXPORT_SYMBOL (zlib_deflateCopy);EXPORT_SYMBOL (zlib_deflateParams);MODULE_LICENSE ("GPL" ); + +static int init (void ) +{ +return 0 ; +} +module_init (init);
lib/zlib_inflate/inflate_syms.c +6 -0
@@ -20,3 +20,9 @@ EXPORT_SYMBOL(zlib_inflateReset);EXPORT_SYMBOL (zlib_inflateSyncPoint);EXPORT_SYMBOL (zlib_inflateIncomp);MODULE_LICENSE ("GPL" ); + +static int init (void ) +{ +return 0 ; +} +module_init (init);
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.