From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mx.groups.io with SMTP id smtpd.web10.18849.1594730735524624132 for ; Tue, 14 Jul 2020 05:45:35 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=sjqmDn0W; spf=pass (domain: nuviainc.com, ip: 209.85.221.66, mailfrom: leif@nuviainc.com) Received: by mail-wr1-f66.google.com with SMTP id a6so21341238wrm.4 for ; Tue, 14 Jul 2020 05:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SnT9cb9aRd2tloXW/oKBL8pit19kSgg6aPVjHjvoih0=; b=sjqmDn0W7S/zTboSaD0x+KHy+y6Ny6gJolYBzKV9CtVLJ2A3ZtiQOjok9dE6K2DYFA h2bM1L1gwzupHQMaboxhTo0A36gkex4wEmLJdUZx5LZmy3i6XEw6kS4ObsOJ8zAw+S+m qbu45KBxTOskdZkdIyiAfmYgrdAxLwKwrtq78HkHqmrWjeEiYBaTEDztGaeiIrL337Tw oh1AwuAK1ju03Gc++IEs+7uofhPpsAdZpJVrsCY2lEFZgofEf7U1EqLV0RjdOAhL3mVh PLeJam5dtpHrvI5FRjZZAypfupPm/YdTfHl8bF3rb3X9QIPN/AKSDYcv2ClO3oc4NRnM 3gog== 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:mime-version :content-transfer-encoding; bh=SnT9cb9aRd2tloXW/oKBL8pit19kSgg6aPVjHjvoih0=; b=Rjr8wxtb9xU+6OAZVngcUONHU55Tj0b08C2zIeshoWvlTrQkdg6rgiejltcCEqj1s+ uoWSjELW3aGslPEriACNLEZk3G8lNYLqUlDFOJU1N7mZQwGdOgrtSF8SAydznOm+Mk9w clxvcEeSQqy7/IcqnglHiBvA9/l8C2IwxSJxxMPVOFccGK5qDgvvfrpNhCIA58k+3Ce2 NWwukBrFUuw3OFEXfnx9EmrGVj9bamaTGnQ+Cczisa4QqKG4G7rejo0OFeWxToTDyFng mQ9dKjF5gJY2ik/SiAkPUgHTKX25i0Ul9gzE+gbWD/r7w8UMJWlFzSzpH+oi2BNbNa53 rATQ== X-Gm-Message-State: AOAM531pmYgcPVATywHUXH+OuBzKVWT2ZbvQXHV5rSszFTURdt7fJaRq tXjHOQc1bY8CzMdoCwajuOdhe5M7HVeUg5Q66YcCvb/kloHeZdEW7u1glEG89ZGlkud5CSVy63D Jgc6ChQgDXcFm1HNbvKep89zE0gPOkw8LsArgId/0cLyz1+6YXx1cBAz3uS2tU5RDng== X-Google-Smtp-Source: ABdhPJz3aMkIAl1g3G+liVAEH+FqiNsMHfUVSGEmChUja509VZR2uAlKzcJ2KWbmBIyXRQJ6EsIegA== X-Received: by 2002:adf:f751:: with SMTP id z17mr5485370wrp.114.1594730733783; Tue, 14 Jul 2020 05:45:33 -0700 (PDT) Return-Path: Received: from vanye.hemma.eciton.net (cpc92302-cmbg19-2-0-cust304.5-4.cable.virginm.net. [82.1.209.49]) by smtp.gmail.com with ESMTPSA id x185sm4453112wmg.41.2020.07.14.05.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 05:45:33 -0700 (PDT) From: "Leif Lindholm" To: devel@edk2.groups.io Cc: Andrei Warkentin , Pete Batard Subject: [PATCH edk2-platforms 1/1] Platform/RaspberryPi: remove unused variable GpuIndex from PlatformLib Date: Tue, 14 Jul 2020 13:45:32 +0100 Message-Id: <20200714124532.6535-1-leif@nuviainc.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Pete Batard Signed-off-by: Leif Lindholm --- 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; -- 2.20.1