summaryrefslogtreecommitdiffhomepage
path: root/src/compat
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-09-26 15:30:58 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-02 03:41:49 +0200
commit5177640165ea46c981092e041aee2974e59fe9d3 (patch)
tree5521f9ef6d5674736a30e45eedc8b3b21e2ecc30 /src/compat
parent6be4d32b26c0ff5603edb3067c18bbb96ddb302d (diff)
compat: kernels < 3.17 don't have read_cpuid_part
Use read_cpuid_part_number, which was the same thing before upstream commit af040ffc9ba1 ("ARM: make it easier to check the CPU part number correctly"). Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 472c540..17606f5 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -726,6 +726,10 @@ static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2,
}
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
+#define read_cpuid_part() read_cpuid_part_number()
+#endif
+
/* https://lkml.kernel.org/r/20170624021727.17835-1-Jason@zx2c4.com */
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
#include <linux/ip.h>