public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] ia64: remove per_cpu_offset()
@ 2007-11-07  6:46 Simon Horman
  2007-11-07  6:55 ` Luming Yu
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2007-11-07  6:46 UTC (permalink / raw)
  To: linux-ia64, linux-kernel
  Cc: Yu Luming, David Miller, Ingo Molnar, Arjan van de Ven,
	Rusty Russell, Andrew Morton

per_cpu_offset() was added as part of a lockdep patch,
"[PATCH] lockdep: add per_cpu_offset()"
(a875a69f8b00a38b4f40d9632a4fc71a159f0e0d),
but ia64 doesn't have lockdep, nor does it use per_cpu_offset()
anywhere else.

This came up because Yu Lumming noticed that the ia64 version
of per_cpu_offset() actually has a syntax error. Amusing as it seems
to have been in the tree for months.

> -#define per_cpu_offset(x) (__per_cpu_offset(x))
> +#define per_cpu_offset(x) (__per_cpu_offset[x])

Dave Miller suggested that rather than fixing the unused code it would be
better to just remove it all together.

Signed-off-by: Simon Horman <horms@verge.net.au>

diff --git a/include/asm-ia64/percpu.h b/include/asm-ia64/percpu.h
index c4f1e32..2870f8d 100644
--- a/include/asm-ia64/percpu.h
+++ b/include/asm-ia64/percpu.h
@@ -46,7 +46,6 @@
 #ifdef CONFIG_SMP
 
 extern unsigned long __per_cpu_offset[NR_CPUS];
-#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] 3+ messages in thread

* Re: [patch] ia64: remove per_cpu_offset()
  2007-11-07  6:46 [patch] ia64: remove per_cpu_offset() Simon Horman
@ 2007-11-07  6:55 ` Luming Yu
  2007-11-07  9:13   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Luming Yu @ 2007-11-07  6:55 UTC (permalink / raw)
  To: Simon Horman
  Cc: linux-ia64, linux-kernel, Yu Luming, David Miller, Ingo Molnar,
	Arjan van de Ven, Rusty Russell, Andrew Morton

NAK for now.

I'm trying to add lockdep , so please don't delete it until it could
be proved really useless...
Please don't hurry...

On 11/7/07, Simon Horman <horms@verge.net.au> wrote:
> per_cpu_offset() was added as part of a lockdep patch,
> "[PATCH] lockdep: add per_cpu_offset()"
> (a875a69f8b00a38b4f40d9632a4fc71a159f0e0d),
> but ia64 doesn't have lockdep, nor does it use per_cpu_offset()
> anywhere else.
>
> This came up because Yu Lumming noticed that the ia64 version
> of per_cpu_offset() actually has a syntax error. Amusing as it seems
> to have been in the tree for months.
>
> > -#define per_cpu_offset(x) (__per_cpu_offset(x))
> > +#define per_cpu_offset(x) (__per_cpu_offset[x])
>
> Dave Miller suggested that rather than fixing the unused code it would be
> better to just remove it all together.
>
> Signed-off-by: Simon Horman <horms@verge.net.au>
>
> diff --git a/include/asm-ia64/percpu.h b/include/asm-ia64/percpu.h
> index c4f1e32..2870f8d 100644
> --- a/include/asm-ia64/percpu.h
> +++ b/include/asm-ia64/percpu.h
> @@ -46,7 +46,6 @@
>  #ifdef CONFIG_SMP
>
>  extern unsigned long __per_cpu_offset[NR_CPUS];
> -#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);
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: [patch] ia64: remove per_cpu_offset()
  2007-11-07  6:55 ` Luming Yu
@ 2007-11-07  9:13   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2007-11-07  9:13 UTC (permalink / raw)
  To: Luming Yu
  Cc: linux-ia64, linux-kernel, Yu Luming, David Miller, Ingo Molnar,
	Arjan van de Ven, Rusty Russell, Andrew Morton

On Wed, Nov 07, 2007 at 02:55:24PM +0800, Luming Yu wrote:
> NAK for now.
> 
> I'm trying to add lockdep , so please don't delete it until it could
> be proved really useless...
> Please don't hurry...

Ok, in that case I Re-ack your typo fix patch.
Sorry for the noise.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07  6:46 [patch] ia64: remove per_cpu_offset() Simon Horman
2007-11-07  6:55 ` Luming Yu
2007-11-07  9:13   ` Simon Horman

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