From patchwork Thu Nov 15 02:33:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151142 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6453487ljp; Wed, 14 Nov 2018 18:34:22 -0800 (PST) X-Google-Smtp-Source: AJdET5dHnc84breoJIudZDwtyuWxIgmIVgGA+97yFJwd/YBEvulydqZMz9cDN8AxMvnbMQ02TmmW X-Received: by 2002:a02:158d:: with SMTP id 13mr4010812jaq.97.1542249262293; Wed, 14 Nov 2018 18:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249262; cv=none; d=google.com; s=arc-20160816; b=kp5+3Uh5UIpV+o9tOOSIDilXusPtNtYE9zSat5vWNwiUPyTl5YbI65eP6W9y/zQyac ceCKxvOkMqBIqJXDDTlp1ArUNFtT9TQ1K0tOTaSsnSqpEQzOm2IUmFIwTrSlOccVY00M +CrWLKCUy4YGa+nHuSg4j6NbqpKFSYmIsdJUBzct8fVpJVZWlRqGdyZewQujuLADE8WU nArbXwZ/vHmCxaJo5S6fwh7dJAeMvZ6mjR+FKXk7dP1yWToYis/c/5t4pjCrxftmPzyP CZ23oGFn12laIYEHvqraOprRYhcgX8C0KN11sJx8iVvaOBsGhtAVyuVcElLbIqduWr+t V+JQ== 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=serluTba39/ARQFNkXVzNHGsyUgMwIfPCBn+h+8AQSY=; b=p6+jSmNPlnvGQmEENxJKVrX7CpmeN3GyQIoZJuXPKoMImqcDrYW/RXUlYRQeD+gAnI rd4NmCG69Ougn8C+kkptwO+AWjGhDNd9fUwZsGltdTyupX0y7z8MAe5IUIO3SdVQoli9 tZp6uAEC6hu3aL7V6AOcNRLOYvtR/+JBrsikukHSVNIAfQdkJK/5mN8esPIrqwxYvFRm c2N/xp2vMZhckclA5xjJSWL34W/Rc8MLuby5E/lyL/GexzSpF5EbgphxGh7ziaXSI7YH BsPNzY3SoZYyLFzEaneEqS+zqHZzn+gs4bZVjslWZXgj0VAePaQBthW/WdTm9f0g43wk 5O1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="LfknD/Ho"; 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 m2-v6si16968621jaa.62.2018.11.14.18.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:22 -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="LfknD/Ho"; 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 CD6FD21A07A92; Wed, 14 Nov 2018 18:34:10 -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::642; helo=mail-pl1-x642.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (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 27AC82119073A for ; Wed, 14 Nov 2018 18:34:08 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id v1-v6so1583599plo.2 for ; Wed, 14 Nov 2018 18:34:08 -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=ezN2B30taoL3TolXSsXfDdGhsztEaiRBOzssKR7QQzY=; b=LfknD/Ho+PxU5f1pGHs8pK2QgDGCGGNu+pJAL8p6eopJyApRQPx/xJjfLRHUlpTwLw qx94GJTP5ZiobdNaGJ4rRXrqlx4705rlnFBpKHPptbhfZhn2S5XG2YxApFpXywoLP6uy HZ2XMOOkx30Qfyg9xWZ91EjIJ7J28zleilXig= 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=ezN2B30taoL3TolXSsXfDdGhsztEaiRBOzssKR7QQzY=; b=k2vAPTiy0j4M2tXFll8zEnbRCwZVwJZk1MMhQ6PjE7dVhotpL/abZpRWRCStCBk/Bd QiPt4PvkD0/hGJNYljtmuP9ArHMC1Gr6l/IrwsFm99dQjK/tT+iETJpNI55MVMUJFvHU H2DabmJCj3GanyXIZEmOiZTIa9XjIjNXVInGzCcoYqtXUlIrbQoEgShnIZcFugpXaZ6Z Lw0TEB3mIjLmEF7LTNpHwX6KkvZ78I4se1O9aFQtsAHQeOVyQ2QF/gJyfC/U537LDWFc uXSAvteqCq8eSS10xHgYzCrQ19MzHkUDLl1K4S2nZ+vJGkfvzehp5ieFslBiuKZCKzgF aU1w== X-Gm-Message-State: AGRZ1gJSuKlisH+LQZQ2FcSx9xdsCaYTzdxbGQ11mh40FBmgJbwAjhvc rDj7t1FDNZXKYbiQDIFvU38SYC9ZLxFSEg== X-Received: by 2002:a17:902:2849:: with SMTP id e67-v6mr4430050plb.269.1542249247573; Wed, 14 Nov 2018 18:34:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:06 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:38 -0800 Message-Id: <20181115023353.20159-6-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 05/20] IntelUndiPkg/XGigUndiDxe: add missing VOID** cast 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" Unlike Visual Studio, GCC does not permit implicit conversion between a pointer-to-void-pointer and pointer to a typed pointer. So add the explicit casts where necessary. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/Hii.c | 8 ++++---- IntelUndiPkg/XGigUndiDxe/Init.c | 2 +- 2 files changed, 5 insertions(+), 5 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/Hii.c b/IntelUndiPkg/XGigUndiDxe/Hii.c index 857a475622f7..3ad7d61e493d 100644 --- a/IntelUndiPkg/XGigUndiDxe/Hii.c +++ b/IntelUndiPkg/XGigUndiDxe/Hii.c @@ -459,7 +459,7 @@ HiiOpenProtocol ( Status = gBS->LocateProtocol ( &gEfiHiiDatabaseProtocolGuid, NULL, - &UndiPrivateData->HiiDatabase + (VOID **)&UndiPrivateData->HiiDatabase ); if (EFI_ERROR (Status)) { DEBUGPRINT (CRITICAL, ("Error finding HII protocol: %r\n", Status)); @@ -472,7 +472,7 @@ HiiOpenProtocol ( Status = gBS->LocateProtocol ( &gEfiHiiStringProtocolGuid, NULL, - &UndiPrivateData->HiiString + (VOID **)&UndiPrivateData->HiiString ); if (EFI_ERROR (Status)) { DEBUGPRINT (CRITICAL, ("Error finding HII String protocol: %r\n", Status)); @@ -485,7 +485,7 @@ HiiOpenProtocol ( Status = gBS->LocateProtocol ( &gEfiFormBrowser2ProtocolGuid, NULL, - &UndiPrivateData->FormBrowser2 + (VOID **)&UndiPrivateData->FormBrowser2 ); if (EFI_ERROR (Status)) { DEBUGPRINT (CRITICAL, ("Error finding HII form browser protocol: %r\n", Status)); @@ -498,7 +498,7 @@ HiiOpenProtocol ( Status = gBS->LocateProtocol ( &gEfiHiiConfigRoutingProtocolGuid, NULL, - &UndiPrivateData->HiiConfigRouting + (VOID **)&UndiPrivateData->HiiConfigRouting ); if (EFI_ERROR (Status)) { DEBUGPRINT (CRITICAL, ("Error finding HII ConfigRouting protocol: %r\n", Status)); diff --git a/IntelUndiPkg/XGigUndiDxe/Init.c b/IntelUndiPkg/XGigUndiDxe/Init.c index bffe3c165866..84e06ea071c5 100644 --- a/IntelUndiPkg/XGigUndiDxe/Init.c +++ b/IntelUndiPkg/XGigUndiDxe/Init.c @@ -179,7 +179,7 @@ InitAppendMac2DevPath ( Status = gBS->AllocatePool ( EfiBootServicesData, // EfiRuntimeServicesData, TotalPathLen, - &DevicePtr + (VOID **)&DevicePtr ); if (Status != EFI_SUCCESS) {