[U-Boot] [PATCH 6/6] YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings

Wolfgang Denk wd at denx.de
Sat Sep 10 00:01:25 CEST 2011


Dear Wolfgang Denk,

In message <1315483822-25399-7-git-send-email-wd at denx.de> you wrote:
> Fix these:
> yaffs_guts.c: In function 'yaffs_ReadDataFromFile':
> yaffs_guts.c:4622: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
> yaffs_guts.c:4622: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
> yaffs_guts.c: In function 'yaffs_WriteDataToFile':
> yaffs_guts.c:4745: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
> yaffs_guts.c:4745: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
> yaffs_guts.c: In function 'yaffs_ResizeFile':
> yaffs_guts.c:4968: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
> yaffs_guts.c:4968: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
> yaffs_guts.c: In function 'yaffs_GutsInitialise':
> yaffs_guts.c:7235: warning: assignment from incompatible pointer type
> yaffs_guts.c: In function 'yaffs_CreateNewObject':
> yaffs_guts.c:2143: warning: 'tn' may be used uninitialized in this function
> yaffs_guts.c: In function 'yaffs_MknodObject':
> yaffs_guts.c:2258: warning: 'str' may be used uninitialized in this function
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  fs/yaffs2/yaffs_guts.c |   19 ++++++++++---------
>  1 files changed, 10 insertions(+), 9 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The combination of a number of things to make existence worthwhile."
"Yes, the philosophy of 'none,' meaning 'all.'"
	-- Spock and Lincoln, "The Savage Curtain", stardate 5906.4


More information about the U-Boot mailing list