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 C043341CB1 for ; Fri, 8 Nov 2002 20:03:18 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA913Ip08864 for axp-list@listman.redhat.com; Fri, 8 Nov 2002 20:03:18 -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 gA913If08860; Fri, 8 Nov 2002 20:03:18 -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 gA90eRw07141; Fri, 8 Nov 2002 19:40:27 -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 gA913DVK018633; Sat, 9 Nov 2002 01:03:13 GMT Received: (from th@localhost) by dl8bcu.de (8.12.1/8.12.1/Submit) id gA913D4W018632; Sat, 9 Nov 2002 01:03:13 GMT X-Authentication-Warning: Marvin.borg.net: th set sender to dl8bcu@dl8bcu.de using -f Date: Sat, 9 Nov 2002 01:03:12 +0000 From: Thorsten Kranzkowski To: Richard Henderson , axp-list mailing list Subject: [PATCH] [RESENT] compilation warnings 2/6 Message-ID: <20021109010312.E18411@Marvin.DL8BCU.ampr.org> Mail-Followup-To: Richard Henderson , axp-list mailing list References: <20021109010039.D18411@Marvin.DL8BCU.ampr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20021109010039.D18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:00:39AM +0000 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: Part 2: variables in slightly more complex situations. ### osf_getdirentries has an unsigned int count but it's stored as ### signed int in a struct osf_dirent_callback. ### all users deal with positive values or struct osf_dirent_callback itself. ### settle down on unsigned int througout. diff -ur linux-2.5.46/arch/alpha/kernel/osf_sys.c linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c --- linux-2.5.46/arch/alpha/kernel/osf_sys.c Wed Nov 6 19:04:14 2002 +++ linux-2.5.46-ds20/arch/alpha/kernel/osf_sys.c Fri Nov 8 23:29:27 2002 @@ -104,7 +104,7 @@ struct osf_dirent_callback { struct osf_dirent *dirent; long *basep; - int count; + unsigned int count; int error; }; @@ -114,7 +114,7 @@ { struct osf_dirent *dirent; struct osf_dirent_callback *buf = (struct osf_dirent_callback *) __buf; - int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1); + unsigned int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1); buf->error = -EINVAL; /* only used if we fail */ if (reclen > buf->count) ### member is initialized with a positive number and only compared ### a dozen times against unsigned values. make it unsigned, too. diff -ur linux-2.5.46/arch/alpha/kernel/setup.c linux-2.5.46-ds20/arch/alpha/kernel/setup.c --- linux-2.5.46/arch/alpha/kernel/setup.c Sat Oct 19 04:01:16 2002 +++ linux-2.5.46-ds20/arch/alpha/kernel/setup.c Fri Nov 8 23:51:35 2002 @@ -818,7 +818,7 @@ if (!vec) { /* Member ID is a bit-field. */ - long member = (variation >> 10) & 0x3f; + unsigned long member = (variation >> 10) & 0x3f; cpu &= 0xffffffff; /* make it usable */ -- | 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] |