From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 19A9F3EED5 for ; Fri, 8 Nov 2002 02:38:57 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA87cu421076 for axp-list@listman.redhat.com; Fri, 8 Nov 2002 02:38:57 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gA87cuf21060; Fri, 8 Nov 2002 02:38:56 -0500 Received: from Marvin.DL8BCU.ampr.org (root@p50829A93.dip.t-dialin.net [80.130.154.147]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gA87G9w06012; Fri, 8 Nov 2002 02:16:10 -0500 Received: from dl8bcu.de (th@localhost [127.0.0.1]) by Marvin.DL8BCU.ampr.org (8.12.1/8.12.1) with ESMTP id gA87ckVK017915; Fri, 8 Nov 2002 07:38:47 GMT Received: (from th@localhost) by dl8bcu.de (8.12.1/8.12.1/Submit) id gA87ckXQ017914; Fri, 8 Nov 2002 07:38:46 GMT X-Authentication-Warning: Marvin.borg.net: th set sender to dl8bcu@dl8bcu.de using -f Date: Fri, 8 Nov 2002 07:38:45 +0000 From: Thorsten Kranzkowski To: Richard Henderson , George France , axp-list mailing list , linux-kernel mailing list Subject: Re: [PATCH] eliminate compile warnings Message-ID: <20021108073845.A17905@Marvin.DL8BCU.ampr.org> Mail-Followup-To: Richard Henderson , George France , axp-list mailing list , linux-kernel mailing list References: <20021106214705.A15525@Marvin.DL8BCU.ampr.org> <02110709222600.14483@shadowfax.middleearth> <20021107202855.B17028@Marvin.DL8BCU.ampr.org> <20021107173349.A4017@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20021107173349.A4017@twiddle.net>; from rth@twiddle.net on Thu, Nov 07, 2002 at 05:33:49PM -0800 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com X-Reply-To: dl8bcu@dl8bcu.de List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Thu, Nov 07, 2002 at 05:33:49PM -0800, Richard Henderson wrote: > As for the patch itself, it's not correct. At a glance, > > > addr = arch_get_unmapped_area_1 (PAGE_ALIGN(addr), len, limit); > > - if (addr != -ENOMEM) > > + if (addr != (unsigned) -ENOMEM) > > addr is unsigned long. If you truncate -ENOMEM to 32-bits, it will > never match. There appears to be much more int/long confusion later. I will give my patch another thought and I will feed it to you in smaller pieces and with comments. > You have to be /exceedingly/ careful to fix these warnings without > introducing new bugs. If you change the type of a variable, you > have to examine each and every use of the variable to determine if > the semantics are unchanged. If you add a cast, you have to be sure > that you cast to a type of the correct width. If you're adding lots > of casts, you should think about changing the type of one or more > variables. Generally I'm aware of this - maybe a case of more coffee needed :) > It's enough to make me wish we had -Wno-sign-compare in CFLAGS by > default for the nonce. Which, incidentally, is what I've been doing > for my own builds. > > There's absolutely no way I'm going to apply a jumbo patch that > changes hundreds of these at once. If you still want to fix these, > then you'll need to send them one at a time and include analysis of > why each change is correct. Will do. Thanks for your time. Thorsten -- | Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de | | Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany | | Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |