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 A74E942E22 for ; Fri, 8 Nov 2002 20:00:46 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA910kn08342 for axp-list@listman.redhat.com; Fri, 8 Nov 2002 20:00:46 -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 gA910kf08338; Fri, 8 Nov 2002 20:00:46 -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 gA90btw06719; Fri, 8 Nov 2002 19:37:55 -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 gA910fVK018620; Sat, 9 Nov 2002 01:00:41 GMT Received: (from th@localhost) by dl8bcu.de (8.12.1/8.12.1/Submit) id gA910eMg018619; Sat, 9 Nov 2002 01:00:40 GMT X-Authentication-Warning: Marvin.borg.net: th set sender to dl8bcu@dl8bcu.de using -f Date: Sat, 9 Nov 2002 01:00:40 +0000 From: Thorsten Kranzkowski To: Richard Henderson Cc: axp-list mailing list Subject: [PATCH] [RESENT] compilation warnings 1/6 Message-ID: <20021109010039.D18411@Marvin.DL8BCU.ampr.org> Mail-Followup-To: Richard Henderson , axp-list mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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: Here it is again, commented and split up. First, all the loop counters. ### cpu is loop counter with only positive values. make it match ### the definition of hwrpb->nr_processors. diff -ur linux-2.5.46/arch/alpha/kernel/err_common.c linux-2.5.46-ds20/arch/alpha/kernel/err_common.c --- linux-2.5.46/arch/alpha/kernel/err_common.c Wed Nov 6 19:04:14 2002 +++ linux-2.5.46-ds20/arch/alpha/kernel/err_common.c Fri Nov 8 23:29:27 2002 @@ -715,7 +715,7 @@ cdl_check_console_data_log(void) { struct percpu_struct *pcpu; - int cpu; + unsigned long cpu; for(cpu = 0; cpu < hwrpb->nr_processors; cpu++) { pcpu = (struct percpu_struct *) ### i is a loop counter with only positive values ### make it match 'count' diff -ur linux-2.5.46/arch/alpha/kernel/irq.c linux-2.5.46-ds20/arch/alpha/kernel/irq.c --- linux-2.5.46/arch/alpha/kernel/irq.c Wed Nov 6 19:04:14 2002 +++ linux-2.5.46-ds20/arch/alpha/kernel/irq.c Fri Nov 8 23:29:27 2002 @@ -252,7 +252,7 @@ { unsigned char hexnum [HEX_DIGITS]; unsigned long value; - int i; + unsigned long i; if (!count) return -EINVAL; ### i is a loopcounter with only positive values ### ### for_each_mem_cluster is a loop with i as loopcounter. always positive. ### ### i is is again a positive loopcounter ### 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:34:16 2002 @@ -202,7 +202,7 @@ }; struct resource *io = &ioport_resource; - long i; + unsigned long i; if (hose_head) { struct pci_controller *hose; @@ -258,7 +258,7 @@ unsigned long start_kernel_pfn, end_kernel_pfn; unsigned long bootmap_size, bootmap_pages, bootmap_start; unsigned long start, end; - int i; + unsigned int i; /* Find free clusters, and init and free the bootmem accordingly. */ memdesc = (struct memdesc_struct *) @@ -398,7 +398,7 @@ { struct memclust_struct * cluster; struct memdesc_struct * memdesc; - int i; + unsigned int i; memdesc = (struct memdesc_struct *) (hwrpb->mddt_offset + (unsigned long) hwrpb); ### i is positive loop counter ### diff -ur linux-2.5.46/arch/alpha/kernel/smp.c linux-2.5.46-ds20/arch/alpha/kernel/smp.c --- linux-2.5.46/arch/alpha/kernel/smp.c Sat Oct 19 04:01:19 2002 +++ linux-2.5.46-ds20/arch/alpha/kernel/smp.c Fri Nov 8 23:29:27 2002 @@ -499,7 +499,7 @@ setup_smp(void) { struct percpu_struct *cpubase, *cpu; - int i; + unsigned int i; if (boot_cpuid != 0) { printk(KERN_WARNING "SMP: Booting off cpu %d instead of 0?\n", ### i and j are positive loop counters. ### diff -ur linux-2.5.46/arch/alpha/mm/init.c linux-2.5.46-ds20/arch/alpha/mm/init.c --- linux-2.5.46/arch/alpha/mm/init.c Sat Oct 19 04:02:30 2002 +++ linux-2.5.46-ds20/arch/alpha/mm/init.c Fri Nov 8 23:29:27 2002 @@ -242,7 +242,7 @@ if (alpha_using_srm) { static struct vm_struct console_remap_vm; unsigned long vaddr = VMALLOC_START; - long i, j; + unsigned long i, j; /* Set up the third level PTEs and update the virtual addresses of the CRB entries. */ -- | 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] |