]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: properly init lockdep class
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 14 Dec 2017 13:10:09 +0000 (15:10 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 14 Dec 2017 18:10:01 +0000 (20:10 +0200)
commit2c1da511b3d7a50cc37c43de69c2cd0042dfd785
tree6638ec11ffa017b704e55de0c5f307406aeed720
parent99d0a1d02d26e9a3d7a31f9167874d14aca306cc
drm/i915: properly init lockdep class

The code has an ifdef and uses two functions to either init the bare
spinlock or init it and set a lock-class. It is possible to do the same
thing without an ifdef.
With this patch (in debug case) we first use the "default" lock class
which is later overwritten to the supplied one. Without lockdep the set
name/class function vanishes.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171214131009.7479-1-joonas.lahtinen@linux.intel.com
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_timeline.c