Messages in this thread | | | Subject | Re: [2.6 patch] fs/jffs2/: make some functions static | From | Arjan van de Ven <> | Date | Sat, 23 Apr 2005 09:38:50 +0200 |
| |
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/
| |