Re: [PATCH v2] sbitmap: silence bogus lockdep IRQ warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux