From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AJdET5eIXHGj2XhAR7pRrFZuA2TJqpHcYX71bmkQymk8rv5REwUQOdYNujsPyP/TdkG4/rdDiGBi5g== 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 Cc: leif.lindholm@linaro.org, maciej.rabeda@intel.com, kamil.kacperski@intel.com, pawel.orlowski@intel.com, philmd@redhat.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com, eric.jin@intel.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Thu, 15 Nov 2018 02:34:15 -0000 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(-) 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 ); -- 2.17.1