From: Wei Yongjun Date: Thu, 12 Jan 2017 15:03:21 +0000 (+0000) Subject: crypto: mediatek - make symbol of_crypto_id static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de0f96d7724f4ce3b48af10a0ea29150f6ddd5ba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: mediatek - make symbol of_crypto_id static 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/mediatek/mtk-platform.c b/drivers/crypto/mediatek/mtk-platform.c index 286296fbf15d..a9c713d4c733 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" }, {}, };