]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
lockdep: Make lockdep checking constant
authorMatthew Wilcox <mawilcox@microsoft.com>
Wed, 17 Jan 2018 15:14:13 +0000 (07:14 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jan 2018 10:56:48 +0000 (11:56 +0100)
commit08f36ff642342fb058212099757cb5d40f158c2a
tree76d1cd26040f49c782799e2d621f80258a33ca2d
parent64f29d1bc9fb8196df3d0f1df694245230e208c0
lockdep: Make lockdep checking constant

There are several places in the kernel which would like to pass a const
pointer to lockdep_is_held().  Constify the entire path so nobody has to
trick the compiler.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Link: https://lkml.kernel.org/r/20180117151414.23686-3-willy@infradead.org
include/linux/lockdep.h
kernel/locking/lockdep.c