* [GIT PULL] percpu changes for v3.12-rc1
@ 2013-09-03 14:29 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2013-09-03 14:29 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, Christoph Lameter
Hello, Linus.
Just a single patch to update type verification macro for percpu
accessors. Christoph is trying to replace __get_cpu_var() with
this_cpu accessors which needs this update. There are still some
issues to be resolved but eventually the conversion patches are likely
to be routed through different trees, so I think it'd be convenient to
merge this commit early.
Thanks.
The following changes since commit a4244454df1296e90cc961c1b636b1176ef0d9a0:
percpu-refcount: use RCU-sched insted of normal RCU (2013-06-16 16:12:26 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-3.12
for you to fetch changes up to abec1a806e0c3cf168999667d5fb6218398ef12a:
percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays (2013-08-23 16:08:27 -0400)
----------------------------------------------------------------
Christoph Lameter (1):
percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
include/linux/percpu-defs.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index 27ef6b1..57e890a 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -22,9 +22,12 @@
* Macro which verifies @ptr is a percpu pointer without evaluating
* @ptr. This is to be used in percpu accessors to verify that the
* input parameter is a percpu pointer.
+ *
+ * + 0 is required in order to convert the pointer type from a
+ * potential array type to a pointer to a single item of the array.
*/
#define __verify_pcpu_ptr(ptr) do { \
- const void __percpu *__vpp_verify = (typeof(ptr))NULL; \
+ const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
(void)__vpp_verify; \
} while (0)
--
tejun
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-03 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 14:29 [GIT PULL] percpu changes for v3.12-rc1 Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®