GNU Linux-libre 4.9-gnu1
[releases.git] / drivers / staging / lustre / lustre / include / lustre_ver.h
1 #ifndef _LUSTRE_VER_H_
2 #define _LUSTRE_VER_H_
3
4 #define LUSTRE_MAJOR 2
5 #define LUSTRE_MINOR 6
6 #define LUSTRE_PATCH 99
7 #define LUSTRE_FIX 0
8 #define LUSTRE_VERSION_STRING "2.6.99"
9
10 #define OBD_OCD_VERSION(major, minor, patch, fix)                       \
11         (((major) << 24) + ((minor) << 16) + ((patch) << 8) + (fix))
12
13 #define OBD_OCD_VERSION_MAJOR(version)  ((int)((version) >> 24) & 255)
14 #define OBD_OCD_VERSION_MINOR(version)  ((int)((version) >> 16) & 255)
15 #define OBD_OCD_VERSION_PATCH(version)  ((int)((version) >>  8) & 255)
16 #define OBD_OCD_VERSION_FIX(version)    ((int)((version) >>  0) & 255)
17
18 #define LUSTRE_VERSION_CODE                                             \
19         OBD_OCD_VERSION(LUSTRE_MAJOR, LUSTRE_MINOR, LUSTRE_PATCH, LUSTRE_FIX)
20
21 /*
22  * If lustre version of client and servers it connects to differs by more
23  * than this amount, client would issue a warning.
24  */
25 #define LUSTRE_VERSION_OFFSET_WARN OBD_OCD_VERSION(0, 4, 0, 0)
26
27 #endif