Skip to contentSkip to conversation

crypto: lib/chacha20poly1305 - define empty module exit function

PATCH Superseded Jason A. Donenfeld 5 participants 8 messages Jan 15, 2021 – Jan 22, 2021

Subsystems (2)
lore
Share & tools
lore

Jason A. Donenfeld

author maintainer
#0 lore raw

PATCH 1/1 crypto: lib/chacha20poly1305 - define empty module exit function

With no mod_exit function, users are unable to load the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

---
 lib/crypto/chacha20poly1305.c | 5 +++++
 1 file changed, 5 insertions(+)
lib/crypto/chacha20poly1305.c +5 -0
index 5850f3b87359..c2fcdb98cc02 100644
@@ -362,7 +362,12 @@ static int __init mod_init(void)
 	return 0;
 }
 
+static void __exit mod_exit(void)
+{
+}
+
 module_init(mod_init);
+module_exit(mod_exit);
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChaCha20Poly1305 AEAD construction");
 MODULE_AUTHOR("Jason A. Donenfeld <[email protected]>");
Signature · 1 line
2.30.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jason A. Donenfeld

With no mod_exit function, users are unable to load the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

Quoted 24 lines
---
 lib/crypto/chacha20poly1305.c | 5 +++++
 1 file changed, 5 insertions(+)
lib/crypto/chacha20poly1305.c +5 -1
index 5850f3b87359..c2fcdb98cc02 100644
@@ -362,7 +362,12 @@ static int __init mod_init(void)
        return 0;
 }
 
+static void __exit mod_exit(void)
+{
+}
+
 module_init(mod_init);
+module_exit(mod_exit);
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChaCha20Poly1305 AEAD construction");
 MODULE_AUTHOR("Jason A. Donenfeld <[email protected]>");
--

2.30.0

#3 lore raw
In reply to Jason A. Donenfeld
Quoted 12 lines · Jason A. Donenfeld

With no mod_exit function, users are unable to load the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

---

Hi ,

Verified

Please add

Quoted 23 lines

lib/crypto/chacha20poly1305.c | 5 +++++

1 file changed, 5 insertions(+)
lib/crypto/chacha20poly1305.c +5 -0
index 5850f3b87359..c2fcdb98cc02 100644
@@ -362,7 +362,12 @@ static int __init mod_init(void)
 	return 0;
 }
 
+static void __exit mod_exit(void)
+{
+}
+
 module_init(mod_init);
+module_exit(mod_exit);
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChaCha20Poly1305 AEAD construction");
 MODULE_AUTHOR("Jason A. Donenfeld <[email protected]>");
Signature · 1 line
2.30.0
author maintainer
#4 lore raw

PATCH v2 1/1 crypto: lib/chacha20poly1305 - define empty module exit function

In reply to Jason A. Donenfeld

With no mod_exit function, users are unable to unload the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

---
v1->v2:
- Fix typo in commit message.

 lib/crypto/chacha20poly1305.c | 5 +++++
 1 file changed, 5 insertions(+)
lib/crypto/chacha20poly1305.c +5 -0
index 5850f3b87359..c2fcdb98cc02 100644
@@ -362,7 +362,12 @@ static int __init mod_init(void)
 	return 0;
 }
 
+static void __exit mod_exit(void)
+{
+}
+
 module_init(mod_init);
+module_exit(mod_exit);
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChaCha20Poly1305 AEAD construction");
 MODULE_AUTHOR("Jason A. Donenfeld <[email protected]>");
Signature · 1 line
2.30.0
#5 lore raw
Quoted 12 lines · Jason A. Donenfeld

With no mod_exit function, users are unable to unload the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

Thanks!

Would someone be kind enough to remind when this appears and I will apply it to our product ? We like to use published commits when possible.

JD

Quoted 27 lines

---
v1->v2:
- Fix typo in commit message.

lib/crypto/chacha20poly1305.c | 5 +++++

1 file changed, 5 insertions(+)
lib/crypto/chacha20poly1305.c +5 -0
index 5850f3b87359..c2fcdb98cc02 100644
@@ -362,7 +362,12 @@ static int __init mod_init(void)
 	return 0;
 }
 
+static void __exit mod_exit(void)
+{
+}
+
 module_init(mod_init);
+module_exit(mod_exit);
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChaCha20Poly1305 AEAD construction");
 MODULE_AUTHOR("Jason A. Donenfeld <[email protected]>");
Signature · 1 line
2.30.0
author maintainer
#6 lore raw
Quoted 14 lines · John Donnelly
Quoted 13 lines · Jason A. Donenfeld

With no mod_exit function, users are unable to unload the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

Quoted 5 lines

Thanks!

Would someone be kind enough to remind when this appears and I will apply it to our product ? We like to use published commits when possible.

JD

It'll show up in one of these two repos in a week or two:
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/

maintainer
#7 lore raw
In reply to Jason A. Donenfeld
Quoted 8 lines · Jason A. Donenfeld

With no mod_exit function, users are unable to unload the module after use. I'm not aware of any reason why module unloading should be prohibited for this one, so this commit simply adds an empty exit function.

Quoted 6 lines

---
v1->v2:
- Fix typo in commit message.

 lib/crypto/chacha20poly1305.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt