]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostcpu: Fix non-Linux virHostCPUGetPhysAddrSize() stub
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2022 08:27:56 +0000 (10:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2022 08:41:11 +0000 (10:41 +0200)
commit155416ed77120d2c5615b66fa8a96c36feb3f439
tree0977a4a11417fad8613a993ebce00e7dcf63f9c8
parent1c1a7cdd4096c59fb0c374529e1e5aea8d43ee9c
virhostcpu: Fix non-Linux virHostCPUGetPhysAddrSize() stub

The non-Linux version of virHostCPUGetPhysAddrSize() is lacking
G_GNUC_UNUSED attribute to its @size argument which triggers an
error on all non-Linux builds. And while at it, make the function
actually signal error (ENOSYS) since it does not set the
argument.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virhostcpu.c