From ceb7b8e5767aaac364d75c647ea130968e15f3ed Mon Sep 17 00:00:00 2001 From: that Date: Tue, 9 Dec 2014 23:15:16 +0100 Subject: crypto: fix build in < 5.0 tree Change-Id: Ie4ed3e91cfb7e509bac1d6db885bd3f415d2b168 --- crypto/lollipop/cryptfs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/lollipop/cryptfs.c') diff --git a/crypto/lollipop/cryptfs.c b/crypto/lollipop/cryptfs.c index 90f1523d3..c6586cc49 100644 --- a/crypto/lollipop/cryptfs.c +++ b/crypto/lollipop/cryptfs.c @@ -131,6 +131,7 @@ static int keymaster_check_compatibility() printf("keymaster version is %d\n", keymaster_dev->common.module->module_api_version); +#if (KEYMASTER_HEADER_VERSION >= 3) if (keymaster_dev->common.module->module_api_version < KEYMASTER_MODULE_API_VERSION_0_3) { rc = 0; @@ -141,6 +142,7 @@ static int keymaster_check_compatibility() rc = 1; } +#endif out: keymaster_close(keymaster_dev); return rc; -- cgit v1.2.3