linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] hwrng: cctrng - Make some symbols static
@ 2020-04-23 12:21 Zou Wei
  2020-04-23 14:00 ` Hadar Gat
  2020-04-30  5:32 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Zou Wei @ 2020-04-23 12:21 UTC (permalink / raw)
  To: hadar.gat, arnd, gregkh; +Cc: linux-crypto, linux-kernel, Zou Wei

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>
---
 drivers/char/hw_random/cctrng.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c
index e82716c..3ff37a6 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;
@@ -448,7 +448,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);
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-30  5:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23 12:21 [PATCH -next] hwrng: cctrng - Make some symbols static Zou Wei
2020-04-23 14:00 ` Hadar Gat
2020-04-30  5:32 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).