On 12/9/18 11:47 AM, Guenter Roeck wrote: > I'll give it a try. Thanks! >> V2: don't use lockdep_set_novalidate_class(), it doesn't work for >> spinlocks. >> >> diff --git a/lib/sbitmap.c b/lib/sbitmap.c >> index a89fbe7cf6ca..23da156f7a17 100644 >> --- a/lib/sbitmap.c >> +++ b/lib/sbitmap.c >> @@ -118,8 +118,13 @@ static int __sbitmap_get_word(unsigned long *word, unsigned long depth, >> static inline bool sbitmap_deferred_clear(struct sbitmap *sb, int index) >> { >> unsigned long mask, val; >> + unsigned long flags; > > Probably asks for __maybe_unused. Yeah good point, we'll need that to shut up gcc for !CONFIG_LOCKDEP. -- Jens Axboe