From patchwork Tue Aug 14 20:16:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 177432 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E0DFA2C0084 for ; Wed, 15 Aug 2012 06:16:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5DD5728105; Tue, 14 Aug 2012 22:16:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q4GLhmk9L-aP; Tue, 14 Aug 2012 22:16:36 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 068A6280E5; Tue, 14 Aug 2012 22:16:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3B784280E5 for ; Tue, 14 Aug 2012 22:16:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9XuK-sJFs0LP for ; Tue, 14 Aug 2012 22:16:29 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTPS id 5A4E6280CA for ; Tue, 14 Aug 2012 22:16:27 +0200 (CEST) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WxQ7H42RKz3hhdF; Tue, 14 Aug 2012 22:16:27 +0200 (CEST) X-Auth-Info: CGfnwA0NhuCd3k8vhPUj4qDNGDVdnvhdujTYdPofiwk= Received: from mashiro.regiojet.cz (host-82-135-33-74.customer.m-online.net [82.135.33.74]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 3WxQ7G4P2ZzbbgN; Tue, 14 Aug 2012 22:16:26 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Tue, 14 Aug 2012 22:16:22 +0200 Message-Id: <1344975382-28609-1-git-send-email-marex@denx.de> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Cc: Marek Vasut Subject: [U-Boot] [PATCH] YAFFS2: Fix compiler errors preventing successful build X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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] Signed-off-by: Marek Vasut Cc: Charles Manning Cc: Wolfgang Denk --- fs/yaffs2/ydirectenv.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/fs/yaffs2/ydirectenv.h b/fs/yaffs2/ydirectenv.h index df0b8fb..85538ad 100644 --- a/fs/yaffs2/ydirectenv.h +++ b/fs/yaffs2/ydirectenv.h @@ -26,10 +26,12 @@ #include "yaffs_osglue.h" #include "yaffs_hweight.h" -void yaffs_bug_fn(const char *file_name, int line_no); +#include +#include -#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 { \