Skip to contentSkip to conversation

drm/msm/hdmi: make 'msm_hdmi_pm_ops' static

PATCH Applied Ben Dooks 3 participants 4 messages Mar 10 – Mar 27

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 drm/msm/hdmi: make 'msm_hdmi_pm_ops' static

The struct 'msm_hdmi_pm_ops' is not used outside of the file it is defined in, so make it static.

Fixes the following sparse warning:
drivers/gpu/drm/msm/hdmi/hdmi.c:432:1: warning: symbol 'msm_hdmi_pm_ops' was not declared. Should it be static?

---
 drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/hdmi/hdmi.c +1 -1
index 5afac09c0d33..64a0bc7118d5 100644
@@ -429,7 +429,7 @@ static int msm_hdmi_runtime_resume(struct device *dev)
 	return ret;
 }
 
-DEFINE_RUNTIME_DEV_PM_OPS(msm_hdmi_pm_ops, msm_hdmi_runtime_suspend, msm_hdmi_runtime_resume, NULL);
+static DEFINE_RUNTIME_DEV_PM_OPS(msm_hdmi_pm_ops, msm_hdmi_runtime_suspend, msm_hdmi_runtime_resume, NULL);
 
 static const struct of_device_id msm_hdmi_dt_match[] = {
 	{ .compatible = "qcom,hdmi-tx-8998", .data = &hdmi_tx_8974_config },
Signature · 1 line
2.37.2.352.g3c44437643
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Ben Dooks

The struct 'msm_hdmi_pm_ops' is not used outside of the file it is defined in, so make it static.

Fixes the following sparse warning:
drivers/gpu/drm/msm/hdmi/hdmi.c:432:1: warning: symbol 'msm_hdmi_pm_ops' was not declared. Should it be static?

---
 drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry
#3 lore raw
In reply to Ben Dooks
Quoted 8 lines · Ben Dooks

The struct 'msm_hdmi_pm_ops' is not used outside of the file it is defined in, so make it static.

Fixes the following sparse warning:
drivers/gpu/drm/msm/hdmi/hdmi.c:432:1: warning: symbol 'msm_hdmi_pm_ops' was not declared. Should it be static?

[...]

Applied to msm-next, thanks!

[1/1] drm/msm/hdmi: make 'msm_hdmi_pm_ops' static

      https://gitlab.freedesktop.org/lumag/msm/-/commit/fdbc6391b4d8

Best regards,

Signature · 2 lines
With best wishes
Dmitry