drm/i915: un-EXPORT and make 'intelfb_panic' static
authorHannes Eder <hannes@hanneseder.net>
Fri, 19 Dec 2008 11:34:27 +0000 (12:34 +0100)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:26 +0000 (17:47 +1000)
Fix this sparse warning:

  drivers/gpu/drm/i915/intel_fb.c:417:5: warning: symbol 'intelfb_panic' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/i915/intel_fb.c

index 3e38da0f60968e8513b1d2ac59ccb7b1769a93c7..afd1217b8a02cb4bfff4b7371baf2f842a4599fb 100644 (file)
@@ -414,15 +414,14 @@ EXPORT_SYMBOL(intelfb_resize);
 
 static struct drm_mode_set kernelfb_mode;
 
-int intelfb_panic(struct notifier_block *n, unsigned long ununsed,
-                 void *panic_str)
+static int intelfb_panic(struct notifier_block *n, unsigned long ununsed,
+                        void *panic_str)
 {
        DRM_ERROR("panic occurred, switching back to text console\n");
 
        intelfb_restore();
        return 0;
 }
-EXPORT_SYMBOL(intelfb_panic);
 
 static struct notifier_block paniced = {
        .notifier_call = intelfb_panic,