locking/lockdep: Provide empty lockdep_map structure for !CONFIG_LOCKDEP
authorByungchul Park <byungchul.park@lge.com>
Wed, 25 Oct 2017 08:55:58 +0000 (17:55 +0900)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Oct 2017 10:19:00 +0000 (12:19 +0200)
commit6f0397d7e100f3b3978d6ebb6b2dea29ee7c4a95
tree3ba81e38c591efdfcff2b4cdd91b1fdbb22701a8
parent65e53aab6d54385dea799356defcbdcc456fb1a7
locking/lockdep: Provide empty lockdep_map structure for !CONFIG_LOCKDEP

After this patch the lockdep_map structure takes no space if lockdep is
disabled, reducing the number of #ifdefs in unrelated kernel code.

Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: amir73il@gmail.com
Cc: axboe@kernel.dk
Cc: darrick.wong@oracle.com
Cc: david@fromorbit.com
Cc: hch@infradead.org
Cc: idryomov@gmail.com
Cc: johan@kernel.org
Cc: johannes.berg@intel.com
Cc: kernel-team@lge.com
Cc: linux-block@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: linux-xfs@vger.kernel.org
Cc: oleg@redhat.com
Cc: tj@kernel.org
Link: http://lkml.kernel.org/r/1508921765-15396-3-git-send-email-byungchul.park@lge.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/lockdep.h