From patchwork Thu Nov 15 02:33:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151148 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6453785ljp; Wed, 14 Nov 2018 18:34:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xja+7LTP5Dd83iYLYtH3p5TMEx/Xhh5pKJNgoeivqPl8kS+APepkRYGndtd2kOtFRE2/op X-Received: by 2002:a6b:7403:: with SMTP id s3-v6mr3701081iog.243.1542249287842; Wed, 14 Nov 2018 18:34:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249287; cv=none; d=google.com; s=arc-20160816; b=0TV/ml0db1Gq7SM2SxyLoLrquXk54GDWytRST7SHfd9luAAQRAOkZC3jZAIb+skcRG 9xNuih4gIxCNHUrmbhjM42Q1i8+IsbwAmZiHkU0WMhX5EqG+OCwelDTqZKWToLg9NI1p KDC1fYc67/chiIZCc53jMx5igVd7ooyM0JUJX9QWpBqYDDdFJu88Mw0JM9PhJ6CaQWu1 eh7xHORrpbjK1HyBi4AWp3QVBjk5gJYtj1viA0z/9TEqzxmyLv7/8RY7rA7IY8LpPkij 9IbwspFQdATEpW9ZuoxOamKttg6CPeKEPGTzuW90WoGnjyXm3+hvykxQQtCDQmx03aIq r8ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=hpCsDNiNrUHJ++HGVZIm0b/dIGQyEqYEWseJqG8CLp0=; b=SsMkqSjoVOE9m9edKbrpgzEB2e8Pl7tYtXbRCaxKzQotDTJIbVCJHEWlt5ajzDsnE0 JOLQLUtF73qt7uMauuD4NNc9DjxGIlPZJE/pUaAEJ1Z03GVRiDcMKD6X0CAS89YVike4 PvqwR/c+yFcDUEGXaan9q+9+bbSTZiVzWGzgdpE8GHlsbw5UTGD19HgudHG9BoRejn7K FnszDANeJNfgnTMoocuFo28dfXI4hFlhljcaaUeZ4lalCXuAO1H8iPPk9QTV8LdEpvvx siZpWC2LAvyKyqGHL1IlBoYub/rW/k7F01cEyM3ryShxvobL4Azps05bYIAPHgSOzexj UpsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XFgBg7ex; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id j82-v6si13682714itj.114.2018.11.14.18.34.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XFgBg7ex; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 1260A2119172D; Wed, 14 Nov 2018 18:34:17 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::544; helo=mail-pg1-x544.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5F85121191728 for ; Wed, 14 Nov 2018 18:34:15 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id n2so1102497pgm.3 for ; Wed, 14 Nov 2018 18:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=f2bzP2Uxb55u4HIML/SJ1K7PDcK46wBtz0pvf61o4to=; b=XFgBg7exKuJ/qHEStvwbzqEfGJkGetiJNDzM3Ngu/DFlmyG0sHktbWPSVx4f4WykPy dl1cs2VO2drs5iXlJMlAaWO+9j7c6fznksdMZkxZXB2l6gXaza0FSNZsUV9wAxZie5jK cYqUcq55s1yWrPW4On0LlsiWrPAQz2SYpMEOw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=f2bzP2Uxb55u4HIML/SJ1K7PDcK46wBtz0pvf61o4to=; b=gkPjS2Am5Gtz+48mztjwv/sUj8vG6V6hl2hFlpzaA4sb6VjluZThsYFKDDbeCAk5Mw 06x5bm5IIsi28U46FmlUK5g0TEulN4Q3/ws9hNk+lfCQ79xoHokhvao0WCnuKd+AoXL9 5664znStI/ZHhQtx6juw/fDG4wLt/Y4bowRmAAmhrKdwT484rR3Y2C39su6Y6JdNgrrC pKM4VdNXXloc99crR1xRsJCdVgUJkwS7u+9ZpIOJQL7b/y5wRYx6KWPXBeeu4uaZbhFq nRCcCvZ/qQr3kfYmZ/yJHktg/EC6GXDqK4rHiKdLECwjzy1QETq33oJBH7xhd/RHufil AMYw== X-Gm-Message-State: AGRZ1gKfOMVXoMDCd/xZEZyn7owmTU5/YyTzGcP0isZ6vkHfnyTV/mal Cn5IOLQLdu3FmJFxKLR9gd9FNtLLBq87JA== X-Received: by 2002:a63:460a:: with SMTP id t10-v6mr4161650pga.197.1542249254826; Wed, 14 Nov 2018 18:34:14 -0800 (PST) Received: from mba13.psav.com ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id v185-v6sm27323393pfv.48.2018.11.14.18.34.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:13 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:44 -0800 Message-Id: <20181115023353.20159-12-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181115023353.20159-1-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-staging 11/20] IntelUndiPkg/XGigUndiDxe: cast XgbeMemCopy () args to correct pointer type X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kamil.kacperski@intel.com, eric.jin@intel.com, pawel.orlowski@intel.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" XgbeMemCopy () takes UINT8 pointers not INT8 pointers, so cast the arguments to the correct type. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/Xgbe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ryszard Knop diff --git a/IntelUndiPkg/XGigUndiDxe/Xgbe.c b/IntelUndiPkg/XGigUndiDxe/Xgbe.c index 9e3ee862fb4e..0c823efe8963 100644 --- a/IntelUndiPkg/XGigUndiDxe/Xgbe.c +++ b/IntelUndiPkg/XGigUndiDxe/Xgbe.c @@ -542,8 +542,8 @@ XgbeReceive ( // Copy the packet from our list to the EFI buffer. XgbeMemCopy ( - (INT8 *) (UINTN) CpbReceive->BufferAddr, - (INT8 *) (UINTN) ReceiveDescriptor->buffer_addr, + (UINT8 *) (UINTN) CpbReceive->BufferAddr, + (UINT8 *) (UINTN) ReceiveDescriptor->buffer_addr, TempLen );