summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/cctrng.c
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2020-04-23 20:21:21 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-04-30 15:19:34 +1000
commit43f3c2b4dde331d380e4f575d3e5798f27867b3e (patch)
tree6d7e3737c62d5ddff1d177879a586f501ac573ca /drivers/char/hw_random/cctrng.c
parentd0f6223c0dc5196ef684657f6b77d4fa5fca2020 (diff)
downloadlinux-43f3c2b4dde331d380e4f575d3e5798f27867b3e.tar.gz
linux-43f3c2b4dde331d380e4f575d3e5798f27867b3e.tar.bz2
linux-43f3c2b4dde331d380e4f575d3e5798f27867b3e.zip
hwrng: cctrng - Make some symbols static
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 <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Acked-by: Hadar Gat <hadar.gat@arm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random/cctrng.c')
-rw-r--r--drivers/char/hw_random/cctrng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c
index 49fb65a221f3..619148fb2dc9 100644
--- a/drivers/char/hw_random/cctrng.c
+++ b/drivers/char/hw_random/cctrng.c
@@ -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;
@@ -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);