mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
Fix initialization order bug
This commit is contained in:
parent
b33fc8298f
commit
379520ee87
@ -9,7 +9,7 @@
|
||||
struct module;
|
||||
|
||||
#define module_init(initfn) \
|
||||
__attribute__((constructor(109))) \
|
||||
__attribute__((constructor(120))) \
|
||||
static void __call_##initfn(void) { BUG_ON(initfn()); }
|
||||
|
||||
#if 0
|
||||
|
@ -78,15 +78,8 @@ static struct shash_alg alg = {
|
||||
}
|
||||
};
|
||||
|
||||
__attribute__((constructor(110)))
|
||||
static int __init sha1_generic_mod_init(void)
|
||||
{
|
||||
return crypto_register_shash(&alg);
|
||||
}
|
||||
|
||||
static void __exit sha1_generic_mod_fini(void)
|
||||
{
|
||||
crypto_unregister_shash(&alg);
|
||||
}
|
||||
|
||||
module_init(sha1_generic_mod_init);
|
||||
module_exit(sha1_generic_mod_fini);
|
||||
|
Loading…
Reference in New Issue
Block a user