From patchwork Tue Nov 6 17:58:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 150314 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4192479ljp; Tue, 6 Nov 2018 09:59:34 -0800 (PST) X-Google-Smtp-Source: AJdET5dfgb3RDN2KXfPiB3/1hS2k8kIxWciZUAdIUwGrxH/PXOdeO0tKoWjFDKmst02+PyHNwU+C X-Received: by 2002:a63:2744:: with SMTP id n65mr24386652pgn.65.1541527173913; Tue, 06 Nov 2018 09:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541527173; cv=none; d=google.com; s=arc-20160816; b=khQ/flaNQJ6y/JToBoJKiBsCfu/12P6fhvE6OzLheraKdqge/cdVJv+HXyq9QeDvbY eRiD6ja8dfsgIexov+T9oJbXGIM1MQ4c040wAryfy75riJjL+amQfI6KETvXotzcZ3Hw PNS4aJCyJH1JWJa/bVvLnEbnsb2uwPpO9WqzDF91ABxDpGaRcKyxjTqCvX3vgFkay/7j 3jGfRHttZaQDoWJAtX8GFv1maWAW0PX0uwUAH0n2tXUyD0dlwrgk+be5M8z2NntN0U/B zA5ldFoYGCbMoZUlCPCAVR+61XlsnxMbaVq+heSRIBfdim3u60CBcU+25YCaDmrzbzXX YoWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=Vp3krQs7UWG7X+kirV0OxNPcjYWRej/+mjnVgk/2QRg=; b=rYGFKENwQVDzHKaSVZUDRks+9VhbVOSnSey1fW4pgpbRw9CdZ5ensHADwN0Vls6hEU k2d4DOJf4GT7gcuF2HVSN5/c9YOsIejmQcodFDZhBWVU5eYKnM24PFziSt/9ylODyjZ8 NaNNdTSi69KAiaemOCIkDHlsgZfO5yKnWPomb8juBiNOgY5Jo7Oz09hOJDuscxWXbrNd GKhSOHG6qexu7uXG6sTHOfT4JlWfpq5AN2FWdOppHEgtsCv/uLY/cSb04bLpfxomYL7i eegCBaqmuXOh0WBefmAL2YZKFpn8//IQZDq1hSjvCYJxRNkk7nxO4qWvSjAH7X/Wu9fW 0pjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aeBz1jJr; 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 g18-v6si33302434pfb.278.2018.11.06.09.59.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:33 -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=aeBz1jJr; 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 987982118C513; Tue, 6 Nov 2018 09:59:08 -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=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-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 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: [edk2] [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: , Cc: michael.d.kinney@intel.com, eric.jin@intel.com Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Ryszard Knop 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 );