From patchwork Sat Nov 19 08:37:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 83091 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp505906qge; Sat, 19 Nov 2016 01:03:43 -0800 (PST) X-Received: by 10.107.84.2 with SMTP id i2mr2949374iob.225.1479546223391; Sat, 19 Nov 2016 01:03:43 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i206si4488395ita.70.2016.11.19.01.03.41; Sat, 19 Nov 2016 01:03:43 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B574360C06; Sat, 19 Nov 2016 09:03:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5A86D63503; Sat, 19 Nov 2016 08:46:33 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BC39060D21; Sat, 19 Nov 2016 08:45:34 +0000 (UTC) Received: from mail-pg0-f51.google.com (mail-pg0-f51.google.com [74.125.83.51]) by lists.linaro.org (Postfix) with ESMTPS id 217B160D22 for ; Sat, 19 Nov 2016 08:40:15 +0000 (UTC) Received: by mail-pg0-f51.google.com with SMTP id f188so111036848pgc.3 for ; Sat, 19 Nov 2016 00:40:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QgjkIpyL/u1FLtb0HnARq9GwIW5t40L0KxhMIhlGjnM=; b=gyZESN7SW81XqymXpx3u+k987U/qDF186Ieuiw1wzChuWPgW4lBCxudiFd314BQlU6 V8xXmcus0W2yMrUkH7EHAsq9esYi/hCpBr6fywMhYt3TD0d8Fqc6v2Yga+ND8gCYXOrj /CrXwA3+9X2aqKiMRXAmIL/LsrhyRqJ+pNufDvpW35fLxn8tBeilRqHZI+8FFqScD4Da nAjxNnqJ3ak8ah3n0YtMcUMw+umXIUk/IZCXC7eEtimPh6q3ndBpE9VWDT1N2NfhT32G kZlD4NGYnOTwL+WniGSfzeMRIprTmjQ4I+lgtCZy8iSqvuTn0JWOmaiyxb8z5DHF4H5K MPxQ== X-Gm-Message-State: AKaTC03trmeQUGdgvle93wws4kgGYYA08Bo2Fu8k6Ybu4StY3MN+L90i4765JfYP8sGLxFVNoD4= X-Received: by 10.99.95.86 with SMTP id t83mr8631919pgb.0.1479544814447; Sat, 19 Nov 2016 00:40:14 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id v193sm5106241pgb.37.2016.11.19.00.40.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Nov 2016 00:40:14 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Sat, 19 Nov 2016 16:37:43 +0800 Message-Id: <1479544691-59575-29-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479544691-59575-1-git-send-email-heyi.guo@linaro.org> References: <1479544691-59575-1-git-send-email-heyi.guo@linaro.org> Cc: Heyi Guo Subject: [Linaro-uefi] [Patch v4 28/56] Chips/Hisilicon/Ehci: Fix clang build error X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" Remove one force-cast code to avoid clang build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo Reviewed-by: Leif Lindholm --- Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c b/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c index d14f9df..0cb1e80 100644 --- a/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c +++ b/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c @@ -193,7 +193,7 @@ EhciPciIoMemWrite ( return EFI_INVALID_PARAMETER; } - Width = (EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) (Width & 0x03); + Width = Width & 0x03; // // Loop for each iteration and move the data