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

login
register
mail settings
Submitter Wolfgang Denk
Date Sept. 8, 2011, 12:10 p.m.
Message ID <1315483822-25399-6-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/113897/
State Accepted
Commit 3da04743b8ea44cfcc73fc2491907e189bb67f28
Headers show

Comments

Wolfgang Denk - Sept. 8, 2011, 12:10 p.m.
Fix these:
yaffs_guts.c: At top level:
yaffs_guts.c:400: warning: 'yaffs_SkipFullVerification' defined but not used

Testing shows no changes of the image sizes.

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 fs/yaffs2/yaffs_guts.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Wolfgang Denk - Sept. 9, 2011, 10:01 p.m.
Dear Wolfgang Denk,

In message <1315483822-25399-6-git-send-email-wd@denx.de> you wrote:
> Fix these:
> yaffs_guts.c: At top level:
> yaffs_guts.c:400: warning: 'yaffs_SkipFullVerification' defined but not used
> 
> Testing shows no changes of the image sizes.
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> ---
>  fs/yaffs2/yaffs_guts.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/fs/yaffs2/yaffs_guts.c b/fs/yaffs2/yaffs_guts.c
index b368844..fc86a5c 100644
--- a/fs/yaffs2/yaffs_guts.c
+++ b/fs/yaffs2/yaffs_guts.c
@@ -391,17 +391,17 @@  static int yaffs_CountChunkBits(yaffs_Device * dev, int blk)
  * Verification code
  */
 
-static int yaffs_SkipVerification(yaffs_Device *dev)
+static Y_INLINE int yaffs_SkipVerification(yaffs_Device *dev)
 {
 	return !(yaffs_traceMask & (YAFFS_TRACE_VERIFY | YAFFS_TRACE_VERIFY_FULL));
 }
 
-static int yaffs_SkipFullVerification(yaffs_Device *dev)
+static Y_INLINE int yaffs_SkipFullVerification(yaffs_Device *dev)
 {
 	return !(yaffs_traceMask & (YAFFS_TRACE_VERIFY_FULL));
 }
 
-static int yaffs_SkipNANDVerification(yaffs_Device *dev)
+static Y_INLINE int yaffs_SkipNANDVerification(yaffs_Device *dev)
 {
 	return !(yaffs_traceMask & (YAFFS_TRACE_VERIFY_NAND));
 }