From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cam-smtp0.cambridge.arm.com (cam-smtp0.cambridge.arm.com [217.140.106.54]) by mx.groups.io with SMTP id smtpd.web12.5817.1593071994351347553 for ; Thu, 25 Jun 2020 00:59:55 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.106.54, mailfrom: pierre.gondois@arm.com) Received: from E119881.Arm.com (E119881.Arm.com [10.1.197.28]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id 05P7xoCu026737; Thu, 25 Jun 2020 08:59:50 +0100 From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois , leif@nuviainc.com, ard.biesheuvel@arm.com, nd@arm.com Subject: [PATCH v1 1/1] ArmPkg/ArmMmuLibb: Fix implicit cast Date: Thu, 25 Jun 2020 08:59:45 +0100 Message-Id: <20200625075945.136532-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 From: Pierre Gondois While building with the following command line: build -b DEBUG -a AARCH64 -t VS2017 -p edk2\MdeModulePkg\MdeModulePkg.dsc A missing cast triggers the following warning, then triggering an error: edk2/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c(652): warning C4152: nonstandard extension, function/data pointer conversion in expression This patch adds a cast, removing the warning. Signed-off-by: Pierre Gondois --- The changes can be seen at: https://github.com/PierreARM/edk2/commits/831_Fix_implicit_cast_v1 Notes: v1: - Add (void*) cast. [Pierre] ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c b/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c index 222ff817956feb738325fc78fbaf064de98802a9..7df7c75d4a571403209e4fee0f0a06ed6e3513fa 100644 --- a/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c +++ b/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c @@ -649,7 +649,7 @@ ArmMmuBaseLibConstructor ( // The ArmReplaceLiveTranslationEntry () helper function may be invoked // with the MMU off so we have to ensure that it gets cleaned to the PoC // - WriteBackDataCacheRange (ArmReplaceLiveTranslationEntry, + WriteBackDataCacheRange ((VOID*)ArmReplaceLiveTranslationEntry, ArmReplaceLiveTranslationEntrySize); return RETURN_SUCCESS; -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'