From nobody Wed May 8 00:32:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1622562134; cv=none; d=zohomail.com; s=zohoarc; b=RHfnhhVtfJJQdpofPlXAjQ44Wf7q6xOnICnorztwQKSRMUxxLfcJpg+S64duB+s98/Ho3rHqGrExJYFDq30U5cONQb6Kph9ATNJdY+TNkNzsk7TK+EOcsovSnJfNZMPygt34oDF1qdOZENuf4ArAyn5CwOL2L5Lgo7Pzda5YDnI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622562134; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=22Ez76tD3Nc3+Vn+7YQPPBq8C4DFj+fM+WYQw0Qo5TM=; b=XhBE6a5twEd7zlELO/LMcgm5mHBzxX4Ej7Ch7THd6LLf0BhCVqRqybD294QmsoAd9hI4oHCHTBMfkqmrIcJDs7UcudRYDicc++8kFlw87MtDnKo/ZSG9s2UqMOY5bmTulSbp7yomfbL0zLySyjgaJ9/wKx3qCjsyJ55O63AGI3U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1622562134644218.90949663267827; Tue, 1 Jun 2021 08:42:14 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.134933.250918 (Exim 4.92) (envelope-from ) id 1lo6Wj-0007Gq-QO; Tue, 01 Jun 2021 15:41:57 +0000 Received: by outflank-mailman (output) from mailman id 134933.250918; Tue, 01 Jun 2021 15:41:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lo6Wj-0007Gj-Mq; Tue, 01 Jun 2021 15:41:57 +0000 Received: by outflank-mailman (input) for mailman id 134933; Tue, 01 Jun 2021 15:41:56 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lo6Wi-0007Gd-Q4 for xen-devel@lists.xenproject.org; Tue, 01 Jun 2021 15:41:56 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 170f7a4f-90b0-43e8-84cc-37ab07740112; Tue, 01 Jun 2021 15:41:56 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 170f7a4f-90b0-43e8-84cc-37ab07740112 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1622562115; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uGDUR96hUGFk1aFgdFn9czWUWD+ZG6iEEz3pTgysQ1E=; b=bt6G+er2sFla8Udp5gep3ZtlDeBFmBzXVGr+AuIdM5HkFvSZckqr1Oh9 WE/QI8xLSNf6z5UvyzN7cGH7U48EnykUFVN4UZjwqer10HysvqybB5ocu Ng5zAREYqGvkq51iBZzghR/9GhbvtSPktUOYGj31RqLdTC1Qv4yR6WJ22 w=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: 7+OO+9ynfigWsQ/frsj5JP43RgOC+SumdwtP6gmlJXQ8DYKI8oNrsqP/eROxyCgW1AbucYXRtI uTDM+xbsGDu6C2tW+Pgq228LuAWciuUbZYs+pw1Q/A3HKQl29RQULK/Oh2FhFfNlp42P9rP/qE Z1BawY8gYyygo0KNxa0czREV09ryxHoJ2GnOL7GQakZ5TvYR0Q8cZ7akvtFUrzJIV6owPcaDUq +sSzOGAYBdH5z5cLjLnEHN2cOeJg4ltER+gYIs2wvU1hO514ltG0TPiEJUTXzIDPAxIRLFZhIb xk0= X-SBRS: 5.1 X-MesageID: 45055839 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:HEw44q1m0v9eYvNQKlxD0gqjBEgkLtp133Aq2lEZdPU0SKGlfg 6V/MjztCWE7Ar5PUtLpTnuAsa9qB/nm6KdgrNhWItKPjOW21dARbsKheffKlXbcBEWndQtt5 uIHZIeNDXxZ2IK8PoT4mODYqodKA/sytHWuQ/cpU0dMz2Dc8tbnmBE4p7wKDwMeOFBb6BJcq a01458iBeLX28YVci/DmltZZm4mzWa/KiWGCLvHnQcmXGzsQ8= X-IronPort-AV: E=Sophos;i="5.83,240,1616472000"; d="scan'208";a="45055839" From: Anthony PERARD To: CC: Anthony PERARD , Ian Jackson , Wei Liu Subject: [XEN PATCH] libs/foreignmemory: Fix osdep_xenforeignmemory_map prototype Date: Tue, 1 Jun 2021 16:41:47 +0100 Message-ID: <20210601154147.55799-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Jan Beulich --- 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 1ee3626dd278..5bb0cefb0987 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[/*n= um*/]); int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, void *addr, size_t num); =20 --=20 Anthony PERARD