On 08.04.2016 01:08, Eric Dumazet wrote:
On Fri, 2016-04-08 at 00:47 +0200, Hannes Frederic Sowa wrote:
I see... hmpf.
Wouldn't it be nicer if I include a helper a la:
#define lockdep_is_held(lock) 1
in lockdep.h in case lockdep is globally not enabled? I do actually have
already another user for this outside of PROVE_RCU.
It probably had been discussed on lkml a long time ago.
My guess is that you can not do that, but am too lazy to tell you why ;)
I will simply try it and otherwise go with your solution. My other cases
would need to be ifdefed then as well, but also possible.
Patch is send out and I will now research after your tip that it was
already tried.
Thanks,
Hannes