diff options
| author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-10-20 13:47:09 +0300 | 
|---|---|---|
| committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-10-20 13:47:09 +0300 | 
| commit | dd183c2c8000d42073d19fefc2740dc50bafd287 (patch) | |
| tree | d7033e3951cc78b870a716dd4105eedb0be39651 /mkfs.ubifs/defs.h | |
| parent | a167204782941dae63a3318a9c26bde040c7b049 (diff) | |
mkfs.ubifs: start using common code
Several commonly used macros are now defined in 'common.h', let's start using
them in mkfs.ubifs, instead of duplicating them.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'mkfs.ubifs/defs.h')
| -rw-r--r-- | mkfs.ubifs/defs.h | 15 | 
1 files changed, 0 insertions, 15 deletions
diff --git a/mkfs.ubifs/defs.h b/mkfs.ubifs/defs.h index 06cf9e5..1fa3316 100644 --- a/mkfs.ubifs/defs.h +++ b/mkfs.ubifs/defs.h @@ -29,21 +29,6 @@  #define le32_to_cpu(x) (t32((x)))  #define le64_to_cpu(x) (t64((x))) -#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) -#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) - -#define min_t(t,x,y) ({ \ -	typeof((x)) _x = (x); \ -	typeof((y)) _y = (y); \ -	(_x < _y) ? _x : _y; \ -}) - -#define max_t(t,x,y) ({ \ -	typeof((x)) _x = (x); \ -	typeof((y)) _y = (y); \ -	(_x > _y) ? _x : _y; \ -}) -  #define unlikely(x) (x)  #define ubifs_assert(x) ({})  | 
