summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2023-03-20 10:24:35 +0000
committerLuis Chamberlain <mcgrof@kernel.org>2023-04-13 13:13:51 -0700
commitb71e2a69d16c8d12c2b1aadeffd59ed1920d50e9 (patch)
treea8eb343b439f7c0c3401e4dc6455551d15fcffa0
parent41a98c68f2abc67b88568b7a25fd547989d2c92f (diff)
downloadlwn-b71e2a69d16c8d12c2b1aadeffd59ed1920d50e9.tar.gz
lwn-b71e2a69d16c8d12c2b1aadeffd59ed1920d50e9.zip
crypto: blake2s: remove module_init and module.h inclusion
Now this can no longer be built as a module, drop all remaining module-related code as well. Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Suggested-by: Herbert Xu <herbert@gondor.apana.org.au> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: linux-modules@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Hitomi Hasegawa <hasegawa-hitomi@fujitsu.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: "David S. Miller" <davem@davemloft.net> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: x86@kernel.org Cc: linux-crypto@vger.kernel.org Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
-rw-r--r--arch/x86/crypto/blake2s-glue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/crypto/blake2s-glue.c b/arch/x86/crypto/blake2s-glue.c
index 0df9ec15643a..0313f9673f56 100644
--- a/arch/x86/crypto/blake2s-glue.c
+++ b/arch/x86/crypto/blake2s-glue.c
@@ -8,7 +8,6 @@
#include <linux/types.h>
#include <linux/jump_label.h>
#include <linux/kernel.h>
-#include <linux/module.h>
#include <linux/sizes.h>
#include <asm/cpufeature.h>
@@ -72,5 +71,4 @@ static int __init blake2s_mod_init(void)
return 0;
}
-module_init(blake2s_mod_init);
-
+subsys_initcall(blake2s_mod_init);