Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 381be254 authored by Ben Dooks's avatar Ben Dooks Committed by Linus Torvalds
Browse files

[PATCH] ext3: sparse fixes



Fix warnings from sparse due to un-declared functions that should either
have a header file or have been declared static

 fs/ext2/bitmap.c:14:15: warning: symbol 'ext2_count_free' was not declared. Should it be static?
 fs/ext2/namei.c:92:15: warning: symbol 'ext2_get_parent' was not declared. Should it be static?
 fs/ext3/bitmap.c:15:15: warning: symbol 'ext3_count_free' was not declared. Should it be static?
 fs/ext3/namei.c:1013:15: warning: symbol 'ext3_get_parent' was not declared. Should it be static?
 fs/ext3/xattr.c:214:1: warning: symbol 'ext3_xattr_block_get' was not declared. Should it be static?
 fs/ext3/xattr.c:358:1: warning: symbol 'ext3_xattr_block_list' was not declared. Should it be static?
 fs/ext3/xattr.c:630:1: warning: symbol 'ext3_xattr_block_find' was not declared. Should it be static?
 fs/ext3/xattr.c:863:1: warning: symbol 'ext3_xattr_ibody_find' was not declared. Should it be static?

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1a80ba88
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,8 @@
#include <linux/quotaops.h>
#include <linux/quotaops.h>
#include <linux/buffer_head.h>
#include <linux/buffer_head.h>


#include "bitmap.h"

/*
/*
 * balloc.c contains the blocks allocation and deallocation routines
 * balloc.c contains the blocks allocation and deallocation routines
 */
 */
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@
 */
 */


#include <linux/buffer_head.h>
#include <linux/buffer_head.h>

#include "bitmap.h"


static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};


fs/ext3/bitmap.h

0 → 100644
+8 −0
Original line number Original line Diff line number Diff line
/*  linux/fs/ext3/bitmap.c
 *
 * Copyright (C) 2005 Simtec Electronics
 *	Ben Dooks <ben@simtec.co.uk>
 *
*/

extern unsigned long ext3_count_free (struct buffer_head *, unsigned int );
+1 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,7 @@


#include <asm/byteorder.h>
#include <asm/byteorder.h>


#include "bitmap.h"
#include "xattr.h"
#include "xattr.h"
#include "acl.h"
#include "acl.h"


+2 −0
Original line number Original line Diff line number Diff line
@@ -36,6 +36,8 @@
#include <linux/quotaops.h>
#include <linux/quotaops.h>
#include <linux/buffer_head.h>
#include <linux/buffer_head.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>

#include "namei.h"
#include "xattr.h"
#include "xattr.h"
#include "acl.h"
#include "acl.h"


Loading