From: Andrew Morton Date: Mon, 1 Dec 2008 21:14:08 +0000 (-0800) Subject: drivers/gpu/drm/i915/i915_irq.c: fix warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c84ba4e502184d95ab75128d3166f595ea2dea0;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git drivers/gpu/drm/i915/i915_irq.c: fix warning drivers/gpu/drm/i915/i915_irq.c: In function 'i915_disable_pipestat': drivers/gpu/drm/i915/i915_irq.c:101: warning: control may reach end of non-void function 'i915_pipestat' being inlined Cc: Dave Airlie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index fe3d9cc72bf5..69b9a42da95e 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -78,7 +78,7 @@ i915_pipestat(int pipe) return PIPEASTAT; if (pipe == 1) return PIPEBSTAT; - BUG_ON(1); + BUG(); } void