From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758058Ab2IKSZY (ORCPT ); Tue, 11 Sep 2012 14:25:24 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:65065 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751816Ab2IKSZW (ORCPT ); Tue, 11 Sep 2012 14:25:22 -0400 Date: Tue, 11 Sep 2012 11:24:41 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: David Rientjes cc: linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org, bhalevy@tonian.com, dhillf@gmail.com Subject: Re: + mm-mmapc-replace-find_vma_prepare-with-clearer-find_vma_links.patch added to -mm tree In-Reply-To: Message-ID: References: <20120816200105.C14EA1E0048@wpzn4.hot.corp.google.com> User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Sep 2012, David Rientjes wrote: > On Thu, 16 Aug 2012, akpm@linux-foundation.org wrote: > > > > This does revert 2.6.27's dfe195fb79e88 ("mm: fix uninitialized variables > > for find_vma_prepare callers"), but it looks like gcc 4.3.0 was one of > > those releases too eager to shout about uninitialized variables: only > > copy_vma() warns with 4.5.1 and 4.7.1, which a BUG on error silences. > > > > That trick doesn't work if CONFIG_BUG=n. > > mm/mmap.c: In function 'copy_vma': > mm/mmap.c:2344: warning: 'prev' may be used uninitialized in this function > mm/mmap.c:2345: warning: 'rb_link' may be used uninitialized in this function > mm/mmap.c:2345: warning: 'rb_parent' may be used uninitialized in this function Hmm, right: not an option I ever choose, and I hadn't given it a thought. But do we care? If this introduced the only such warning, I would care. But that seems to be far from the case - building my usual config without CONFIG_BUG gives me 36 warnings, of uninitialized and unused and control reaches end of non-void varieties. Hugh