From patchwork Tue Mar 25 16:55:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27076 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2904020539 for ; Tue, 25 Mar 2014 16:59:19 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf2590359iec.8 for ; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=onDVafmjbhIkJ/2yUhzgqclNAkMuO4YPHF3t9AOePPo=; b=ifOkWPZ3uGTNJCUyiJ9MdpV5qHqBQuvdZM+cFPeNbzu2MDMwugbEwj0PTgR4kl9dV6 rXsjWCsEMCTSCVDxXza5ZWeck4oLLrcvB84o8MyUjTm8j7VUCBJ/NgpekunQHgAINS1H YSa7c3aJs1bNDb/ozHknArsMSJRfP5SeDyuny18Bx80ROS6TncxPT2QI7OgYgt0BJIX7 tbHHkESOI1WfeUtlkjaFv+vEXqmJ8V1oLPj5O1BjKET8jcxmWrvFmfhXohMta02CPr3r g9nybGE5RWE+Po1wVT+sxjQl6kukhL1QrNo6KPMRFwWuy62B2C5wzyLHbeZZv+I6x0cp EnTw== X-Gm-Message-State: ALoCoQmuLzJ1lLeshoZex88HIYMn/IK1lbmMw7bvbUJLtcfL1YuwNIDF8YWzxH0qIIxisuO2+A0t X-Received: by 10.42.28.2 with SMTP id l2mr25353335icc.20.1395766758585; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.137 with SMTP id 9ls280180qgz.14.gmail; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr911115vcb.32.1395766758461; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id b5si1696034vej.191.2014.03.25.09.59.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:59:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so891664veb.14 for ; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) X-Received: by 10.52.65.165 with SMTP id y5mr419526vds.51.1395766758392; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp320468vck; Tue, 25 Mar 2014 09:59:18 -0700 (PDT) X-Received: by 10.60.102.37 with SMTP id fl5mr2268480oeb.65.1395766757770; Tue, 25 Mar 2014 09:59:17 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id e10si22862556oey.148.2014.03.25.09.59.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:59:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUew-0001Ib-3Z; Tue, 25 Mar 2014 16:57:06 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUes-00019Q-DA for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:57:02 +0000 Received: from [193.109.254.147:21335] by server-3.bemta-14.messagelabs.com id 38/32-22179-D55B1335; Tue, 25 Mar 2014 16:57:01 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-9.tower-27.messagelabs.com!1395766620!4081192!1 X-Originating-IP: [74.125.83.54] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10653 invoked from network); 25 Mar 2014 16:57:01 -0000 Received: from mail-ee0-f54.google.com (HELO mail-ee0-f54.google.com) (74.125.83.54) by server-9.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:57:01 -0000 Received: by mail-ee0-f54.google.com with SMTP id d49so676119eek.41 for ; Tue, 25 Mar 2014 09:57:00 -0700 (PDT) X-Received: by 10.14.115.1 with SMTP id d1mr70665341eeh.30.1395766620849; Tue, 25 Mar 2014 09:57:00 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:59 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:41 +0000 Message-Id: <1395766541-23979-35-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 34/34] DO NOT APPLY xen/common: kernel: Workaround clang 3.5 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: http://llvm.org/bugs/show_bug.cgi?id=19199 Signed-off-by: Julien Grall --- xen/common/kernel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index b371f8f..320c3fb 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -342,8 +342,9 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) case XENVER_guest_handle: { - if ( copy_to_guest(arg, current->domain->handle, - ARRAY_SIZE(current->domain->handle)) ) + struct domain *d = current->domain; + + if ( copy_to_guest(arg, d->handle, ARRAY_SIZE(d->handle)) ) return -EFAULT; return 0; }