public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Final per cpu consistency patch for -next or late in 3.19 merge period
@ 2014-11-28 18:31 Christoph Lameter
  2014-12-02 16:40 ` Tejun Heo
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Lameter @ 2014-11-28 18:31 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-kernel

This is the final patch to remove __get_cpu_var. I checked -next and there
are no remaining uses of __get_cpu_var. So either merge this to -next or
wait until 3.19 late.

However, if we wait till 3.19 then I may have to do another pass if
people add more uses of __get_cpu_var and submit another patch.

From: Christoph Lameter <cl@linux.com>
Date: Tue, 29 Jul 2014 16:09:54 -0500
Subject: [PATCH] Remove __get_cpu_var and __raw_get_cpu_var macros

No user is left in the kernel source tree. Therefore we can
drop the definitions.

This is the final merge of the transition away from __get_cpu_var.
After this patch the kernel will not build if anyone uses __get_cpu_var.

Signed-off-by: Christoph Lameter <cl@linux.com>
---
 include/asm-generic/percpu.h | 5 -----
 1 file changed, 5 deletions(-)

Index: linux/include/linux/percpu-defs.h
===================================================================
--- linux.orig/include/linux/percpu-defs.h
+++ linux/include/linux/percpu-defs.h
@@ -254,8 +254,6 @@ do {									\
 #endif	/* CONFIG_SMP */

 #define per_cpu(var, cpu)	(*per_cpu_ptr(&(var), cpu))
-#define __raw_get_cpu_var(var)	(*raw_cpu_ptr(&(var)))
-#define __get_cpu_var(var)	(*this_cpu_ptr(&(var)))

 /*
  * Must be an lvalue. Since @var must be a simple identifier,

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

end of thread, other threads:[~2014-12-02 19:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 18:31 Final per cpu consistency patch for -next or late in 3.19 merge period Christoph Lameter
2014-12-02 16:40 ` Tejun Heo
2014-12-02 16:57   ` Christoph Lameter
2014-12-02 17:11     ` Tejun Heo
2014-12-02 17:32       ` Mathieu Desnoyers
2014-12-02 17:51         ` Christoph Lameter
2014-12-02 17:33       ` Christoph Lameter
2014-12-02 19:27         ` Luck, Tony
2014-12-02 17:34       ` Christoph Lameter

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