mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ANDROID: GKI: fix up crc issue in crypto_get_default_null_skcipher()
In commite27244cbe1("crypto: null - Use spin lock instead of mutex"), the .h files get shuffled around a bit, which causes a CRC mismatch in crypto_get_default_null_skcipher(). Put them back to the way they were if we are calculating crcs, to keep the build clean. Bug: 161946584 Fixes:e27244cbe1("crypto: null - Use spin lock instead of mutex") Change-Id: I7d1490944efbbd3bdc99e4116014b5f32ab3d708 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -17,7 +17,11 @@
|
||||
#include <crypto/internal/skcipher.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/module.h>
|
||||
#ifdef __GENKSYMS__ // CRC fix for e307c54ac819 ("crypto: null - Use spin lock instead of mutex")
|
||||
#include <linux/mm.h>
|
||||
#else
|
||||
#include <linux/spinlock.h>
|
||||
#endif
|
||||
#include <linux/string.h>
|
||||
|
||||
static DEFINE_SPINLOCK(crypto_default_null_skcipher_lock);
|
||||
|
||||
Reference in New Issue
Block a user