summaryrefslogtreecommitdiff
path: root/crypto/algboss.c
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2010-12-13 16:07:39 -0500
committerJustin Waters <justin.waters@timesys.com>2010-12-13 16:07:39 -0500
commitf1a2e7b6191168ee30964dbdc7810d07b9ee2add (patch)
tree4cc03c452f6357a4a694165d28cdd5b44d9aefb2 /crypto/algboss.c
parent9fe6206f400646a2322096b56c59891d530e8d51 (diff)
Linux 2.6.35.3 Patch
Diffstat (limited to 'crypto/algboss.c')
-rw-r--r--crypto/algboss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/algboss.c b/crypto/algboss.c
index c3c196b5823a..40bd391f34d9 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;