public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix typo in per_cpu_offset
@ 2007-10-23  7:15 Luming Yu
  2007-10-30  7:15 ` Simon Horman
  0 siblings, 1 reply; 6+ messages in thread
From: Luming Yu @ 2007-10-23  7:15 UTC (permalink / raw)
  To: linux-ia64; +Cc: Linux Kernel

[-- 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);

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

end of thread, other threads:[~2007-11-07  6:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-23  7:15 [PATCH] fix typo in per_cpu_offset Luming Yu
2007-10-30  7:15 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox