diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-11-21 12:59:41 +0000 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-12-22 09:40:23 +0000 |
commit | e34cb44ac7c08783b98a16eec70125e205e6eb12 (patch) | |
tree | 1101d23f1a73e5627ae187b07c7a0cf8826e10d1 /backport-include/linux/version.h |
initial commit
Generated againts 4.14 kernel source with
git backports 1d8cc151d365582b42be00af776270b834a7a37d
Diffstat (limited to 'backport-include/linux/version.h')
-rw-r--r-- | backport-include/linux/version.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/backport-include/linux/version.h b/backport-include/linux/version.h new file mode 100644 index 0000000..2cb601a --- /dev/null +++ b/backport-include/linux/version.h @@ -0,0 +1,17 @@ +#ifndef _BP_LINUX_VERSION_H +#define _BP_LINUX_VERSION_H +#include_next <linux/version.h> + +#ifndef RHEL_RELEASE_VERSION +#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b)) +#endif + +#ifndef RHEL_RELEASE_CODE +#define RHEL_RELEASE_CODE 0 +#endif + +#define LINUX_VERSION_IS_LESS(x1,x2,x3) (LINUX_VERSION_CODE < KERNEL_VERSION(x1,x2,x3)) +#define LINUX_VERSION_IS_GEQ(x1,x2,x3) (LINUX_VERSION_CODE >= KERNEL_VERSION(x1,x2,x3)) +#define LINUX_VERSION_IN_RANGE(x1,x2,x3, y1,y2,y3) \ + (LINUX_VERSION_IS_GEQ(x1,x2,x3) && LINUX_VERSION_IS_LESS(y1,y2,y3)) +#endif /* _BP_LINUX_VERSION_H */ |