package/xen: fix build with gcc 11
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 6 Aug 2021 21:25:06 +0000 (23:25 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 7 Aug 2021 08:46:48 +0000 (10:46 +0200)
commitb53cbf680c1ba6821722145752f239bf798cbbea
treeac71b85fb21c9e5bd4f0eb36327ea62ebbaea71e
parent8f7d7d9d86ecd4d43abaeed742ce691e46302276
package/xen: fix build with gcc 11

Fix the following build failure with gcc 11:

linux.c:165:50: error: argument 7 of type 'const xen_pfn_t[]' {aka 'const long long unsigned int[]'} declared as an ordinary array [-Werror=vla-parameter]
  165 |                                  const xen_pfn_t arr[/*num*/], int err[/*num*/])
      |                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from linux.c:29:
private.h:35:50: note: previously declared as a variable length array 'const xen_pfn_t[num]' {aka 'const long long unsigned int[num]'}
   35 |                                  const xen_pfn_t arr[num], int err[num]);
      |                                  ~~~~~~~~~~~~~~~~^~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/f70d060cf50254694113f19f50a8ef96ef33dd1a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/xen/0002-libs-foreignmemory-Fix-osdep_xenforeignmemory_map-prototype.patch [new file with mode: 0644]