Re: [2.6 patch] fs/jffs2/: make some functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
> 
> ---
> 
>  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 <[email protected]>


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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux