lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <163497415831.29616.6366174077923713050.kvalo@codeaurora.org>
Date:   Sat, 23 Oct 2021 07:29:23 +0000 (UTC)
From:   Kalle Valo <kvalo@...eaurora.org>
To:     Randy Dunlap <rdunlap@...radead.org>
Cc:     netdev@...r.kernel.org, Randy Dunlap <rdunlap@...radead.org>,
        Sean Wang <sean.wang@...iatek.com>,
        linux-wireless@...r.kernel.org, Felix Fietkau <nbd@....name>,
        Lorenzo Bianconi <lorenzo.bianconi83@...il.com>,
        Ryder Lee <ryder.lee@...iatek.com>
Subject: Re: [net] mt76: mt7921: fix Wformat build warning

Randy Dunlap <rdunlap@...radead.org> 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@...radead.org>
> Cc: Sean Wang <sean.wang@...iatek.com>
> Cc: linux-wireless@...r.kernel.org
> Cc: Felix Fietkau <nbd@....name>
> Cc: Lorenzo Bianconi <lorenzo.bianconi83@...il.com>
> Cc: Ryder Lee <ryder.lee@...iatek.com>
> Cc: Kalle Valo <kvalo@...eaurora.org>

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@infradead.org/

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ