OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Thorsten Kranzkowski (dl8bcu_at_dl8bcu.de)
Date: Fri Nov 08 2002 - 19:00:40 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    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: dl8bcudl8bcu.de                      |
    | Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
    | Ampr: dl8bcudb0lj.#rpl.deu.eu, dl8bcumarvin.dl8bcu.ampr.org [44.130.8.19] |
    

    _______________________________________________ Axp-list mailing list Axp-listredhat.com https://listman.redhat.com/mailman/listinfo/axp-list