Skip to content

Commit 4f64020

Browse files
Wei Yongjunarndb
authored andcommitted
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: 5fe8b1c ("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>
1 parent 62ade1b commit 4f64020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/hw_random/optee-rng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static int optee_rng_remove(struct device *dev)
270270
return 0;
271271
}
272272

273-
const struct tee_client_device_id optee_rng_id_table[] = {
273+
static const struct tee_client_device_id optee_rng_id_table[] = {
274274
{UUID_INIT(0xab7a617c, 0xb8e7, 0x4d8f,
275275
0x83, 0x01, 0xd0, 0x9b, 0x61, 0x03, 0x6b, 0x64)},
276276
{}

0 commit comments

Comments
 (0)