X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Falgboss.c;h=40bd391f34d90fc0b0619809beb0f09759b307f5;hb=e981b060767b3c4ac9393ad8d2558d648e35dfcb;hp=c3c196b5823a2e12c790cce27b9ae8439c20d445;hpb=1f73897861b8ef0be64ff4b801f8d6f830f683b5;p=~andy%2Flinux diff --git a/crypto/algboss.c b/crypto/algboss.c index c3c196b5823..40bd391f34d 100644 --- a/crypto/algboss.c +++ b/crypto/algboss.c @@ -206,6 +206,7 @@ err: return NOTIFY_OK; } +#ifdef CONFIG_CRYPTO_MANAGER_TESTS static int cryptomgr_test(void *data) { struct crypto_test_param *param = data; @@ -266,6 +267,7 @@ err_put_module: err: return NOTIFY_OK; } +#endif /* CONFIG_CRYPTO_MANAGER_TESTS */ static int cryptomgr_notify(struct notifier_block *this, unsigned long msg, void *data) @@ -273,8 +275,10 @@ static int cryptomgr_notify(struct notifier_block *this, unsigned long msg, switch (msg) { case CRYPTO_MSG_ALG_REQUEST: return cryptomgr_schedule_probe(data); +#ifdef CONFIG_CRYPTO_MANAGER_TESTS case CRYPTO_MSG_ALG_REGISTER: return cryptomgr_schedule_test(data); +#endif } return NOTIFY_DONE;