Re: [PATCH net] wireless/nl80211: fix wdev_id may be used uninitialized

From: Kalle Valo
Date: Fri Mar 12 2021 - 16:04:30 EST


Jarod Wilson <jarod@xxxxxxxxxx> writes:

> Build currently fails with -Werror=maybe-uninitialized set:
>
> net/wireless/nl80211.c: In function '__cfg80211_wdev_from_attrs':
> net/wireless/nl80211.c:124:44: error: 'wdev_id' may be used
> uninitialized in this function [-Werror=maybe-uninitialized]

Really, build fails? Is -Werror enabled by default now? I hope not.

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches