Re: [BUG -next] ./usr/include/cxl/features.h:11:10: fatal error: uuid/uuid.h: No such file or directory
From: Dave Jiang
Date: Fri Mar 28 2025 - 16:03:49 EST
On 3/28/25 10:39 AM, Paul E. McKenney wrote:
> Hello!
>
> In next-20250328 and next-20250327, allmodconfig builds get me:
>
> ./usr/include/cxl/features.h:11:10: fatal error: uuid/uuid.h: No such file or directory
>
> This file is apparently auto-generated, because when I change the #include
> to the more likely linux/uuid.h, my changes are overwritten by the build.
>
> Gregory Price noted that something similar has happened recently and been fixed:
>
> https://lore.kernel.org/all/70ba4e80-53c4-4583-82f3-2851e0829aa6@xxxxxxxxxxxxx/
>
> Perhaps someone unfixed it?
>
> Thanx, Paul
I can't get the powerpc cross build to build to reproduce the issue from next-20250328. Does the change below address the issue for you?
---
diff --git a/include/uapi/cxl/features.h b/include/uapi/cxl/features.h
index d6db8984889f..691eeda9c892 100644
--- a/include/uapi/cxl/features.h
+++ b/include/uapi/cxl/features.h
@@ -8,11 +8,7 @@
#define _UAPI_CXL_FEATURES_H_
#include <linux/types.h>
-#ifndef __KERNEL__
-#include <uuid/uuid.h>
-#else
#include <linux/uuid.h>
-#endif
/*
* struct cxl_mbox_get_sup_feats_in - Get Supported Features input