From 2b4e2311ecd4cffe265e727d43b1595331cc1035 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 26 Sep 2018 15:30:58 -0700 Subject: 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 --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compat/compat.h') 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 -- cgit v1.2.3-59-g8ed1b