From nobody Mon Feb 9 21:19:46 2026 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=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1635780049; cv=none; d=zohomail.com; s=zohoarc; b=NU3A0R1OuFXzDviVdq/FLwZmspN3VLYkyjy0DckvTfGWQDeBc+PEcn02KpV2GUfbvueg2T/RLvmwKyLKbZQNgYaO/POn9Wf5isSjmtBSxZ73DZlQJx8KP1WtlHzyX19BCJnoxNG/539LTXDMaGA0SHxY54ny8GLftBTPUX23YhQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635780049; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vhomWgPmAB7x68Oplva3qmbUNlYIW6PdvMm3Ze/DnM0=; b=e6xFjfj9srgtqIgwCZekg7azyIUrxBrtnujtz5nCsl/GLmz6wXV/IS8fCrkrbqt4koh1oAPhOUG7UqeeM/YmakexBpsNhPdwNUR+tmAy6ponrunMuw2KNK/H1cNd8GhujWTLK75rlkvZjehMiOLb22Y2/YrrKlQUCmvXGv3dyWo= 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=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1635780049131491.1952934607707; Mon, 1 Nov 2021 08:20:49 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.219242.379963 (Exim 4.92) (envelope-from ) id 1mhZ6q-0000Nv-Lg; Mon, 01 Nov 2021 15:20:28 +0000 Received: by outflank-mailman (output) from mailman id 219242.379963; Mon, 01 Nov 2021 15:20:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mhZ6q-0000NA-Dj; Mon, 01 Nov 2021 15:20:28 +0000 Received: by outflank-mailman (input) for mailman id 219242; Mon, 01 Nov 2021 15:20:26 +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 1mhZ6o-0008DB-N4 for xen-devel@lists.xenproject.org; Mon, 01 Nov 2021 15:20:26 +0000 Received: from smtp-out2.suse.de (unknown [195.135.220.29]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 39e8e23f-3b27-11ec-8548-12813bfff9fa; Mon, 01 Nov 2021 15:20:21 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5931E1FD74; Mon, 1 Nov 2021 15:20:20 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2A54F13A4A; Mon, 1 Nov 2021 15:20:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IKMkCbQFgGFzNwAAMHmgww (envelope-from ); Mon, 01 Nov 2021 15:20:20 +0000 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: 39e8e23f-3b27-11ec-8548-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1635780020; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vhomWgPmAB7x68Oplva3qmbUNlYIW6PdvMm3Ze/DnM0=; b=iM/bCRPR8+4oxMRIz/ktO+tA0k1quuujIUtGLxzf5pFO2ufnnLy9cMrCJEPZmiHFoBOah1 wGeRFBF/1VuD1G+mzVTzoPVNBHJ+Pdo3HoFZmxkosfdld7SjUyZJUNMA1nCWxgQ3tTFwRC 5wWyCk/8JCaJ/DGFWwcjq2UDHTyIqdk= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu Subject: [PATCH v2 04/15] xen/x86: modify hvm_memory_op() prototype Date: Mon, 1 Nov 2021 16:20:04 +0100 Message-Id: <20211101152015.28488-5-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211101152015.28488-1-jgross@suse.com> References: <20211101152015.28488-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1635780051024100001 Content-Type: text/plain; charset="utf-8" hvm_memory_op() should take an unsigned long as cmd, like do_memory_op(). As hvm_memory_op() is basically just calling do_memory_op() (or compat_memory_op()) passing through the parameters the cmd parameter should have no smaller size than that of the called functions. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- xen/arch/x86/hvm/hypercall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hypercall.c b/xen/arch/x86/hvm/hypercall.c index 5be1050453..9d3b193bad 100644 --- a/xen/arch/x86/hvm/hypercall.c +++ b/xen/arch/x86/hvm/hypercall.c @@ -31,7 +31,7 @@ #include #include =20 -static long hvm_memory_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) +static long hvm_memory_op(unsigned long cmd, XEN_GUEST_HANDLE_PARAM(void) = arg) { long rc; =20 --=20 2.26.2