From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::341; helo=mail-wm1-x341.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (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 C29B121131DCF for ; Tue, 6 Nov 2018 09:59:06 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id b203-v6so13102570wme.5 for ; Tue, 06 Nov 2018 09:59:06 -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 :mime-version:content-transfer-encoding; bh=FQNwVrxColf3im5HyB5B9ss03ZGtYg/KcQPivxs41X4=; b=aeBz1jJrQ+g1sf+6rboOABBCvuvCeL3EI7W2/hXnkoapPeq7WmCS2veT3+NHWhzOFV +Pas+nf9O9L/NFWfyFCw0e5r77pz9iuiUUfZriGBqmNP76IBP5bxqxLtPvYjb39Al0ql P6AYJAheljh4BBpnB/bvxyiaHwsHe6soayxHo= 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:mime-version:content-transfer-encoding; bh=FQNwVrxColf3im5HyB5B9ss03ZGtYg/KcQPivxs41X4=; b=UCeA+aHB3uCx73KkbbjiCMPpxBA3//t1yWkH5M5I82f50lkQIpUMjqFwd2/DhZt72t RqahnOAy4w4kRWadTLKG5uVXGE47uhkwht1j+7LS1ipD8wb1ArqRDQXEpObFbhO8c69v QFwKK0fHSc8tzKaTqd68n/Kwd0nYHyEecA4e6tFvLyuwnvvUu+c6EofSOVgRBFYlZSkw 2W/1SXl+1ussCBeS9qJmGWmwuW0sE7rHBDvAmAsPuIvkg3fdZu2KN02H3lZqk7C/L7Au UsbMEF9vKRdIEmn9rs/Iq4vduQRpBNSOFEucyjuIkzhY8JQpRgmjVuIRODiTwiYOyV36 wzmA== X-Gm-Message-State: AGRZ1gKhu3G/Xg2wlj9ZlfTN4o83voYkHugKtVagMk/1lKpb4Bl/qchz ldBrUmw4w91H83XGloiA7DlC4FjfX7I= X-Google-Smtp-Source: AJdET5eFLqMEY8HxFmjnKurpbMQYaWXXOaSBkwycgEA3IX65QTjE2Pq5XJUR+pslgpeUCFtlH+0QmA== X-Received: by 2002:a1c:2345:: with SMTP id j66-v6mr2808812wmj.79.1541527145002; Tue, 06 Nov 2018 09:59:05 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id 134-v6sm2971522wmp.6.2018.11.06.09.59.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:04 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: maciej.rabeda@intel.com, michael.d.kinney@intel.com, eric.jin@intel.com, leif.lindholm@linaro.org, Ard Biesheuvel Date: Tue, 6 Nov 2018 18:58:26 +0100 Message-Id: <20181106175833.26964-13-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106175833.26964-1-ard.biesheuvel@linaro.org> References: <20181106175833.26964-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [PATCH edk2-staging 12/19] IntelUndiPkg/GigUndiDxe: cast E1000MemCopy () 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: , X-List-Received-Date: Tue, 06 Nov 2018 17:59:07 -0000 Content-Transfer-Encoding: 8bit E1000MemCopy () 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/GigUndiDxe/e1000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IntelUndiPkg/GigUndiDxe/e1000.c b/IntelUndiPkg/GigUndiDxe/e1000.c index 1f08a5d67b2d..4c9a06b8cf73 100644 --- a/IntelUndiPkg/GigUndiDxe/e1000.c +++ b/IntelUndiPkg/GigUndiDxe/e1000.c @@ -674,8 +674,8 @@ E1000Receive ( // Copy the packet from our list to the EFI buffer. E1000MemCopy ( - (INT8 *) (UINTN) CpbReceive->BufferAddr, - (INT8 *) (UINTN) ReceiveDescriptor->buffer_addr, + (UINT8 *) (UINTN) CpbReceive->BufferAddr, + (UINT8 *) (UINTN) ReceiveDescriptor->buffer_addr, TempLen ); -- 2.19.1