From 95909d7990de82f63fb665847079c06ff2409c35 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 8 Jun 2023 08:59:40 +0900 Subject: [PATCH] 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 --- net/wireguard/compat/compat.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/net/wireguard/compat/compat.h b/net/wireguard/compat/compat.h index 8e47d4c4a296..cf5b3fe915d0 100644 --- a/net/wireguard/compat/compat.h +++ b/net/wireguard/compat/compat.h @@ -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 static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2,