* [PATCH -next] crypto: mediatek - make symbol of_crypto_id static
@ 2017-01-12 15:03 Wei Yongjun
2017-01-13 14:37 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2017-01-12 15:03 UTC (permalink / raw)
To: Herbert Xu, Matthias Brugger, Ryder Lee
Cc: linux-mediatek, Wei Yongjun, linux-crypto, linux-arm-kernel
From: Wei Yongjun <weiyongjun1@huawei.com>
Fixes the following sparse warning:
drivers/crypto/mediatek/mtk-platform.c:585:27: warning:
symbol 'of_crypto_id' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/crypto/mediatek/mtk-platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/mediatek/mtk-platform.c b/drivers/crypto/mediatek/mtk-platform.c
index 286296f..a9c713d 100644
--- a/drivers/crypto/mediatek/mtk-platform.c
+++ b/drivers/crypto/mediatek/mtk-platform.c
@@ -582,7 +582,7 @@ static int mtk_crypto_remove(struct platform_device *pdev)
return 0;
}
-const struct of_device_id of_crypto_id[] = {
+static const struct of_device_id of_crypto_id[] = {
{ .compatible = "mediatek,eip97-crypto" },
{},
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] crypto: mediatek - make symbol of_crypto_id static
2017-01-12 15:03 [PATCH -next] crypto: mediatek - make symbol of_crypto_id static Wei Yongjun
@ 2017-01-13 14:37 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2017-01-13 14:37 UTC (permalink / raw)
To: Wei Yongjun
Cc: Matthias Brugger, Ryder Lee, Wei Yongjun, linux-crypto,
linux-arm-kernel, linux-mediatek
On Thu, Jan 12, 2017 at 03:03:21PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fixes the following sparse warning:
>
> drivers/crypto/mediatek/mtk-platform.c:585:27: warning:
> symbol 'of_crypto_id' was not declared. Should it be static?
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-13 14:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-12 15:03 [PATCH -next] crypto: mediatek - make symbol of_crypto_id static Wei Yongjun
2017-01-13 14:37 ` 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).