Skip to content

Commit f7ead7b

Browse files
ddstreetherbertx
authored andcommitted
lib: make lib/842 decompress functions static
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>
1 parent 608f37d commit f7ead7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/842/842_decompress.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)
214214
return 0;
215215
}
216216

217-
int do_index(struct sw842_param *p, u8 n)
217+
static int do_index(struct sw842_param *p, u8 n)
218218
{
219219
switch (n) {
220220
case 2:
@@ -228,7 +228,7 @@ int do_index(struct sw842_param *p, u8 n)
228228
}
229229
}
230230

231-
int do_op(struct sw842_param *p, u8 o)
231+
static int do_op(struct sw842_param *p, u8 o)
232232
{
233233
int i, ret = 0;
234234

0 commit comments

Comments
 (0)