From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 13 Dec 2011 09:53:58 +0100 Subject: [U-Boot] [PATCH] fs/fat/fat.c: fix warning: 'part_size' defined but not used In-Reply-To: <20111213081815.CE6A811EF9B4@gemini.denx.de> References: <1319526928-7927-1-git-send-email-dg77.kim@samsung.com> <1319749858-29567-1-git-send-email-wd@denx.de> <201112122215.11610.Aaron.Williams@cavium.com> <20111213081815.CE6A811EF9B4@gemini.denx.de> Message-ID: <20111213095358.5601b9ce@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello all, On Tue, 13 Dec 2011 09:18:15 +0100 Wolfgang Denk wrote: > Dear Aaron Williams, > > In message <201112122215.11610.Aaron.Williams@cavium.com> you wrote: > > > > > Commit c30a15e "FAT: Add FAT write feature" introduced a compiler > > > warning. Fix this. > ... > > I know it's rather late to comment on this, but this patch breaks FAT write > > support. > > How can it break something we don't have? > > Currently there is no write support for (V)FAT file systems in > mainline. > > The commit removes a static variable of file scope, that was used in a > single place, where a value was assigned to it. There was no place > anywhere in the code twhere else this variable was referenced. So how > can this break anything? > > Please elucidate. The FAT write support as submitted and included seems to be broken. The removed variable is referenced in fs/fat/fat_write.c, but in fs/fat/fat.c it is declared as static. This issue didn't show up because no board config file in mainline defines CONFIG_FAT_WRITE. @ Donggeun Kim Could you please submit a patch fixing this? Thanks, Anatolij