[edk2-devel] [PATCH edk2-platforms 1/1] Platform/RaspberryPi: remove unused variable GpuIndex from PlatformLib
Pete Batard
pete at akeo.ie
Tue Jul 14 12:58:11 UTC 2020
Good call.
On 2020.07.14 13:45, Leif Lindholm wrote:
> Commit 678f6bff3c46 ("RPi4: reserve/map memory above 4GB when present")
> removed the only user of the GpuIndex variable in
> ArmPlatformGetVirtualMemoryMap, which causes a build error of NOOPT
> profile with gcc 8.3. Delete the variable, and its initialization.
>
> Cc: Andrei Warkentin <andrey.warkentin at gmail.com>
> Cc: Pete Batard <pete at akeo.ie>
> Signed-off-by: Leif Lindholm <leif at nuviainc.com>
> ---
> Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c b/Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c
> index 60a7b43af993..c395e0c75df7 100644
> --- a/Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c
> +++ b/Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c
> @@ -57,7 +57,6 @@ ArmPlatformGetVirtualMemoryMap (
> )
> {
> UINTN Index = 0;
> - UINTN GpuIndex;
> INT64 TotalMemorySize;
> INT64 MemorySizeBelow3GB;
> INT64 MemorySizeBelow4GB;
> @@ -162,7 +161,6 @@ ArmPlatformGetVirtualMemoryMap (
> VirtualMemoryInfo[Index++].Name = L"System RAM < 1GB";
>
> // GPU Reserved
> - GpuIndex = Index;
> VirtualMemoryTable[Index].PhysicalBase = mVideoCoreBase;
> VirtualMemoryTable[Index].VirtualBase = VirtualMemoryTable[Index].PhysicalBase;
> VirtualMemoryTable[Index].Length = mVideoCoreSize;
>
Reviewed-by: Pete Batard <pete at akeo.ie>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#62497): https://edk2.groups.io/g/devel/message/62497
Mute This Topic: https://groups.io/mt/75497638/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list