lkml.org 
[lkml]   [2005]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [2.6 patch] fs/jffs2/: make some functions static
From
Date
On Sat, 2005-04-23 at 02:00 +0200, Adrian Bunk wrote:
> This patch makes some needlessly global functions static.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
> ---
>
> fs/jffs2/compr_rubin.c | 18 ++++++++++++------


> --- linux-2.6.12-rc2-mm3-full/fs/jffs2/compr_rubin.c.old 2005-04-20 23:28:57.000000000 +0200
> +++ linux-2.6.12-rc2-mm3-full/fs/jffs2/compr_rubin.c 2005-04-20 23:30:09.000000000 +0200
> @@ -228,8 +228,10 @@
> return rubin_do_compress(BIT_DIVIDER_MIPS, bits_mips, data_in, cpage_out, sourcelen, dstlen);
> }
> #endif
> -int jffs2_dynrubin_compress(unsigned char *data_in, unsigned char *cpage_out,
> - uint32_t *sourcelen, uint32_t *dstlen, void *model)
> +static int jffs2_dynrubin_compress(unsigned char *data_in,
> + unsigned char *cpage_out,
> + uint32_t *sourcelen, uint32_t *dstlen,
> + void *model)
> {
> int bits[8];
> unsigned char histo[256];
> @@ -306,15 +308,19 @@
> }
>
>
> -int jffs2_rubinmips_decompress(unsigned char *data_in, unsigned char *cpage_out,
> - uint32_t sourcelen, uint32_t dstlen, void *model)
> +static int jffs2_rubinmips_decompress(unsigned char *data_in,
> + unsigned char *cpage_out,
> + uint32_t sourcelen, uint32_t dstlen,
> + void *model)
> {
> rubin_do_decompress(BIT_DIVIDER_MIPS, bits_mips, data_in, cpage_out, sourcelen, dstlen);
> return 0;
> }
>
> -int jffs2_dynrubin_decompress(unsigned char *data_in, unsigned char *cpage_out,
> - uint32_t sourcelen, uint32_t dstlen, void *model)
> +static int jffs2_dynrubin_decompress(unsigned char *data_in,
> + unsigned char *cpage_out,
> + uint32_t sourcelen, uint32_t dstlen,
> + void *model)
> {
> int bits[8];
> int c;


Acked-by: Arjan van de Ven <arjanv@infradead.org>


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

\
 
 \ /
  Last update: 2005-04-23 09:42    [W:0.028 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site