Re: fs/fat - fix sparse warning

From: Alexey Dobriyan
Date: Mon Oct 31 2005 - 08:15:27 EST


On Mon, Oct 31, 2005 at 11:36:39AM +0000, Ben Dooks wrote:
> move fat_cache_init/fat_cache_destroy to a common
> header file in fs/fat so that inode.c and cache.c
> see the same definition, and to stop warnings
> from sparse about undeclared functions

> --- linux-2.6.14-git3/fs/fat/cache.h
> +++ linux-2.6.14-git3-bjd1/fs/fat/cache.h
> @@ -0,0 +1,8 @@
> +/* linux/fs/fat/cache.h

Every editor can show the name of the current file.

> + *
> + * Written 1992,1993 by Werner Almesberger
> + * header, 2005, Ben Dooks
> +*/

Too much for two-line file.

> +
> +extern int __init fat_cache_init(void);
> +extern void fat_cache_destroy(void);

Where did you pick up "extern"? Prototypes in *.c don't have it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/