[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging-4.15] libs/foreignmemory: Fix osdep_xenforeignmemory_map prototype



commit d8a530ebc36ab242ba3fa3d83baaf4f68b1029ab
Author:     Anthony PERARD <anthony.perard@xxxxxxxxxx>
AuthorDate: Thu Jul 15 09:20:10 2021 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jul 15 09:20:10 2021 +0200

    libs/foreignmemory: Fix osdep_xenforeignmemory_map prototype
    
    Commit cf8c4d3d13b8 made some preparation to have one day
    variable-length-array argument, but didn't declare the array in the
    function prototype the same way as in the function definition. And now
    GCC 11 complains about it.
    
    Fixes: cf8c4d3d13b8 ("tools/libs/foreignmemory: pull array length argument 
to map forward")
    Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
    master commit: 5d3e4ebb5c71477d74a0c503438545a0126d3863
    master date: 2021-06-15 18:07:58 +0100
---
 tools/libs/foreignmemory/private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libs/foreignmemory/private.h 
b/tools/libs/foreignmemory/private.h
index 1ee3626dd2..5bb0cefb09 100644
--- a/tools/libs/foreignmemory/private.h
+++ b/tools/libs/foreignmemory/private.h
@@ -32,7 +32,7 @@ int osdep_xenforeignmemory_close(xenforeignmemory_handle 
*fmem);
 void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem,
                                  uint32_t dom, void *addr,
                                  int prot, int flags, size_t num,
-                                 const xen_pfn_t arr[num], int err[num]);
+                                 const xen_pfn_t arr[/*num*/], int 
err[/*num*/]);
 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem,
                                  void *addr, size_t num);
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.15



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.