[PATCH 25/38] crypto: drbg - Move module aliases to end of file

From: Eric Biggers

Date: Mon Apr 20 2026 - 02:42:47 EST


Move the MODULE_ALIAS_CRYPTO lines in the middle of the file to the end
so that they are in the usual place and next to the other one.

Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
---
crypto/drbg.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/crypto/drbg.c b/crypto/drbg.c
index c29f4ca93d1b..439581d7bb83 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -157,13 +157,10 @@ static int drbg_uninstantiate(struct drbg_state *drbg);

/******************************************************************
* HMAC DRBG functions
******************************************************************/

-MODULE_ALIAS_CRYPTO("drbg_pr_hmac_sha512");
-MODULE_ALIAS_CRYPTO("drbg_nopr_hmac_sha512");
-
/* update function of HMAC DRBG as defined in 10.1.2.2 */
static void drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed,
int reseed)
{
int i = 0;
@@ -881,5 +878,7 @@ module_init(drbg_init);
module_exit(drbg_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Stephan Mueller <smueller@xxxxxxxxxx>");
MODULE_DESCRIPTION("NIST SP800-90A Deterministic Random Bit Generator (DRBG)");
MODULE_ALIAS_CRYPTO("stdrng");
+MODULE_ALIAS_CRYPTO("drbg_pr_hmac_sha512");
+MODULE_ALIAS_CRYPTO("drbg_nopr_hmac_sha512");
--
2.53.0