From patchwork Mon Jun 5 08:41:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Dyasli X-Patchwork-Id: 9765887 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF88560364 for ; Mon, 5 Jun 2017 08:44:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD0D827E5A for ; Mon, 5 Jun 2017 08:44:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C014D27F86; Mon, 5 Jun 2017 08:44:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4BB1027E5A for ; Mon, 5 Jun 2017 08:44:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHnZz-0001Gu-JU; Mon, 05 Jun 2017 08:41:39 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHnZy-0001Gm-DU for xen-devel@lists.xenproject.org; Mon, 05 Jun 2017 08:41:38 +0000 Received: from [85.158.143.35] by server-11.bemta-6.messagelabs.com id 5A/1F-03587-14915395; Mon, 05 Jun 2017 08:41:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRWlGSWpSXmKPExsXitHSDva6jpGm kwZeHIhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8a+u1eYCp7xV7y4/Ze1gfEpbxcjJ4eEgL/E xLYF7CA2m4CexMbZr5hAbBEBF4n+bWfYQGxmgblMEi/m5oDYwgKWEgvu3mIBsVkEVCT+LXkL1 ssrYCux5dVXRoiZ8hK72i6ygthCAqoSr1/sYoGoEZQ4OfMJC8RMCYmDL14wT2DknoUkNQtJag Ej0ypGjeLUorLUIl1jQ72kosz0jJLcxMwcXUMDM73c1OLixPTUnMSkYr3k/NxNjMBgYACCHYx NiwIPMUpyMCmJ8p5eaxIpxJeUn1KZkVicEV9UmpNafIhRhoNDSYL3jLhppJBgUWp6akVaZg4w LGHSEhw8SiK84WJAad7igsTc4sx0iNQpRkUpcd4cCaCEAEgiozQPrg0WC5cYZaWEeRmBDhHiK Ugtys0sQZV/xSjOwagkzLsYZDtPZl4J3PRXQIuZgBbzXTIBWVySiJCSamBcn12lMHtbCVuHT9 P/6fF3jhkJl0ZGh53km5dTk+blxXNexGc/9+I/rClrFm4Xjpj8XCj3l9Thk1qHLXztPV9+f1P 459K7Mt5XU4OPWbrc4Nrj9ZJ50mbJHNMZ+vdrL4cVnBLcGsCaVvDbrLf4e47VgVLvTU9kMm0W HV4ueTB958VdgnejayyVWIozEg21mIuKEwHG/TGHgAIAAA== X-Env-Sender: prvs=322883ec6=sergey.dyasli@citrix.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1496652095!72158035!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 27178 invoked from network); 5 Jun 2017 08:41:37 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 5 Jun 2017 08:41:37 -0000 X-IronPort-AV: E=Sophos;i="5.39,300,1493683200"; d="scan'208";a="435132340" From: Sergey Dyasli To: , Date: Mon, 5 Jun 2017 09:41:08 +0100 Message-ID: <20170605084108.28844-1-sergey.dyasli@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Juergen Gross , Sergey Dyasli , Stefano Stabellini , Marc Zyngier , Julien Grall , Paul Durrant , Boris Ostrovsky Subject: [Xen-devel] [PATCH v1] xen: fix HYPERVISOR_dm_op() prototype X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Change the third parameter to be the required struct xen_dm_op_buf * instead of a generic void * (which blindly accepts any pointer). Signed-off-by: Sergey Dyasli --- arch/x86/include/asm/xen/hypercall.h | 3 ++- include/xen/arm/hypercall.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index f6d20f6cca12..e111ae874647 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h @@ -49,6 +49,7 @@ #include #include #include +#include /* * The hypercall asms have to meet several constraints: @@ -474,7 +475,7 @@ HYPERVISOR_xenpmu_op(unsigned int op, void *arg) static inline int HYPERVISOR_dm_op( - domid_t dom, unsigned int nr_bufs, void *bufs) + domid_t dom, unsigned int nr_bufs, struct xen_dm_op_buf *bufs) { return _hypercall3(int, dm_op, dom, nr_bufs, bufs); } diff --git a/include/xen/arm/hypercall.h b/include/xen/arm/hypercall.h index 73db4b2eeb89..d3a732d1ede8 100644 --- a/include/xen/arm/hypercall.h +++ b/include/xen/arm/hypercall.h @@ -38,6 +38,7 @@ #include #include #include +#include long privcmd_call(unsigned call, unsigned long a1, unsigned long a2, unsigned long a3, @@ -53,7 +54,8 @@ int HYPERVISOR_physdev_op(int cmd, void *arg); int HYPERVISOR_vcpu_op(int cmd, int vcpuid, void *extra_args); int HYPERVISOR_tmem_op(void *arg); int HYPERVISOR_vm_assist(unsigned int cmd, unsigned int type); -int HYPERVISOR_dm_op(domid_t domid, unsigned int nr_bufs, void *bufs); +int HYPERVISOR_dm_op(domid_t domid, unsigned int nr_bufs, + struct xen_dm_op_buf *bufs); int HYPERVISOR_platform_op_raw(void *arg); static inline int HYPERVISOR_platform_op(struct xen_platform_op *op) {