From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Tue, 15 Oct 2013 10:27:28 -0700 Subject: [U-Boot] [PATCH 2/4] cmd_mtdparts: use 64 bits for flash size, partition size & offset In-Reply-To: <1378304219-11229-3-git-send-email-paul.burton@imgtec.com> References: <1378304219-11229-1-git-send-email-paul.burton@imgtec.com> <1378304219-11229-3-git-send-email-paul.burton@imgtec.com> Message-ID: <525D7B00.6030309@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/04/2013 07:16 AM, Paul Burton wrote: > This matches the 64 bit size in struct mtd_info and allows the mtdparts > command to function correctly with a flash >= 4GiB. Format specifiers > for size & offset are given the ll length, matching its use in > drivers/mtd in absence of something like inttypes.h/PRIx64. > > Signed-off-by: Paul Burton > --- > common/cmd_mtdparts.c | 54 ++++++++++++++++++++++++--------------------- > include/jffs2/load_kernel.h | 6 ++--- > 2 files changed, 32 insertions(+), 28 deletions(-) I need some help. This patch makes compiling warning for the following targets mgcoge kmsupx5 suvd3 mgcoge3ne kmopti2 tuge1 kmvect1 kmcoge5ne pdm360ng kmeter1 tuxx1 cramfs.c: In function 'cramfs_read_super': cramfs.c:56:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cramfs.c:61:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cramfs.c: In function 'cramfs_list_inode': cramfs.c:211:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cramfs.c: In function 'cramfs_ls': cramfs.c:281:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cramfs.c:294:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cramfs.c: In function 'cramfs_check': cramfs.c:339:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cramfs.c:342:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Can you fix them? York