qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2
@ 2025-08-07 20:49 Michael Tokarev
  2025-08-07 20:49 ` [PULL 1/2] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT Michael Tokarev
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Tokarev @ 2025-08-07 20:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial

The following changes since commit cd21ee5b27b22ae66c103d36516aa5077881aa3d:

  Merge tag 'ui-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging (2025-08-07 11:02:50 -0400)

are available in the Git repository at:

  https://gitlab.com/mjt0k/qemu.git tags/pull-trivial-patches

for you to fetch changes up to fa36bb8072a7ec2cee0d95bc0f927345de4ce8a9:

  meson: Fix brlapi compile test for Windows builds (2025-08-07 23:47:08 +0300)

----------------------------------------------------------------
trivial patches for 2025-08-07 v2

A fix for for a bugfix for mirror-sparse test,
and brlapi compile test fix for Windows builds.

----------------------------------------------------------------
Michael Tokarev (1):
      tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT

Stefan Weil (1):
      meson: Fix brlapi compile test for Windows builds

 meson.build                            | 8 +++++---
 tests/qemu-iotests/tests/mirror-sparse | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PULL 1/2] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT
  2025-08-07 20:49 [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Michael Tokarev
@ 2025-08-07 20:49 ` Michael Tokarev
  2025-08-07 20:49 ` [PULL 2/2] meson: Fix brlapi compile test for Windows builds Michael Tokarev
  2025-08-08 20:06 ` [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2025-08-07 20:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Tokarev, qemu-trivial

Commit c0ddcb2cbc146e introduced the test which uses cache=direct
mode, without checking if the scratch filesystem supports O_DIRECT.
A subsequent commit, afeb002e0ad49d, tried to fix that issue, but
instead of checking for o_direct, it checked for
`_supported_cache_modes none directsync`, which is not what the
original mirror-sparse test uses.  Fix both by actually checking
for o_direct.

Fixes: c0ddcb2cbc146e "tests: Add iotest mirror-sparse for recent patches"
Fixes: afeb002e0ad49d "tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported"
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 tests/qemu-iotests/tests/mirror-sparse | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/tests/mirror-sparse b/tests/qemu-iotests/tests/mirror-sparse
index 3b183eea88..ee7101bd50 100755
--- a/tests/qemu-iotests/tests/mirror-sparse
+++ b/tests/qemu-iotests/tests/mirror-sparse
@@ -40,7 +40,7 @@ cd ..
 _supported_fmt qcow2 raw  # Format of the source. dst is always raw file
 _supported_proto file
 _supported_os Linux
-_supported_cache_modes none directsync
+_require_o_direct
 _require_disk_usage
 
 echo
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PULL 2/2] meson: Fix brlapi compile test for Windows builds
  2025-08-07 20:49 [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Michael Tokarev
  2025-08-07 20:49 ` [PULL 1/2] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT Michael Tokarev
@ 2025-08-07 20:49 ` Michael Tokarev
  2025-08-08 20:06 ` [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2025-08-07 20:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Weil via, Michael Tokarev

From: Stefan Weil via <qemu-trivial@nongnu.org>

brlapi__openConnection returns a brlapi_fileDescriptor which is a pointer
for Windows builds.

The test for brlapi fails with cross builds on Debian trixie
(x86_64-w64-mingw32-gcc (GCC) 14-win32):

testfile.c:4:30: error: returning 'brlapi_fileDescriptor' {aka 'void *'} from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    4 |      int main(void) { return brlapi__openConnection (NULL, NULL, NULL); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------
../../../meson.build:1607: WARNING: could not link brlapi, disabling

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 meson.build | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meson.build b/meson.build
index a7b3c683ce..50c774a195 100644
--- a/meson.build
+++ b/meson.build
@@ -1586,9 +1586,11 @@ if not get_option('brlapi').auto() or have_system
   brlapi = cc.find_library('brlapi', has_headers: ['brlapi.h'],
                          required: get_option('brlapi'))
   if brlapi.found() and not cc.links('''
-     #include <brlapi.h>
-     #include <stddef.h>
-     int main(void) { return brlapi__openConnection (NULL, NULL, NULL); }''', dependencies: brlapi)
+    #include <brlapi.h>
+    #include <stddef.h>
+    int main(void) {
+      return brlapi__openConnection(NULL, NULL, NULL) == BRLAPI_INVALID_FILE_DESCRIPTOR;
+    }''', dependencies: brlapi)
     brlapi = not_found
     if get_option('brlapi').enabled()
       error('could not link brlapi')
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2
  2025-08-07 20:49 [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Michael Tokarev
  2025-08-07 20:49 ` [PULL 1/2] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT Michael Tokarev
  2025-08-07 20:49 ` [PULL 2/2] meson: Fix brlapi compile test for Windows builds Michael Tokarev
@ 2025-08-08 20:06 ` Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-08-08 20:06 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel, Michael Tokarev, qemu-trivial

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-08 20:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07 20:49 [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Michael Tokarev
2025-08-07 20:49 ` [PULL 1/2] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT Michael Tokarev
2025-08-07 20:49 ` [PULL 2/2] meson: Fix brlapi compile test for Windows builds Michael Tokarev
2025-08-08 20:06 ` [PULL for-10.1 0/2] Trivial patches for 2025-08-07 v2 Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).