Subject: Re: [PATCH net] wireless: mediatek: mt7921: fix Wformat build warning

From: Kalle Valo <[email-masked]>
Date: Sat, 23 Oct 2021 10:14:40 +0300

Randy Dunlap <[email-masked]> writes:

> ARRAY_SIZE() is of type size_t, so the format specfier should
> be %zu instead of %lu.
>
> Fixes this build warning:
>
> ../drivers/net/wireless/mediatek/mt76/mt7921/main.c: In function ‘mt7921_get_et_stats’:
> ../drivers/net/wireless/mediatek/mt76/mt7921/main.c:1024:26: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]
>    dev_err(dev->mt76.dev, "ei: %d  SSTATS_LEN: %lu",
>
> Signed-off-by: Randy Dunlap <[email-masked]>
> Cc: Sean Wang <[email-masked]>
> Cc: [email-masked]
> Cc: Felix Fietkau <[email-masked]>
> Cc: Lorenzo Bianconi <[email-masked]>
> Cc: Ryder Lee <[email-masked]>
> Cc: Kalle Valo <[email-masked]>

The subject prefix should be "mt76: mt7921:", I'll fix it during commit.

Felix, I'll take this directly to wireless-drivers-next. Please drop it
from your tree.

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

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