From: Ben Dooks (Codethink) Date: Tue, 17 Dec 2019 11:30:24 +0000 (+0000) Subject: crypto: sun4i-ss - make unexported sun4i_ss_pm_ops static X-Git-Tag: v5.6-rc1~152^2~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3932aa1ce38148cd54b6ec2fd1ce070e2160b628;p=thirdparty%2Fkernel%2Flinux.git crypto: sun4i-ss - make unexported sun4i_ss_pm_ops static The sun4i_ss_pm_ops is not referenced outside the driver except via a pointer, so make it static to avoid the following warning: drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c:276:25: warning: symbol 'sun4i_ss_pm_ops' was not declared. Should it be static? Signed-off-by: Ben Dooks (Codethink) Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c index d35a05843c22e..a2b67f7f8a814 100644 --- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c +++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c @@ -282,7 +282,7 @@ err_enable: return err; } -const struct dev_pm_ops sun4i_ss_pm_ops = { +static const struct dev_pm_ops sun4i_ss_pm_ops = { SET_RUNTIME_PM_OPS(sun4i_ss_pm_suspend, sun4i_ss_pm_resume, NULL) };