linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] hwrng: make symbol 'optee_rng_id_table' static
@ 2019-02-20  9:34 Wei Yongjun
  2019-02-20 10:34 ` Sumit Garg
  2019-02-20 19:36 ` Jeffrey Walton
  0 siblings, 2 replies; 12+ messages in thread
From: Wei Yongjun @ 2019-02-20  9:34 UTC (permalink / raw)
  To: Sumit Garg, Matt Mackall, Herbert Xu, Arnd Bergmann,
	Greg Kroah-Hartman
  Cc: Wei Yongjun, linux-crypto, kernel-janitors

Fixes the following sparse warning:

drivers/char/hw_random/optee-rng.c:265:35: warning:
 symbol 'optee_rng_id_table' was not declared. Should it be static?

Fixes: 5fe8b1cc6a03 ("hwrng: add OP-TEE based rng driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/char/hw_random/optee-rng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/hw_random/optee-rng.c b/drivers/char/hw_random/optee-rng.c
index 2b9fc8ac5500..3a4dd6fc9ff4 100644
--- a/drivers/char/hw_random/optee-rng.c
+++ b/drivers/char/hw_random/optee-rng.c
@@ -262,7 +262,7 @@ static int optee_rng_remove(struct device *dev)
 	return 0;
 }
 
-const struct tee_client_device_id optee_rng_id_table[] = {
+static const struct tee_client_device_id optee_rng_id_table[] = {
 	{UUID_INIT(0xab7a617c, 0xb8e7, 0x4d8f,
 		   0x83, 0x01, 0xd0, 0x9b, 0x61, 0x03, 0x6b, 0x64)},
 	{}




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

end of thread, other threads:[~2019-02-21  5:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-20  9:34 [PATCH -next] hwrng: make symbol 'optee_rng_id_table' static Wei Yongjun
2019-02-20 10:34 ` Sumit Garg
2019-02-20 10:37   ` Ard Biesheuvel
2019-02-20 10:49     ` Colin Ian King
2019-02-20 11:17       ` Sumit Garg
2019-02-20 15:34         ` Arnd Bergmann
2019-02-20 16:25           ` Sumit Garg
2019-02-20 16:33             ` Greg Kroah-Hartman
2019-02-21  5:22               ` Sumit Garg
2019-02-20 17:01             ` Arnd Bergmann
2019-02-20 10:45   ` Dan Carpenter
2019-02-20 19:36 ` Jeffrey Walton

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).