[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] configure: Update configure so that open_by_han
From: |
Aneesh Kumar K.V |
Subject: |
[Qemu-devel] [PATCH 2/8] configure: Update configure so that open_by_handle_at check returns correct value |
Date: |
Thu, 20 Oct 2011 21:47:34 +0530 |
From: "Aneesh Kumar K.V" <address@hidden>
According to David Gibson for some compiler/libc combinations, open_by_handle_at
test in configure isn't quite right: because the file_handle pointer is never
dereferenced, gcc doesn't complain even if it is undefined. Change the test
as suggested by him.
Signed-off-by: Aneesh Kumar K.V <address@hidden>
---
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 4f87e0a..19e8394 100755
--- a/configure
+++ b/configure
@@ -2562,7 +2562,7 @@ fi
open_by_hande_at=no
cat > $TMPC << EOF
#include <fcntl.h>
-int main(void) { struct file_handle *fh; open_by_handle_at(0, fh, 0); }
+int main(void) { struct file_handle fh; open_by_handle_at(0, &fh, 0); }
EOF
if compile_prog "" "" ; then
open_by_handle_at=yes
--
1.7.5.4
- [Qemu-devel] [PATCH 0/8] VirtFS update 7 for review, Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 2/8] configure: Update configure so that open_by_handle_at check returns correct value,
Aneesh Kumar K.V <=
- [Qemu-devel] [PATCH 1/8] hw/9pfs: Fix error handling in local_mknod, Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 7/8] qemu-queue: Introduce QLIST_INSERT_HEAD_RCU and dummy RCU wrappers., Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 3/8] qemu: Add opt_set_bool functionality, Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 8/8] hw/9pfs: Replace rwlocks with RCU variants of interfaces., Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 5/8] hw/9pfs: Abstract open state of fid to V9fsFidOpenState, Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 6/8] hw/9pfs: Add synthetic file system support using 9p, Aneesh Kumar K.V, 2011/10/20
- [Qemu-devel] [PATCH 4/8] hw/9pfs: Read-only support for 9p export, Aneesh Kumar K.V, 2011/10/20