summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2008-11-26 14:24:52 +0100
committerKarel Zak2008-11-26 14:24:52 +0100
commit76fe37dae132d50cbc2b42eb6aac23648339db0d (patch)
tree3a77208b5104d99cab4d8f3eff304eb28d1a02aa
parenttools: add checkconfig to top-level Makefile (diff)
downloadkernel-qcow2-util-linux-76fe37dae132d50cbc2b42eb6aac23648339db0d.tar.gz
kernel-qcow2-util-linux-76fe37dae132d50cbc2b42eb6aac23648339db0d.tar.xz
kernel-qcow2-util-linux-76fe37dae132d50cbc2b42eb6aac23648339db0d.zip
fdisk: rename ENABLE_CMDTAGQ macro
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--fdisk/fdisksgilabel.h2
-rwxr-xr-xtools/checkconfig.sh8
2 files changed, 8 insertions, 2 deletions
diff --git a/fdisk/fdisksgilabel.h b/fdisk/fdisksgilabel.h
index d69616ab8..a4704e4da 100644
--- a/fdisk/fdisksgilabel.h
+++ b/fdisk/fdisksgilabel.h
@@ -56,7 +56,7 @@ struct device_parameter { /* 48 bytes */
#define TRACK_MULTIVOL 0x08
#define IGNORE_ERRORS 0x10
#define RESEEK 0x20
-#define ENABLE_CMDTAGQ 0x40
+#define CMDTAGQ_ENABLE 0x40
typedef struct {
unsigned int magic; /* expect SGI_LABEL_MAGIC */
diff --git a/tools/checkconfig.sh b/tools/checkconfig.sh
index c5f307387..984e72bea 100755
--- a/tools/checkconfig.sh
+++ b/tools/checkconfig.sh
@@ -30,8 +30,14 @@ while (( "$#" )); do
[ ! -f "$srcfile" ] && continue;
+ # Note that we use HAVE_ macros since util-linux-ng-2.14. The
+ # previous version also have used ENABLE_ too.
+ #
+ # ENABLE_ and HAVE_ macros shouldn't be used for any other pupose that
+ # for config/build options.
+ #
DEFINES=$(sed -n -e 's/.*[ \t(]\+\(HAVE_[[:alnum:]]\+[^ \t);]*\).*/\1/p' \
- -e 's/.*[ \t(]\+\(ENABLE_[[:alnum:]]\+[^ \t);]*\).*/\1/p' \
+ -e 's/.*[ \t(]\+\(ENABLE_[[:alnum:]]\+[^ \t);]*\).*/\1/p' \
$srcfile | sort -u)
[ -z "$DEFINES" ] && continue