From 74f45b739be635eaa4ec3a40dec6ad66084748c4 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Tue, 14 Aug 2012 18:26:10 +0000 Subject: u-boot yaffs2: Fix compilation warnings Also remove yaffs_hweight and use the hweight in u-boot. Signed-off-by: Charles Manning --- fs/yaffs2/yaffs_mtdif2.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'fs/yaffs2/yaffs_mtdif2.c') diff --git a/fs/yaffs2/yaffs_mtdif2.c b/fs/yaffs2/yaffs_mtdif2.c index b27fe56214..8135bcc0fe 100644 --- a/fs/yaffs2/yaffs_mtdif2.c +++ b/fs/yaffs2/yaffs_mtdif2.c @@ -28,7 +28,6 @@ #include "yaffs_trace.h" #include "yaffs_packedtags2.h" -#include "string.h" #define yaffs_dev_to_mtd(dev) ((struct mtd_info *)((dev)->driver_context)) #define yaffs_dev_to_lc(dev) ((struct yaffs_linux_context *)((dev)->os_context)) @@ -46,9 +45,7 @@ int nandmtd2_write_chunk_tags(struct yaffs_dev *dev, int nand_chunk, struct mtd_oob_ops ops; int retval = 0; - loff_t addr; - u8 local_spare[128]; struct yaffs_packed_tags2 pt; -- cgit v1.2.3