[PATCH] cfi: make cfi_staa_erase_varsize static to shut up sparse
Jörn Engel
joern at logfs.org
Fri Nov 16 09:10:15 EST 2007
On Fri, 16 November 2007 14:29:55 +0100, Andre Haupt wrote:
>
> should this be static?
Looks like it.
> From: Andre Haupt <andre at bitwigglers.org>
> Signed-off-by: Andre Haupt <andre at bitwigglers.org>
Acked-by: Joern Engel <joern at logfs.org>
> ---
> drivers/mtd/chips/cfi_cmdset_0020.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c
> index b344ff8..07a3dd4 100644
> --- a/drivers/mtd/chips/cfi_cmdset_0020.c
> +++ b/drivers/mtd/chips/cfi_cmdset_0020.c
> @@ -893,7 +893,7 @@ retry:
> return ret;
> }
>
> -int cfi_staa_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
> +static int cfi_staa_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
> { struct map_info *map = mtd->priv;
> struct cfi_private *cfi = map->fldrv_priv;
> unsigned long adr, len;
> --
> 1.4.4.4
>
Jörn
--
The strong give up and move away, while the weak give up and stay.
-- unknown
More information about the linux-mtd
mailing list