From nobody Sat May 18 04:46:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40218+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40218+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1557358067; cv=none; d=zoho.com; s=zohoarc; b=RsRbj455TKe0hXuPfEcD0naMAKCP4YQRU0niYc50R+0ECLR275vIavicmItF5xCkDOhhPBUPhTa1djmkdE4S4EGB+eNpkbM/wNCP2pcydoRKyPcTKvy2ZzSH+yiToiO/e8RmA9lHkzuO5gHKXpT+2prX+1pe5tljXock4SVdByg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557358067; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=HtQmtxe4GyD0vN7uPWOZWECXhPgOIUIK6cuEmUdHKrk=; b=HYDWop3gtVPjjfRNA1Y8kFQih/xzUPo0HZ5hngQLGsQIJwwDFAe+8jpLveeckIO+nRgInFDEPr79IoW8k0F3LiOvkdwWgGFsP9XYCeqKVlbMz3Sp030T0vvtY5uwaD2Xclc00Phc0VAyActXeEQbtKIE58jON3wXgf81dvP9oI8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40218+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557358067206405.77870564271973; Wed, 8 May 2019 16:27:47 -0700 (PDT) Return-Path: X-Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by groups.io with SMTP; Wed, 08 May 2019 16:24:45 -0700 X-Received: by mail-lj1-f196.google.com with SMTP id r76so335209lja.12 for ; Wed, 08 May 2019 16:24:45 -0700 (PDT) X-Gm-Message-State: APjAAAXE4aNuOU7Wd8VfM7A3eAkzies5f84h2ylkld3SQ4DWmpz9wjBV b40Ogwzeb0nQBc35lFdyGRs5VCY5fHw= X-Google-Smtp-Source: APXvYqxXZPRe5HBckXBz7OKNjFSzhZLGT2hpVPFenGxZhHkT7JCPWFnYg6eEvWRYAi7ljKQ30xet8A== X-Received: by 2002:a2e:9b49:: with SMTP id o9mr264801ljj.113.1557357883402; Wed, 08 May 2019 16:24:43 -0700 (PDT) X-Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id n10sm40295ljh.36.2019.05.08.16.24.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 May 2019 16:24:42 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, Jici.Gao@arm.com Subject: [edk2-devel] [PATCH] Marvell/Drivers: MvFvbDxe: Fix compilation error Date: Thu, 9 May 2019 01:24:21 +0200 Message-Id: <1557357861-14472-1-git-send-email-mw@semihalf.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mw@semihalf.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557358066; bh=IEWsgQTA5TnfjoMygDsmLNWR2plhqFdE41SfoECL3q4=; h=Cc:Date:From:Reply-To:Subject:To; b=HAWLvfcIJhI0WW87qoBaSb2/Y9YlEoaikjtifDUka9+Xfb9YIoKzSsPistAvBmR09Ug EYL9OVE8HZhTWRoElwJcrLMfT/i9BBJyiqxqbt0sIL4V7LdBDl/qaLgcx6Gyc4pzoC2Jj 5v/Z3Oe/FbjIIzsDh14O1fcWqB8QkQMkfEk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Commit cee103d37d6b ("Marvell/Drivers: MvFvbDxe: Introduce non-mmio mode) introduced a compilation error, visible with certain toolchains. Fix that. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas Reviewed-by: Leif Lindholm --- Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c b/Silicon/Marv= ell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c index b4fd29c..62f9e57 100644 --- a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c +++ b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c @@ -1003,7 +1003,6 @@ MvFvbConfigureFlashInstance ( ) { EFI_STATUS Status; - UINTN *NumBytes; UINTN DataOffset; UINTN VariableSize, FtwWorkingSize, FtwSpareSize, MemorySize; =20 @@ -1080,10 +1079,9 @@ MvFvbConfigureFlashInstance ( DataOffset =3D GET_DATA_OFFSET (FlashInstance->FvbOffset, FlashInstance->StartLba, FlashInstance->Media.BlockSize); - *NumBytes =3D FlashInstance->FvbSize; Status =3D FlashInstance->SpiFlashProtocol->Read (&FlashInstance->SpiD= evice, DataOffset, - *NumBytes, + FlashInstance->FvbSize, (VOID *)FlashInstance->Reg= ionBaseAddress); if (EFI_ERROR (Status)) { goto ErrorFreeAllocatedPages; --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#40218): https://edk2.groups.io/g/devel/message/40218 Mute This Topic: https://groups.io/mt/31549489/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-