Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932742AbcK1M0T (ORCPT ); Mon, 28 Nov 2016 07:26:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56096 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754312AbcK1M0L (ORCPT ); Mon, 28 Nov 2016 07:26:11 -0500 From: Jes Sorensen To: Kalle Valo Cc: Barry Day , Stephen Rothwell , Wireless , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: linux-next: build warning after merge of the wireless-drivers-next tree References: <20161128115814.2cabf139@canb.auug.org.au> <87d1hg83rp.fsf@kamboji.qca.qualcomm.com> <20161128081649.GA8403@testbox> <87oa0zygk7.fsf@kamboji.qca.qualcomm.com> Date: Mon, 28 Nov 2016 07:26:09 -0500 In-Reply-To: <87oa0zygk7.fsf@kamboji.qca.qualcomm.com> (Kalle Valo's message of "Mon, 28 Nov 2016 13:44:40 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 28 Nov 2016 12:26:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1662 Lines: 46 Kalle Valo writes: > Barry Day writes: > >> On Mon, Nov 28, 2016 at 09:25:30AM +0200, Kalle Valo wrote: >>> Stephen Rothwell writes: >>> >>> > Hi all, >>> > >>> > After merging the wireless-drivers-next tree, today's linux-next build >>> > (x86_64 allmodconfig) produced this warning: >>> > >>> > In file included from include/linux/usb/ch9.h:35:0, >>> > from include/linux/usb.h:5, >>> > from drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:32: >>> > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function 'rtl8xxxu_fill_txdesc_v2': >>> > include/linux/device.h:1214:36: warning: 'rate' may be used uninitialized in this function [-Wmaybe-uninitialized] >>> > #define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg) >>> > ^ >>> > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4841:6: note: 'rate' was declared here >>> > u32 rate; >>> > ^ >>> > >>> > Introduced by commit >>> > >>> > b4c3d9cfb607 ("rtl8xxxu: Pass tx_info to fill_txdesc in order to have access to retry count") >>> > >>> > This is a correct diagnosis. >>> >>> Thanks for the report. Jes, can you send a patch to fix this? (Unless >>> someone else beats to it.) >>> >>> -- >>> Kalle Valo >> >> I posted a patch on the 26th that fixes this > > Thanks, I see it: > > https://patchwork.kernel.org/patch/9448225/ > > The commit log doesn't mention anything about the compilation warning, > I'll add that. Also a Fixes line is nice to have. I'm happy with this fix Acked-by: Jes Sorensen