All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] potential error detected by an analysi
@ 2006-01-22 17:53 Adrian Bunk
  2006-01-22 21:34 ` Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] potential error detected by an ana William Lee Irwin III
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-01-22 17:53 UTC (permalink / raw)
  To: sparclinux

Kernel Bugzilla #2682 [1] contains the following report by
Zhenmin <lzmhome@yahoo.com>:

<--  snip  -->

The potential error is detected by a static analysis tool in
/arch/sparc/kernel/sun4m_smp.c:227-228

225  if(cpu_callin_map[i]) {
226    /* Another "Red Snapper". */
227    __cpu_number_map[i] = i;
228    __cpu_logical_map[i] = i;
229  } else {

Lines 227-228 may be changed to:

227    __cpu_number_map[i] = cpucount;
228    __cpu_logical_map[cpucount] = i;

Can anyone confirm whether it is a bug or not?

<--  snip  -->

(the line numbers are wrong by a few lines in recent kernels, but
 "Red Snapper" is easy to find in the file.

AFAIR SMP is not working on sparc32 in kernel 2.6, but could you anyways 
comment on this issue?

TIA
Adrian

[1] http://bugzilla.kernel.org/show_bug.cgi?id&82

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

end of thread, other threads:[~2006-01-25  4:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-22 17:53 Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] potential error detected by an analysi Adrian Bunk
2006-01-22 21:34 ` Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] potential error detected by an ana William Lee Irwin III
2006-01-24 21:09 ` Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] David S. Miller
2006-01-25  4:15 ` Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] potential error detected by an ana William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.