From: Adrian Bunk <bunk@stusta.de>
To: sparclinux@vger.kernel.org
Subject: Kernel Bugzilla #2682: arch/sparc/kernel/sun4m_smp.c: [OPERA] potential error detected by an analysi
Date: Sun, 22 Jan 2006 17:53:56 +0000 [thread overview]
Message-ID: <20060122175356.GF10003@stusta.de> (raw)
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
next reply other threads:[~2006-01-22 17:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-22 17:53 Adrian Bunk [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060122175356.GF10003@stusta.de \
--to=bunk@stusta.de \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.