Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote: > 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 <rdunlap@xxxxxxxxxxxxx> > Cc: Sean Wang <sean.wang@xxxxxxxxxxxx> > Cc: linux-wireless@xxxxxxxxxxxxxxx > Cc: Felix Fietkau <nbd@xxxxxxxx> > Cc: Lorenzo Bianconi <lorenzo.bianconi83@xxxxxxxxx> > Cc: Ryder Lee <ryder.lee@xxxxxxxxxxxx> > Cc: Kalle Valo <kvalo@xxxxxxxxxxxxxx> Patch applied to wireless-drivers-next.git, thanks. a88cae727b3e mt76: mt7921: fix Wformat build warning -- https://patchwork.kernel.org/project/linux-wireless/patch/20211022233251.29987-1-rdunlap@xxxxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches