• Andrew Morton's avatar
    [PATCH] parisc /proc/interrupts uninitialised var · 1d0990ac
    Andrew Morton authored
    From: James Bottomley <James.Bottomley@SteelEye.com>
    
    The compiler justly complains in this:
    
    	        unsigned int regnr = *(loff_t *) v, i;
    
    	        if (regnr == 0) {
    	                seq_puts(p, "     ");
    	#ifdef CONFIG_SMP
    	                for (i = 0; i < NR_CPUS; i++)
    	#endif
    	                        seq_printf(p, "      CPU%02d ", i);
    
    That i is uninitialised if CONFIG_SMP is not set.
    1d0990ac
irq.c 21.8 KB