infra: move crypto compat check

This commit is contained in:
Thomas Schoebel-Theuer 2019-02-20 11:45:06 +01:00 committed by Thomas Schoebel-Theuer
parent a8766f3016
commit ccd0063da6
2 changed files with 8 additions and 7 deletions

View File

@ -114,4 +114,12 @@ extern int _compat_unlink(
#define __HAS_STRUCT_NET
#endif
/* for crypto stuff */
#include <linux/crypto.h>
/* 896545098777564212b9e91af4c973f094649aa7 */
#ifndef crt_hash
#define HAS_NEW_CRYPTO
#endif
#endif /* _MARS_COMPAT */

View File

@ -126,13 +126,6 @@ EXPORT_SYMBOL_GPL(mars_timespec_meta);
// crypto stuff
#include <linux/crypto.h>
/* 896545098777564212b9e91af4c973f094649aa7 */
#ifndef crt_hash
#define HAS_NEW_CRYPTO
#endif
#ifdef HAS_NEW_CRYPTO
/* Nor now, use shash.