]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Redefine WARN_ON to include the condition
authorMika Kuoppala <miku@iki.fi>
Tue, 28 Oct 2014 15:32:30 +0000 (17:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Nov 2014 22:22:14 +0000 (23:22 +0100)
commit263107eaef7909e98dee42610128516495360711
tree766e496280517d39062de638aeffd3e4bd97e341
parent9f1a31a8c09a1ee0baff64efbb2dd2569ef75be1
drm/i915: Redefine WARN_ON to include the condition

When looking at the bug report logs with triggered
WARN_ON, the person doing bug triaging will have to
find exact kernel source and match file/line.

Attach the condition that triggered the WARN_ON
to kernel log. In most cases the context is self
evident and this way we can save developer time.

The drawback is ~16kbytes bigger i915.ko

Signed-off-by: Mika Kuoppala <miku@iki.fi>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h