From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751622AbdLKFYk (ORCPT ); Mon, 11 Dec 2017 00:24:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51298 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdLKFYi (ORCPT ); Mon, 11 Dec 2017 00:24:38 -0500 Date: Mon, 11 Dec 2017 00:24:36 -0500 From: Mike Snitzer To: Stephen Rothwell Cc: Alasdair G Kergon , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warning after merge of the device-mapper tree Message-ID: <20171211052436.GA18104@redhat.com> References: <20171211130534.6ab6e415@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171211130534.6ab6e415@canb.auug.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 11 Dec 2017 05:24:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 10 2017 at 9:05pm -0500, Stephen Rothwell wrote: > Hi all, > > After merging the device-mapper tree, today's linux-next build (powerp > ppc64_defconfig) produced this warning: > > drivers/md/dm.c: In function '__send_changing_extent_only': > drivers/md/dm.c:1365:45: warning: 'ti' may be used uninitialized in this function [-Wmaybe-uninitialized] > num_bios = get_num_bios ? get_num_bios(ti) : 0; > ^ > > Introduced by commit > > aecefd4919de ("dm: fix __send_changing_extent_only() to send first bio and chain remainder") > > This looks particularly bad :-( I worked all weekend on DM code and compiled dm.c probably 30 times, pretty bizarre that the RHEL7 gcc compiler isn't spewing anything about this. Anyway, I just fixed it via rebase (new commit is 6fb0326f0a19dd855bfd748481fd32035770376e). Thanks, Mike