Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* [PATCH] [RESENT] compilation warnings 1/6
@ 2002-11-09  1:00 Thorsten Kranzkowski
  2002-11-09  1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
  2002-11-09  4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson
  0 siblings, 2 replies; 13+ messages in thread
From: Thorsten Kranzkowski @ 2002-11-09  1:00 UTC (permalink / raw)
  To: Richard Henderson; +Cc: axp-list mailing list

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] |




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2002-11-14  6:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-09  1:00 [PATCH] [RESENT] compilation warnings 1/6 Thorsten Kranzkowski
2002-11-09  1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
2002-11-09  1:05   ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
2002-11-09  1:07     ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09  1:08       ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
2002-11-09  1:13         ` [PATCH] [RESENT] compilation warnings 6/6 Thorsten Kranzkowski
2002-11-09  1:47       ` [PATCH] [RESENT] compilation warnings 4/6 Michal Jaegermann
2002-11-09  5:51       ` Richard Henderson
2002-11-09  4:50     ` [PATCH] [RESENT] compilation warnings 3/6 Richard Henderson
2002-11-09 19:14       ` Peter Rival
2002-11-09 21:29         ` Michal Jaegermann
2002-11-14  6:44         ` Richard Henderson
2002-11-09  4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox