Skip to content

Commit

Permalink
rslib: Make some functions static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
YueHaibing authored and KAGA-KOKO committed Jul 2, 2019
1 parent 991305d commit ede7c24
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/reed_solomon/test_rslib.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ static void test_uc(struct rs_control *rs, int len, int errs,
stat->nwords += trials;
}

int ex_rs_helper(struct rs_control *rs, struct wspace *ws,
int len, int trials, int method)
static int ex_rs_helper(struct rs_control *rs, struct wspace *ws,
int len, int trials, int method)
{
static const char * const desc[] = {
"Testing correction buffer interface...",
Expand Down Expand Up @@ -346,8 +346,8 @@ int ex_rs_helper(struct rs_control *rs, struct wspace *ws,
return retval;
}

int exercise_rs(struct rs_control *rs, struct wspace *ws,
int len, int trials)
static int exercise_rs(struct rs_control *rs, struct wspace *ws,
int len, int trials)
{

int retval = 0;
Expand Down Expand Up @@ -404,8 +404,8 @@ static void test_bc(struct rs_control *rs, int len, int errs,
stat->nwords += trials;
}

int exercise_rs_bc(struct rs_control *rs, struct wspace *ws,
int len, int trials)
static int exercise_rs_bc(struct rs_control *rs, struct wspace *ws,
int len, int trials)
{
struct bcstat stat = {0, 0, 0, 0};
int nroots = rs->codec->nroots;
Expand Down

0 comments on commit ede7c24

Please sign in to comment.