[Intel-wired-lan] [tnguy-net-queue:dev-queue 2/12] include/linux/build_bug.h:78:41: error: static assertion failed: "sizeof(__uapi_uuid_t) == sizeof(uuid_t) && __alignof__(__uapi_uuid_t) == __alignof__(uuid_t)"
Jason Gunthorpe
jgg at nvidia.com
Thu Apr 10 11:59:56 UTC 2025
On Wed, Apr 09, 2025 at 07:01:29PM -0700, Dan Williams wrote:
> diff --git a/include/uapi/cxl/features.h b/include/uapi/cxl/features.h
> index dd8874860cec..06a1ae3f3fd0 100644
> --- a/include/uapi/cxl/features.h
> +++ b/include/uapi/cxl/features.h
> @@ -14,7 +14,8 @@ typedef unsigned char __uapi_uuid_t[16];
> #ifdef __KERNEL__
> #include <linux/uuid.h>
> static_assert(sizeof(__uapi_uuid_t) == sizeof(uuid_t) &&
> - __alignof__(__uapi_uuid_t) == __alignof__(uuid_t));
> + __alignof__(struct { __uapi_uuid_t uuid; }) ==
> + __alignof__(struct { uuid_t uuid; }));
Really? I'm surprised that the struct wrapper increases the
alignment..
Jason
More information about the Intel-wired-lan
mailing list