diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-02-20 04:34:58 -0500 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2019-02-20 11:58:50 -0500 |
| commit | 4f640201a8aebcee053712828f5457aee9909cc8 (patch) | |
| tree | 8965d65ca748d70adb819b7d5c02011627540760 /drivers | |
| parent | 62ade1bed27c26c2ea9280174ae6d6c7a9e825b2 (diff) | |
hwrng: make symbol 'optee_rng_id_table' static
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>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/char/hw_random/optee-rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/optee-rng.c b/drivers/char/hw_random/optee-rng.c index d3581ce85cb3..ddfbabaa5f8f 100644 --- a/drivers/char/hw_random/optee-rng.c +++ b/drivers/char/hw_random/optee-rng.c | |||
| @@ -270,7 +270,7 @@ static int optee_rng_remove(struct device *dev) | |||
| 270 | return 0; | 270 | return 0; |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | const struct tee_client_device_id optee_rng_id_table[] = { | 273 | static const struct tee_client_device_id optee_rng_id_table[] = { |
| 274 | {UUID_INIT(0xab7a617c, 0xb8e7, 0x4d8f, | 274 | {UUID_INIT(0xab7a617c, 0xb8e7, 0x4d8f, |
| 275 | 0x83, 0x01, 0xd0, 0x9b, 0x61, 0x03, 0x6b, 0x64)}, | 275 | 0x83, 0x01, 0xd0, 0x9b, 0x61, 0x03, 0x6b, 0x64)}, |
| 276 | {} | 276 | {} |
