From: "Luming Yu" <luming.yu@gmail.com>
To: linux-ia64@vger.kernel.org
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] fix typo in per_cpu_offset
Date: Tue, 23 Oct 2007 07:15:55 +0000 [thread overview]
Message-ID: <3877989d0710230015x1640388aod98cae2fa3fc82c2@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
Hello list,
there is a typo in the definition of per_cpu_offset because, for ia64,
the __per_cpu_offset is an array.
extern unsigned long __per_cpu_offset[NR_CPUS];
-#define per_cpu_offset(x) (__per_cpu_offset(x))
+#define per_cpu_offset(x) (__per_cpu_offset[x])
Thanks,
Luming
Signed-off-by: Yu Luming <luming.yu@intel.com>
[-- Attachment #2: correct_per_cpu_offset.patch --]
[-- Type: application/octet-stream, Size: 487 bytes --]
diff --git a/include/asm-ia64/percpu.h b/include/asm-ia64/percpu.h
index 43a7aac..c4f1e32 100644
--- a/include/asm-ia64/percpu.h
+++ b/include/asm-ia64/percpu.h
@@ -46,7 +46,7 @@ #endif
#ifdef CONFIG_SMP
extern unsigned long __per_cpu_offset[NR_CPUS];
-#define per_cpu_offset(x) (__per_cpu_offset(x))
+#define per_cpu_offset(x) (__per_cpu_offset[x])
/* Equal to __per_cpu_offset[smp_processor_id()], but faster to access: */
DECLARE_PER_CPU(unsigned long, local_per_cpu_offset);
next reply other threads:[~2007-10-23 7:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 7:15 Luming Yu [this message]
2007-10-30 7:15 ` [PATCH] fix typo in per_cpu_offset Simon Horman
2007-10-30 7:36 ` David Miller
2007-10-30 8:50 ` Simon Horman
2007-11-07 6:44 ` Simon Horman
2007-11-07 6:50 ` Luming Yu
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=3877989d0710230015x1640388aod98cae2fa3fc82c2@mail.gmail.com \
--to=luming.yu@gmail.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox