--- zzzz-none-000/linux-2.6.32.61/crypto/testmgr.c 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/crypto/testmgr.c 2013-06-10 13:35:47.000000000 +0000 @@ -47,6 +47,8 @@ #define ENCRYPT 1 #define DECRYPT 0 +#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS + struct tcrypt_result { struct completion completion; int err; @@ -2434,8 +2436,11 @@ return -1; } +#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ + int alg_test(const char *driver, const char *alg, u32 type, u32 mask) { +#ifndef CONFIG_CRYPTO_MANAGER_NO_TESTS int i; int j; int rc; @@ -2490,5 +2495,8 @@ return 0; non_fips_alg: return -EINVAL; +#else /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ + return 0; +#endif /* CONFIG_CRYPTO_MANAGER_NO_TESTS */ } EXPORT_SYMBOL_GPL(alg_test);