Re: [PATCH v2] KVM: selftests: Replace ulong with unsigned long

Hisam Mehboob <[email protected]>
Newsgroups org.kernel.vger.linux-kselftest,org.kernel.vger.kvm
Message-ID <[email protected]>
On 8/18/26 21:27, Sean Christopherson wrote:

> Oh, so on top of "https://github.com/kvm-x86/linux.git next", this *is* the last
> blocker?  If so, then I'll grab this for 7.3.

Not quite -- I tested kvm-x86/next + this patch with musl-gcc, and the
build still fails. On top of the steal_time fix already in your tree,
two more musl blockers remain, both from code that is only in
kvm-x86/next so far:

1. hardware_disable_test.c, from 496779b54943 ("Pre-set threads affinity
    in hardware disable test when possible"):

      hardware_disable_test.c:75: error: implicit declaration of function
      'pthread_attr_setaffinity_np'

    The call sits under #ifdef _GNU_SOURCE, but lib.mk defines _GNU_SOURCE
    unconditionally, so the path is always taken and musl (which lacks the
    function) breaks.

2. The libvfio wiring from a262fc49e0aa ("Build and link
    selftests/vfio/lib into KVM selftests"):

      vfio_pci_device.c:25: fatal error: uuid/uuid.h: No such file or 
directory
      sysfs.c:31: error: implicit declaration of function 'basename'

    The former adds a hard libuuid dependency (its headers aren't visible
    to musl-gcc here); the latter because musl declares basename only in
    <libgen.h>, while glibc exposes it via <string.h> under _GNU_SOURCE.

The rseq __GNUC_PREREQ failure is already covered by my patch in
linux-next. With the above sorted, the musl build passes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.