ANDROID: GKI: fix up crc issue in crypto_get_default_null_skcipher()

In commit 1b66a5920b ("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: 1b66a5920b ("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:
Greg Kroah-Hartman
2025-05-06 06:38:56 +00:00
parent c3e7212c79
commit 6fc7e69888

View File

@@ -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);