Re: [RFC PATCH] samples: mei: Fix building on musl libc
From: Brahmajit Das
Date: Tue Jul 01 2025 - 10:39:03 EST
On 01.07.2025 07:13, Greg KH wrote:
> On Tue, Jul 01, 2025 at 02:14:30AM +0530, Brahmajit Das wrote:
> > The header bits/wordsize.h is glibc specific and on building on musl
> > with allyesconfig results in
> >
> > samples/mei/mei-amt-version.c:77:10: fatal error: bits/wordsize.h: No such file or directory
> > 77 | #include <bits/wordsize.h>
> > | ^~~~~~~~~~~~~~~~~
> >
> > mei-amt-version.c build file without bits/wordsize.h on musl. I'm not
> > sure we can remove the header completely or how it's used under glibc.
>
> Can you look into that instead of just adding a #ifdef that might not
> actually be needed?
>
> thanks,
>
> greg k-h
Did some testing and it seems like we can remove the bits/wordsize.h. It
does not affect build on either glibc or musl.
I'll send a patch.
--
Regards,
listout