Re: [PATCH] fix typo in per_cpu_offset

From: Simon Horman <>
Date: 2007-10-30 18:15:13
On Tue, Oct 23, 2007 at 03:15:55PM +0800, Luming Yu wrote:
> 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 <>

This looks correct to me, and gcc seems to agree too.

Though curiuously with my config nothing uses per_cpu_offset()
(I added a bogus call to produce an error.) Is it actually
used on ia64?

Acked-by: Simon Horman <>


To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Oct 30 18:15:31 2007

This archive was generated by hypermail 2.1.8 : 2007-10-30 18:15:48 EST