mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ODROID: Remove le32_to_cpu_array, cpu_to_le32_array functions.
This commit contains le32_to_cpu_array, cpu_to_le32_array functions. "crypto: Deduplicate le32_to_cpu_array() and cpu_to_le32_array()" Change-Id: Ida8d6f0ba3f6a4930e34481dd6ad022fad663ab0
This commit is contained in:
@@ -664,23 +664,6 @@ static inline void *skb_put_data(struct sk_buff *skb, const void *data, unsigned
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)
|
||||
static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
|
||||
{
|
||||
while (words--) {
|
||||
__le32_to_cpus(buf);
|
||||
buf++;
|
||||
}
|
||||
}
|
||||
static inline void cpu_to_le32_array(u32 *buf, unsigned int words)
|
||||
{
|
||||
while (words--) {
|
||||
__cpu_to_le32s(buf);
|
||||
buf++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
|
||||
#include <crypto/algapi.h>
|
||||
static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2,
|
||||
|
||||
Reference in New Issue
Block a user