oom: multi threaded process coredump don't make deadlock
[sfrench/cifs-2.6.git] / crypto / algboss.c
index c3c196b5823a2e12c790cce27b9ae8439c20d445..40bd391f34d90fc0b0619809beb0f09759b307f5 100644 (file)
@@ -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;