From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 24 Oct 2012 16:49:19 -0700 Subject: [U-Boot] [PATCH 12/32] common/cmd_*.c: sparse fixes In-Reply-To: <1350433728-24120-13-git-send-email-kim.phillips@freescale.com> References: <1350433728-24120-1-git-send-email-kim.phillips@freescale.com> <1350433728-24120-13-git-send-email-kim.phillips@freescale.com> Message-ID: <20121024234919.GA5607@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Oct 16, 2012 at 07:28:28PM -0500, Kim Phillips wrote: [snip] > cmd_mtdparts.c:157:4: warning: symbol 'current_mtd_partnum' was not declared. Should it be static? [snip] > /* current active device and partition number */ > -struct mtd_device *current_mtd_dev = NULL; > -u8 current_mtd_partnum = 0; > +static struct mtd_device *current_mtd_dev = NULL; > +static u8 current_mtd_partnum = 0; This is wrong, cmd_jffs.c also uses current_mtd_partnum and has an extern in the C file for it :( -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: