aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-04-12 20:13:13 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-04-12 20:13:13 -0700
commit54c63a75581f4b8d5d4b5660424f926510cfd98c (patch)
tree62f1528eeb5d2142e5496beeb709408a7fca3a71 /include
parentMerge tag 'dma-mapping-5.1-1' of git://git.infradead.org/users/hch/dma-mapping (diff)
parentobjtool: Add rewind_stack_do_exit() to the noreturn list (diff)
downloadlinux-dev-54c63a75581f4b8d5d4b5660424f926510cfd98c.tar.xz
linux-dev-54c63a75581f4b8d5d4b5660424f926510cfd98c.zip
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fixes from Ingo Molnar: "Fix an objtool warning plus fix a u64_to_user_ptr() macro expansion bug" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Add rewind_stack_do_exit() to the noreturn list linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
Diffstat (limited to 'include')
-rw-r--r--include/linux/kernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 34a5036debd3..2d14e21c16c0 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -47,8 +47,8 @@
#define u64_to_user_ptr(x) ( \
{ \
- typecheck(u64, x); \
- (void __user *)(uintptr_t)x; \
+ typecheck(u64, (x)); \
+ (void __user *)(uintptr_t)(x); \
} \
)