* [PATCH] erofs-utils: mkfs: fix uuid.h location
[not found] <20201209004937.1672-1-hsiangkao.ref@aol.com>
@ 2020-12-09 0:49 ` Gao Xiang via Linux-erofs
2020-12-12 9:04 ` Li GuiFu via Linux-erofs
0 siblings, 1 reply; 2+ messages in thread
From: Gao Xiang via Linux-erofs @ 2020-12-09 0:49 UTC (permalink / raw)
To: linux-erofs; +Cc: Karel Zak
From: Gao Xiang <hsiangkao@aol.com>
As Karel reported [1], "The subdirectory in
#include <uuid/uuid.h>
is unnecessary (or wrong), if you use
PKG_CHECK_MODULES([libuuid], [uuid])
than it returns the subdirectory as -I, see
$ pkg-config --cflags uuid
-I/usr/include/uuid
so the correct way is
#include <uuid.h>". Let's fix it now!
[1] https://lore.kernel.org/r/20201208100910.dqqh5cqihewkyetc@ws.net.home
Reported-by: Karel Zak <kzak@redhat.com>
Fixes: e023d47593ff ("erofs-utils: support 128-bit filesystem UUID")
Signed-off-by: Gao Xiang <hsiangkao@aol.com>
---
mkfs/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkfs/main.c b/mkfs/main.c
index c63b27491a3f..abd48be0fa4f 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -24,7 +24,7 @@
#include "erofs/exclude.h"
#ifdef HAVE_LIBUUID
-#include <uuid/uuid.h>
+#include <uuid.h>
#endif
#define EROFS_SUPER_END (EROFS_SUPER_OFFSET + sizeof(struct erofs_super_block))
--
2.24.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] erofs-utils: mkfs: fix uuid.h location
2020-12-09 0:49 ` [PATCH] erofs-utils: mkfs: fix uuid.h location Gao Xiang via Linux-erofs
@ 2020-12-12 9:04 ` Li GuiFu via Linux-erofs
0 siblings, 0 replies; 2+ messages in thread
From: Li GuiFu via Linux-erofs @ 2020-12-12 9:04 UTC (permalink / raw)
To: Gao Xiang, linux-erofs; +Cc: Karel Zak
On 2020/12/9 8:49, Gao Xiang via Linux-erofs wrote:
> From: Gao Xiang <hsiangkao@aol.com>
>
> As Karel reported [1], "The subdirectory in
> #include <uuid/uuid.h>
>
> is unnecessary (or wrong), if you use
> PKG_CHECK_MODULES([libuuid], [uuid])
>
> than it returns the subdirectory as -I, see
>
> $ pkg-config --cflags uuid
> -I/usr/include/uuid
>
> so the correct way is
> #include <uuid.h>". Let's fix it now!
>
> [1] https://lore.kernel.org/r/20201208100910.dqqh5cqihewkyetc@ws.net.home
>
> Reported-by: Karel Zak <kzak@redhat.com>
> Fixes: e023d47593ff ("erofs-utils: support 128-bit filesystem UUID")
> Signed-off-by: Gao Xiang <hsiangkao@aol.com>
> ---
> mkfs/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
It looks good
Reviewed-by: Li Guifu <bluce.lee@aliyun.com>
Thanks,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-12 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20201209004937.1672-1-hsiangkao.ref@aol.com>
2020-12-09 0:49 ` [PATCH] erofs-utils: mkfs: fix uuid.h location Gao Xiang via Linux-erofs
2020-12-12 9:04 ` Li GuiFu via Linux-erofs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).