]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ext2fs,blkid: delete unused LIST_HEAD() macro
authorAndreas Dilger <adilger@dilger.ca>
Mon, 16 Dec 2013 04:26:38 +0000 (23:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Dec 2013 04:26:39 +0000 (23:26 -0500)
The LIST_HEAD() macro conflicts with the <sys/queue.h> declaration
of the same name.  Delete the unused LIST_HEAD() macro from the
libext2fs and libblkid headers to avoid compiler warnings.  It can
be replaced by INIT_LIST_HEAD() or LIST_HEAD_INIT() if needed.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/list.h
lib/ext2fs/kernel-list.h

index c1cbfec59cbf9ee5923ab81675286f11e6f1f0a5..26a5ac1b4cb58afe21e86555119685cbad5bf8c2 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined(_BLKID_LIST_H) && !defined(LIST_HEAD)
+#if !defined(_BLKID_LIST_H) && !defined(LIST_HEAD_INIT)
 #define _BLKID_LIST_H
 
 #ifdef __cplusplus
@@ -27,9 +27,6 @@ struct list_head {
 
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
 
-#define LIST_HEAD(name) \
-       struct list_head name = LIST_HEAD_INIT(name)
-
 #define INIT_LIST_HEAD(ptr) do { \
        (ptr)->next = (ptr); (ptr)->prev = (ptr); \
 } while (0)
index e07d06b6b7f7c193ead4b9aa177c1716259e1dc4..01f4f6b95f3e62430b6e636603ccc4637be34896 100644 (file)
@@ -17,9 +17,6 @@ struct list_head {
 
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
 
-#define LIST_HEAD(name) \
-       struct list_head name = { &name, &name }
-
 #define INIT_LIST_HEAD(ptr) do { \
        (ptr)->next = (ptr); (ptr)->prev = (ptr); \
 } while (0)