From: Kalle Valo Date: Fri, 5 Jul 2013 17:38:45 +0300 Subject: [ath9k-devel] drivers/net/wireless/ath/ath10k/mac.c:1264:8: warning: format '%zd' expects argument of type 'signed size_t', but argument 4 has type 'long int' In-Reply-To: <20130704080448.GD17178@localhost> (Fengguang Wu's message of "Thu, 4 Jul 2013 16:04:48 +0800") References: <51d510b8.PYCVZD+C0DOiz9UB%fengguang.wu@intel.com> <20130704080448.GD17178@localhost> Message-ID: <87k3l5f4wa.fsf@kamboji.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi Fengguang, Fengguang Wu writes: > FYI, there are new compile warnings show up in > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next master > head: fa1383200d289afdff2f5678eb89483daa537465 > commit: 5e3dd157d7e70f0e3cea3f2573ed69fb156a19d5 ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices > date: 3 weeks ago > config: make ARCH=microblaze allyesconfig > > All warnings: > > drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_update_channel_list': >>> drivers/net/wireless/ath/ath10k/mac.c:1264:8: warning: format '%zd' expects argument of type 'signed size_t', but argument 4 has type 'long int' [-Wformat=] > ch->max_antenna_gain, ch->mode); > ^ Thanks for the report. Unfortunately I can't reproduce the warning myself, but can you please try if the patch below fixes it? Kalle diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index da5c333..1ce6ecd 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1261,7 +1261,7 @@ static int ath10k_update_channel_list(struct ath10k *ar) continue; ath10k_dbg(ATH10K_DBG_WMI, - "%s: [%zd/%d] freq %d maxpower %d regpower %d antenna %d mode %d\n", + "%s: [%d/%d] freq %d maxpower %d regpower %d antenna %d mode %d\n", __func__, ch - arg.channels, arg.n_channels, ch->freq, ch->max_power, ch->max_reg_power, ch->max_antenna_gain, ch->mode);