drm/i915: Fix non static symbol warning
Subsystems (2)
PATCH 1/1 drm/i915: Fix non static symbol warning
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
drivers/gpu/drm/i915/intel_hotplug.c:480:6: warning:
symbol 'i915_hpd_poll_init_work' was not declared. Should it be static?
Also move the '{' to new line.
--- drivers/gpu/drm/i915/intel_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_hotplug.c +2 -1
@@ -477,7 +477,8 @@ void intel_hpd_init(struct drm_i915_private *dev_priv)spin_unlock_irq (&dev_priv->irq_lock); } -void i915_hpd_poll_init_work (struct work_struct *work) { +static void i915_hpd_poll_init_work (struct work_struct *work) +{struct drm_i915_private *dev_priv = container_of(work, struct drm_i915_private, hotplug.poll_init_work);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerQuoted 8 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
drivers/gpu/drm/i915/intel_hotplug.c:480:6: warning:
symbol 'i915_hpd_poll_init_work' was not declared. Should it be static?Also move the '{' to new line.
Thanks for the patch, but we've already fixed this in
commit 24808e96792a860f3e83e2eb69c5190261716924
Author: Chris Wilson <[email protected]> Date: Wed Aug 17 12:09:06 2016 +0100
drm/i915: Mark i915_hpd_poll_init_work as static
BR,
Jani.
Quoted 21 lines
Signed-off-by Wei Yongjun <[email protected]>--- drivers/gpu/drm/i915/intel_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_hotplug.c +2
-1@@ -477,7 +477,8 @@ void intel_hpd_init(struct drm_i915_private *dev_priv)spin_unlock_irq (&dev_priv->irq_lock); } -void i915_hpd_poll_init_work (struct work_struct *work) { +static void i915_hpd_poll_init_work (struct work_struct *work) +{struct drm_i915_private *dev_priv = container_of(work, struct drm_i915_private, hotplug.poll_init_work);
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx