lib: make lib/842 decompress functions static
authorDan Streetman <ddstreet@ieee.org>
Mon, 11 May 2015 11:22:35 +0000 (07:22 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 May 2015 02:31:55 +0000 (10:31 +0800)
Make the do_index and do_op functions static.

They are used only internally by the 842 decompression function,
and should be static.

Reported-By: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/842/842_decompress.c

index 6b2b45aecde3f60e9bab79bfbdafd77a9ae1c463..dbeb0581b879b71b1c5a0d14652137dc70e40adb 100644 (file)
@@ -214,7 +214,7 @@ static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)
        return 0;
 }
 
-int do_index(struct sw842_param *p, u8 n)
+static int do_index(struct sw842_param *p, u8 n)
 {
        switch (n) {
        case 2:
@@ -228,7 +228,7 @@ int do_index(struct sw842_param *p, u8 n)
        }
 }
 
-int do_op(struct sw842_param *p, u8 o)
+static int do_op(struct sw842_param *p, u8 o)
 {
        int i, ret = 0;
 
This page took 0.025842 seconds and 5 git commands to generate.