Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756422AbZKIPyM (ORCPT ); Mon, 9 Nov 2009 10:54:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756388AbZKIPyK (ORCPT ); Mon, 9 Nov 2009 10:54:10 -0500 Received: from mk-filter-2-a-1.mail.uk.tiscali.com ([212.74.100.53]:36203 "EHLO mk-filter-2-a-1.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756368AbZKIPyI (ORCPT ); Mon, 9 Nov 2009 10:54:08 -0500 X-Trace: 286634713/mk-filter-2.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/79.69.15.142/None/hugh.dickins@tiscali.co.uk X-SBRS: None X-RemoteIP: 79.69.15.142 X-IP-MAIL-FROM: hugh.dickins@tiscali.co.uk X-SMTP-AUTH: X-MUA: X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAG/J90pPRQ+O/2dsb2JhbACBToMkyV+PTINqVASBaA X-IronPort-AV: E=Sophos;i="4.44,708,1249254000"; d="scan'208";a="286634713" Date: Mon, 9 Nov 2009 15:54:00 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@sister.anvils To: askb cc: wharms@bfs.de, Izik Eidus , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] mm/ksm.c - Fix compile warnings (PS ignore my formatting in previous email) In-Reply-To: <1257774331.5381.70.camel@linux-k65f.site> Message-ID: References: <1257317010.14838.55.camel@linux-k65f.site> <4AF15022.1020408@bfs.de> <1257334139.14838.264.camel@linux-k65f.site> <1257774331.5381.70.camel@linux-k65f.site> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323584-957890546-1257782040=:24767" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1809 Lines: 47 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323584-957890546-1257782040=:24767 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 9 Nov 2009, askb wrote: > On Mon, 2009-11-09 at 10:51 +0000, Hugh Dickins wrote: > > On Wed, 4 Nov 2009, askb wrote: > > > On Wed, 2009-11-04 at 10:57 +0100, walter harms wrote: > > > > askb schrieb: > > > > > Found the compiler warning on linux-next: =09 > > > > >=20 > > > > > mm/ksm.c: In function =E2=80=98ksm_scan_thread=E2=80=99: > > > > > mm/ksm.c:1083: warning: =E2=80=98page2[0u]=E2=80=99 may be used u= ninitialized in this > > > > > function > > > > > mm/ksm.c:1083: note: =E2=80=98page2[0u]=E2=80=99 was declared her= e =2E.. > > Which version of the compiler gave you that uninitialized warning? >=20 > gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) Thanks: funny, that's the one I've been using most too. >=20 > > A version which lots of people are using, or just some snapshot? > > I've never seen a warning there myself, but they do keep "refining" > > that logic. > >=20 > I got the warning while doing "make randconfig". However, now after a > cleanup and redoing the same, the warning is not seen. I just tried the most obvious alternatives (CC_OPTIMIZE_FOR_SIZE, OPTIMIZE_INLINING, off and on), but still didn't see the warning. Never mind, I've shoved a NULL in my tree, but no rush for this. Hugh --8323584-957890546-1257782040=:24767-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/