From: Kalle Valo <kvalo@codeaurora.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: netdev@vger.kernel.org, Sean Wang <sean.wang@mediatek.com>,
linux-wireless@vger.kernel.org, Felix Fietkau <nbd@nbd.name>,
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>,
Ryder Lee <ryder.lee@mediatek.com>
Subject: Re: [PATCH net] wireless: mediatek: mt7921: fix Wformat build warning
Date: Sat, 23 Oct 2021 10:14:40 +0300 [thread overview]
Message-ID: <87pmrwdxgf.fsf@codeaurora.org> (raw)
In-Reply-To: <20211022233251.29987-1-rdunlap@infradead.org> (Randy Dunlap's message of "Fri, 22 Oct 2021 16:32:51 -0700")
Randy Dunlap <rdunlap@infradead.org> 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 <rdunlap@infradead.org>
> Cc: Sean Wang <sean.wang@mediatek.com>
> Cc: linux-wireless@vger.kernel.org
> Cc: Felix Fietkau <nbd@nbd.name>
> Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
> Cc: Ryder Lee <ryder.lee@mediatek.com>
> Cc: Kalle Valo <kvalo@codeaurora.org>
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
next prev parent reply other threads:[~2021-10-23 7:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-22 23:32 [PATCH net] wireless: mediatek: mt7921: fix Wformat build warning Randy Dunlap
2021-10-23 7:14 ` Kalle Valo [this message]
2021-10-23 7:29 ` [net] mt76: " Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmrwdxgf.fsf@codeaurora.org \
--to=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.