From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 20 May 2009 18:55:32 +0200 Subject: [U-Boot] [PATCH] nand_init: use loff_t for offset In-Reply-To: <20090519223113.GB27443@b07421-ec1.am.freescale.net> References: <1242476860-16295-1-git-send-email-plagnioj@jcrosoft.com> <20090519223113.GB27443@b07421-ec1.am.freescale.net> Message-ID: <20090520165532.GC12379@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17:31 Tue 19 May , Scott Wood wrote: > On Sat, May 16, 2009 at 02:27:40PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > -static inline int nand_erase(nand_info_t *info, off_t off, size_t size) > > +static inline int nand_erase(nand_info_t *info, loff_t off, size_t size) > > "size" should probably be loff_t (or something similarly sized) as well, > or erasing an entire large device at once could be awkward. so we need to update the struct erase_info too as it handle a u_int32_t Best Regards, J.