]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: redefine WARN_ON_ONCE to include the condition
authorJani Nikula <jani.nikula@intel.com>
Thu, 12 Mar 2015 11:01:12 +0000 (13:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:30:30 +0000 (22:30 +0100)
commit9f3f4187795b48913cade8036e516f1862cbb304
tree5a8214cfe2cf2ea21c75f37b52b907b293f1ae6e
parentf885cfbcb4a29d2b3300796518dcf6e3a242e00a
drm/i915: redefine WARN_ON_ONCE to include the condition

Same as

commit 263107eaef7909e98dee42610128516495360711
Author: Mika Kuoppala <miku@iki.fi>
Date:   Tue Oct 28 17:32:30 2014 +0200

    drm/i915: Redefine WARN_ON to include the condition

but for WARN_ON_ONCE. Since the kernel WARN_ON_ONCE actually picks up
*our* version of WARN_ON, we end up with messages like

[  838.285319] WARN_ON(!__warned)

which are not that helpful.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h