From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 8817821EB88E0 for ; Fri, 1 Sep 2017 07:53:52 -0700 (PDT) Received: by mail-wm0-x230.google.com with SMTP id u26so3008662wma.0 for ; Fri, 01 Sep 2017 07:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PxecXhiGAdRFn7gElqLYXR0roJVOA0mZ27E7cBQAixQ=; b=TTJVMv1aaGAo+x+7Z8HcOyjTiqilP0/j5dbtIMGM3xvy52t4q6VO5dURYq0WbVcO5J B6fjVWazt9U79nsid8yiQ8rcGWMo1C0oTa30xHVxet1BQxgknBTGMsC6hAuPjpSQaGqq +NBPSX8oxoFh0b6pcF8YJAiMRpqNQk2f9iPlo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PxecXhiGAdRFn7gElqLYXR0roJVOA0mZ27E7cBQAixQ=; b=fyZrtZVEWiLceh9yreTAy35O6x83vgyBwMC+3uwI7oiclLxm3dcYLZjqpyLKM7SMwP EsknQ6DmY8EgodtMcqlqONrmPYJz2V0BqTMEj9Uxckqy8NlDPahC09B/5n+W/el7RovM 4HsNvAIkIZyQRkTQwLv5+ci7UJLDpBshHtHWav+1NAU8+1AIBLoJJdWfCINIsqyoNTwA 7Dg6Rbj4VdlMzEnj7bUaZe8Du11ktesI1fOZrvwr0e3hcAoyp6SZTkZUFatPkEz8skZO qqZVM2toKmU4KljQe/dxCl3ZK6BDajb+cUfrn6nmfskbSD7ioAPOxIUEndsHTbkavXe8 IynA== X-Gm-Message-State: AHPjjUgSBzyB6EamqS3TyYFzFnUu/iYupmVwH+MPmFPmZKqY7l/bDf75 ALysWnZl3bOuuBie X-Google-Smtp-Source: ADKCNb4nJwKPK0208lRLhA5iIiR1PCDns82zDSfKpk7OpJEmsj4bUcy9mhQjpMWBsepfe7Y09J+6VQ== X-Received: by 10.28.73.85 with SMTP id w82mr621266wma.36.1504277795815; Fri, 01 Sep 2017 07:56:35 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id y89sm365616wmh.21.2017.09.01.07.56.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Sep 2017 07:56:35 -0700 (PDT) Date: Fri, 1 Sep 2017 15:56:32 +0100 From: Leif Lindholm To: Marcin Wojtas Cc: edk2-devel@lists.01.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, agraf@suse.de, jsd@semihalf.com Message-ID: <20170901145632.zrxaabeo4vo3egzv@bivouac.eciton.net> References: <1504271303-1782-1-git-send-email-mw@semihalf.com> <1504271303-1782-9-git-send-email-mw@semihalf.com> MIME-Version: 1.0 In-Reply-To: <1504271303-1782-9-git-send-email-mw@semihalf.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [platforms: PATCH 08/11] Applications/SpiTool: Fix 32-bit issues X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 14:53:53 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 01, 2017 at 03:08:20PM +0200, Marcin Wojtas wrote: > From: Ard Biesheuvel > > Fix casting and related issues to make this code build for 32-bit ARM. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel > Signed-off-by: Marcin Wojtas Reviewed-by: Leif Lindholm > --- > Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c > index e6e1007..ee14270 100644 > --- a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c > +++ b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c > @@ -418,7 +418,7 @@ EFI_STATUS Status; > } > } > > - Buffer = (UINT8 *) Address; > + Buffer = (UINT8 *)(UINTN)Address; > if (FileFlag) { > Buffer = FileBuffer; > } > -- > 1.8.3.1 >