提交 d1e22c6e 编写于 作者: H Hannes Eder 提交者: Dave Airlie

drm/i915: un-EXPORT and make 'intelfb_panic' static

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: NHannes Eder <hannes@hanneseder.net>
Signed-off-by: NEric Anholt <eric@anholt.net>
Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 bae7ec65
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册