From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 13 Nov 2008 19:01:21 +0100 Subject: [U-Boot] [PATCH 2/6] jffs2: add sector_size field to part_info structure In-Reply-To: <1226594976-6087-3-git-send-email-yanok@emcraft.com> References: <1226594976-6087-1-git-send-email-yanok@emcraft.com> <1226594976-6087-3-git-send-email-yanok@emcraft.com> Message-ID: <20081113180121.GC25695@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 19:49 Thu 13 Nov , Ilya Yanok wrote: > This patch adds sector_size field to part_info structure (used > by new JFFS2 code). > > Signed-off-by: Ilya Yanok > --- > common/cmd_jffs2.c | 20 +++++++++++++++++--- > include/jffs2/load_kernel.h | 1 + > 2 files changed, 18 insertions(+), 3 deletions(-) > > diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c > index 791a572..e2bf198 100644 > --- a/common/cmd_jffs2.c > +++ b/common/cmd_jffs2.c > @@ -339,11 +339,15 @@ static int part_validate_nor(struct mtdids *id, struct part_info *part) > extern flash_info_t flash_info[]; > flash_info_t *flash; > int offset_aligned; > - u32 end_offset; > + u32 end_offset, sector_size = 0; please spit in two lines Best Regards, J.