From: Minwoo Im Date: Tue, 3 Sep 2019 01:25:37 +0000 (+0900) Subject: remove LIBUUID things from nvme.h X-Git-Tag: v1.10~91^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1b526e64f713ee3d5e3b34cb40373f8e59c8318c;p=users%2Fsagi%2Fnvme-cli.git remove LIBUUID things from nvme.h 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 --- diff --git a/nvme.h b/nvme.h index 2564e760..6d745b66 100644 --- a/nvme.h +++ b/nvme.h @@ -24,14 +24,6 @@ #define unlikely(x) x -#ifdef LIBUUID -#include -#else -typedef struct { - uint8_t b[16]; -} uuid_t; -#endif - #include "linux/nvme.h" struct nvme_effects_log_page {