From: Dan Streetman Date: Mon, 11 May 2015 11:22:35 +0000 (-0400) Subject: lib: make lib/842 decompress functions static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7ead7b47a758bbee6fdc66f95f27fdb866e5e9d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Fengguang Wu Signed-off-by: Dan Streetman Signed-off-by: Herbert Xu --- diff --git a/lib/842/842_decompress.c b/lib/842/842_decompress.c index 6b2b45aecde3..dbeb0581b879 100644 --- a/lib/842/842_decompress.c +++ b/lib/842/842_decompress.c @@ -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;