]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
remove LIBUUID things from nvme.h
authorMinwoo Im <minwoo.im@samsung.com>
Tue, 3 Sep 2019 01:25:37 +0000 (10:25 +0900)
committer임민우/MINWOOIM <minwoo.im@samsungds.net>
Tue, 3 Sep 2019 01:28:41 +0000 (10:28 +0900)
We have this structure in linux/nvme.h already.

cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -I. -DNVME_VERSION='"1.9.22.g6936.dirty"' -Iutil -o nvme-print.o -c nvme-print.c
In file included from nvme.h:35:0,
                 from nvme-print.h:4,
                 from nvme-print.c:7:
linux/nvme.h:24:3: error: conflicting types for ‘uuid_t’
 } uuid_t;
   ^~~~~~
In file included from nvme-print.h:4:0,
                 from nvme-print.c:7:
nvme.h:32:3: note: previous declaration of ‘uuid_t’ was here
 } uuid_t;
   ^~~~~~
Makefile:70: recipe for target 'nvme-print.o' failed

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
nvme.h

diff --git a/nvme.h b/nvme.h
index 2564e7603599fc09d861d2ef5085eb9541328b98..6d745b66c339c632f31545aca9636935a853dabc 100644 (file)
--- a/nvme.h
+++ b/nvme.h
 
 #define unlikely(x) x
 
-#ifdef LIBUUID
-#include <uuid/uuid.h>
-#else
-typedef struct {
-       uint8_t b[16];
-} uuid_t;
-#endif
-
 #include "linux/nvme.h"
 
 struct nvme_effects_log_page {