YAFFS2: Fix compiler errors preventing successful build
PATCH 1/1 YAFFS2: Fix compiler errors preventing successful build
These warnings still persist:
yaffs_guts.c: In function ?yaffs_check_chunk_erased?:
yaffs_guts.c:324:6: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_guts.c: In function ?yaffs_verify_chunk_written?:
yaffs_guts.c:352:6: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_guts.c: In function ?yaffs_grab_chunk_cache?:
yaffs_guts.c:1488:6: warning: variable ?pushout? set but not used [-Wunused-but-set-variable] yaffs_guts.c: In function ?yaffs_check_obj_details_loaded?:
yaffs_guts.c:3180:6: warning: variable ?alloc_failed? set but not used [-Wunused-but-set-variable] yaffs_guts.c:3179:6: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_guts.c: In function ?yaffs_update_oh?:
yaffs_guts.c:3288:6: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_guts.c: In function ?yaffs_get_obj_name?:
yaffs_guts.c:4447:7: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_summary.c: In function ?yaffs_summary_read?:
yaffs_summary.c:194:6: warning: variable ?sum_tags_bytes? set but not used [-Wunused-but-set-variable] yaffs_verify.c: In function ?yaffs_verify_file?:
yaffs_verify.c:227:6: warning: variable ?actual_depth? set but not used [-Wunused-but-set-variable] yaffs_yaffs1.c: In function ?yaffs1_scan?:
yaffs_yaffs1.c:26:6: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_yaffs2.c: In function ?yaffs2_scan_chunk?:
yaffs_yaffs2.c:949:6: warning: variable ?result? set but not used [-Wunused-but-set-variable] yaffs_yaffs2.c: In function ?yaffs2_scan_backwards?:
yaffs_yaffs2.c:1352:6: warning: variable ?deleted? set but not used [-Wunused-but-set-variable] yaffs_mtdif2.c: In function ?nandmtd2_write_chunk_tags?:
yaffs_mtdif2.c:51:5: warning: unused variable ?local_spare? [-Wunused-variable]
--- fs/yaffs2/ydirectenv.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
fs/yaffs2/ydirectenv.h +4 -9
@@ -26,10 +26,12 @@#include "yaffs_osglue.h" #include "yaffs_hweight.h" -void yaffs_bug_fn (const char *file_name,int line_no); +#include <malloc.h> +#include <linux/compat.h> -#define BUG () do { yaffs_bug_fn(__FILE__, __LINE__); } while (0) +void yaffs_bug_fn (const char *file_name,int line_no); +#define GFP_NOFS 1#define YCHAR char#define YUCHAR unsigned char
@@ -47,8 +49,6 @@ void yaffs_bug_fn(const char *file_name, int line_no);#define yaffs_strncmp (a, b, c) strncmp(a, b, c)#endif -#define hweight8 (x) yaffs_hweight8(x) -#define hweight32 (x) yaffs_hweight32(x)void yaffs_qsort (void *aa,size_t n,size_t es,int (*cmp)(const void *,const void *));
@@ -63,11 +63,6 @@ void yaffs_qsort(void *aa, size_t n, size_t es,#define inline __inline__#endif -#define kmalloc (x, flags) yaffsfs_malloc(x) -#define kfree (x) yaffsfs_free(x) -#define vmalloc (x) yaffsfs_malloc(x) -#define vfree (x) yaffsfs_free(x) -#define cond_resched () do {} while (0)#define yaffs_trace (msk, fmt, ...) do { \
Signature · 1 line
1.7.10.4
PATCH 1/1 YAFFS2: Fix compiler errors preventing successful build
Quoted 4 lines · On Wednesday 15 August 2012 08:16:22 Marek Vasut wrote:
Signed-off-by Marek Vasut <[email protected]>Cc Charles Manning <[email protected]>Cc Wolfgang Denk <[email protected]>
While I appreciate this, I would prefer the use the patch I submitted today which also gets rid of the yaffs hweight code too.
-- CHarles
PATCH 1/1 YAFFS2: Fix compiler errors preventing successful build
Dear Charles Manning,
Quoted 7 lines · On Wednesday 15 August 2012 08:16:22 Marek Vasut wrote:
Quoted 3 lines
Signed-off-by Marek Vasut <[email protected]>Cc Charles Manning <[email protected]>Cc Wolfgang Denk <[email protected]>While I appreciate this, I would prefer the use the patch I submitted today which also gets rid of the yaffs hweight code too.
Thanks Charles ... I'll review it in a bit.
Quoted 1 line
-- CHarles
Best regards,
Marek Vasut