diff options
Diffstat (limited to 'backport/backport-include/linux/bp-devcoredump.h')
-rw-r--r-- | backport/backport-include/linux/bp-devcoredump.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backport/backport-include/linux/bp-devcoredump.h b/backport/backport-include/linux/bp-devcoredump.h index 56b22751..1e4abf64 100644 --- a/backport/backport-include/linux/bp-devcoredump.h +++ b/backport/backport-include/linux/bp-devcoredump.h @@ -6,8 +6,8 @@ /* We only need to add our wrapper inside the range from 3.18 until * 4.6, outside that we can let our BPAUTO mechanism handle it. */ -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0) && \ - LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)) +#if (LINUX_VERSION_IS_GEQ(3,18,0) && \ + LINUX_VERSION_IS_LESS(4,7,0)) static inline void backport_dev_coredumpm(struct device *dev, struct module *owner, void *data, size_t datalen, gfp_t gfp, @@ -26,7 +26,7 @@ void backport_dev_coredumpm(struct device *dev, struct module *owner, void dev_coredumpsg(struct device *dev, struct scatterlist *table, size_t datalen, gfp_t gfp); -#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0) && \ - LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)) */ +#endif /* (LINUX_VERSION_IS_GEQ(3,18,0) && \ + LINUX_VERSION_IS_LESS(4,7,0)) */ #endif /* __BACKPORT_LINUX_DEVCOREDUMP_H */ |