summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gvt/handlers.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2017-12-14 16:10:09 +0300
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2017-12-14 21:10:01 +0300
commit8d8c46fad4a15cd8a9811ab74a14de0ee1d6c66b (patch)
tree6638ec11ffa017b704e55de0c5f307406aeed720 /drivers/gpu/drm/i915/gvt/handlers.c
parent84ef3a727e32ac32380e28198c3fdc6dcf941ec6 (diff)
downloadlinux-8d8c46fad4a15cd8a9811ab74a14de0ee1d6c66b.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/handlers.c')
0 files changed, 0 insertions, 0 deletions