From 556eba183520821e6fb709253e3e12ba48a5fcdf Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 21 Apr 2016 20:52:12 +0200 Subject: [PATCH] cleanup: use kdev_t header in lvm tree Reuse libdm header in lvm so we have single definition of MAJOR/MINOR/MKDEV macros in use. --- lib/device/dev-type.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/device/dev-type.h b/lib/device/dev-type.h index 54945110e..6438b4462 100644 --- a/lib/device/dev-type.h +++ b/lib/device/dev-type.h @@ -21,9 +21,7 @@ #define NUMBER_OF_MAJORS 4096 #ifdef __linux__ -# define MAJOR(dev) (((dev) & 0xfff00) >> 8) -# define MINOR(dev) (((dev) & 0xff) | (((dev) >> 12) & 0xfff00)) -# define MKDEV(ma,mi) (((mi) & 0xff) | ((ma) << 8) | (((mi) & ~0xff) << 12)) +# include "kdev_t.h" #else # define MAJOR(x) major((x)) # define MINOR(x) minor((x))