From 13c4af06ad524f2bb733f1a7f27d6787332391bd Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 24 Jun 2022 15:45:21 +0200 Subject: [PATCH] ANDROID: re-export [un]register_random_ready_notifier() Commit e61717947af5 ("crypto: drbg - make reseeding from get_random_bytes() synchronous") removed the export from register_random_ready_notifier() and unregister_random_ready_notifier() but we still have external modules using those functions at the moment (fips, {sigh}) So export them again for now until that gets fixed up... Fixes: e61717947af5 ("crypto: drbg - make reseeding from get_random_bytes() synchronous") Signed-off-by: Greg Kroah-Hartman Change-Id: I682a4f2bfcee69f207644b7d23e0e4d9b60930f0 --- drivers/char/random.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/char/random.c b/drivers/char/random.c index e2f1fce8dc97..ca17a658c214 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -163,6 +163,7 @@ int __cold register_random_ready_notifier(struct notifier_block *nb) spin_unlock_irqrestore(&random_ready_chain_lock, flags); return ret; } +EXPORT_SYMBOL(register_random_ready_notifier); /* * Delete a previously registered readiness callback function. @@ -177,6 +178,7 @@ int __cold unregister_random_ready_notifier(struct notifier_block *nb) spin_unlock_irqrestore(&random_ready_chain_lock, flags); return ret; } +EXPORT_SYMBOL(unregister_random_ready_notifier); static void __cold process_random_ready_list(void) {