Search Linux Wireless

Re: [PATCH] mac80211: avoid warning when CONFIG_LOCKDEP is not enabled

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

 



On Thu, 2014-06-26 at 17:46 +0300, Luca Coelho wrote:
> From: Luciano Coelho <luciano.coelho@xxxxxxxxx>
> 
> After commit 5bcae31d9 (mac80211: implement multi-vif in-place
> reservations) we get a warning when CONFIG_LOCKDEP is not enabled:
> 
> net/mac80211/chan.c: In function 'ieee80211_vif_get_chanctx':
> net/mac80211/chan.c:69:26: warning: unused variable 'local' [-Wunused-variable]
>   struct ieee80211_local *local = sdata->local;
>                           ^
> Fix this by removing the separate declaration for local and accessing
> it directly in the lockdep_is_held() call.

Huh, sorry, I just fixed this the other day by adding __maybe_unused.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux