Skip to content

Commit

Permalink
hwrng: cctrng - Make some symbols static
Browse files Browse the repository at this point in the history
Fix the following sparse warnings:

drivers/char/hw_random/cctrng.c:316:6: warning: symbol
'cc_trng_compwork_handler' was not declared. Should it be static?
drivers/char/hw_random/cctrng.c:451:6: warning: symbol
'cc_trng_startwork_handler' was not declared. Should it be static?

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zou Wei <[email protected]>
Acked-by: Hadar Gat <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
SamuelZOU authored and herbertx committed Apr 30, 2020
1 parent d0f6223 commit 43f3c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/hw_random/cctrng.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void cc_trng_hw_trigger(struct cctrng_drvdata *drvdata)
cc_trng_enable_rnd_source(drvdata);
}

void cc_trng_compwork_handler(struct work_struct *w)
static void cc_trng_compwork_handler(struct work_struct *w)
{
u32 isr = 0;
u32 ehr_valid = 0;
Expand Down Expand Up @@ -446,7 +446,7 @@ static irqreturn_t cc_isr(int irq, void *dev_id)
return IRQ_HANDLED;
}

void cc_trng_startwork_handler(struct work_struct *w)
static void cc_trng_startwork_handler(struct work_struct *w)
{
struct cctrng_drvdata *drvdata =
container_of(w, struct cctrng_drvdata, startwork);
Expand Down

0 comments on commit 43f3c2b

Please sign in to comment.