Skip to content

Commit ede7c24

Browse files
YueHaibingKAGA-KOKO
authored andcommitted
rslib: Make some functions static
Fix sparse warnings: lib/reed_solomon/test_rslib.c:313:5: warning: symbol 'ex_rs_helper' was not declared. Should it be static? lib/reed_solomon/test_rslib.c:349:5: warning: symbol 'exercise_rs' was not declared. Should it be static? lib/reed_solomon/test_rslib.c:407:5: warning: symbol 'exercise_rs_bc' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: <ferdinand.blomqvist@gmail.com> Link: https://lkml.kernel.org/r/20190702061847.26060-1-yuehaibing@huawei.com
1 parent 991305d commit ede7c24

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎lib/reed_solomon/test_rslib.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ static void test_uc(struct rs_control *rs, int len, int errs,
310310
stat->nwords += trials;
311311
}
312312

313-
int ex_rs_helper(struct rs_control *rs, struct wspace *ws,
314-
int len, int trials, int method)
313+
static int ex_rs_helper(struct rs_control *rs, struct wspace *ws,
314+
int len, int trials, int method)
315315
{
316316
static const char * const desc[] = {
317317
"Testing correction buffer interface...",
@@ -346,8 +346,8 @@ int ex_rs_helper(struct rs_control *rs, struct wspace *ws,
346346
return retval;
347347
}
348348

349-
int exercise_rs(struct rs_control *rs, struct wspace *ws,
350-
int len, int trials)
349+
static int exercise_rs(struct rs_control *rs, struct wspace *ws,
350+
int len, int trials)
351351
{
352352

353353
int retval = 0;
@@ -404,8 +404,8 @@ static void test_bc(struct rs_control *rs, int len, int errs,
404404
stat->nwords += trials;
405405
}
406406

407-
int exercise_rs_bc(struct rs_control *rs, struct wspace *ws,
408-
int len, int trials)
407+
static int exercise_rs_bc(struct rs_control *rs, struct wspace *ws,
408+
int len, int trials)
409409
{
410410
struct bcstat stat = {0, 0, 0, 0};
411411
int nroots = rs->codec->nroots;

0 commit comments

Comments
 (0)