]> xenbits.xensource.com Git - xen.git/commit
libs/foreignmemory: Fix osdep_xenforeignmemory_map prototype
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 1 Jun 2021 15:41:47 +0000 (16:41 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 15 Jun 2021 17:07:58 +0000 (18:07 +0100)
commit5d3e4ebb5c71477d74a0c503438545a0126d3863
treef98a055932a3904ab62e77a4983648d26b38410f
parent93c5f98296fc78de79d621418a1e62fd413e73d1
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@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libs/foreignmemory/private.h