Skip to contentSkip to conversation

drm/i915: shut up compiler for unused VLV function

PATCH In review Ben Widawsky 2 participants 3 messages Apr 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: shut up compiler for unused VLV function

---
 drivers/gpu/drm/i915/intel_display.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
index 3abebb5..30bcc61 100644
@@ -386,8 +386,8 @@ out_unlock:
 	return val;
 }
 
-static void intel_dpio_write(struct drm_i915_private *dev_priv, int reg,
-			     u32 val)
+static void __used intel_dpio_write(struct drm_i915_private *dev_priv, int reg,
+				    u32 val)
 {
 	unsigned long flags;
 
Signature · 1 line
1.7.10
#1 lore raw
Quoted 22 lines · Ben Widawsky

---
drivers/gpu/drm/i915/intel_display.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
index 3abebb5..30bcc61 100644
@@ -386,8 +386,8 @@ out_unlock:
 	return val;
 }
 
-static void intel_dpio_write(struct drm_i915_private *dev_priv, int
 reg,
-			     u32 val)
+static void __used intel_dpio_write(struct drm_i915_private *dev_priv,
 int reg,
+				    u32 val)
 {
Quoted 4 lines
	unsigned long flags;
Signature · 1 line
1.7.10

I thought Daniel pushed the code that used this... maybe only in queued?

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
#2 lore raw
Quoted 26 lines · On Sat, 07 Apr 2012 13:49:20 -0700 Jesse Barnes <[email protected]>…
Quoted 24 lines · Ben Widawsky

---
drivers/gpu/drm/i915/intel_display.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
index 3abebb5..30bcc61 100644
@@ -386,8 +386,8 @@ out_unlock:
 	return val;
 }
 
-static void intel_dpio_write(struct drm_i915_private *dev_priv, int
 reg,
-			     u32 val)
+static void __used intel_dpio_write(struct drm_i915_private
 *dev_priv, int reg,
+				    u32 val)
 {
	unsigned long flags;
Quoted 5 lines
Quoted 2 lines
Signature · 1 line
1.7.10

I thought Daniel pushed the code that used this... maybe only in queued?

Nothing has been pushed. There is code used for the read function...