X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flstddef.h;h=46e290174af47522a3f3772c3d6d211144a0bdc5;hp=7b785a7fa231ae90cb818136f9a10e15106a0cda;hb=0ab950762cdec28636b6033c50a2e563c28ba954;hpb=b12c5467366f1ce66bf8fe9973803414c947c322 diff --git a/lustre/utils/lstddef.h b/lustre/utils/lstddef.h index 7b785a7..46e2901 100644 --- a/lustre/utils/lstddef.h +++ b/lustre/utils/lstddef.h @@ -1,8 +1,11 @@ #ifndef _LSTDDEF_H #define _LSTDDEF_H +#include #include #include +#include +#include #define __ALIGN_LSTDDEF_MASK(x, mask) (((x) + (mask)) & ~(mask)) #define __ALIGN_LSTDDEF(x, a) __ALIGN_LSTDDEF_MASK(x, (typeof(x))(a) - 1) @@ -30,7 +33,6 @@ #define round_up(x, y) ((((x) - 1) | __round_mask(x, y)) + 1) #define round_down(x, y) ((x) & ~__round_mask(x, y)) -#define FIELD_SIZEOF(t, f) (sizeof(((t *)0)->f)) #define DIV_ROUND_UP __USER_DIV_ROUND_UP #define DIV_ROUND_DOWN_ULL(ll, d) \