* [uml-devel] [patch 1/1] uml: fix get_user warning
@ 2004-10-03 13:41 blaisorblade_spam
0 siblings, 0 replies; only message in thread
From: blaisorblade_spam @ 2004-10-03 13:41 UTC (permalink / raw)
To: akpm; +Cc: jdike, linux-kernel, user-mode-linux-devel, blaisorblade_spam
Adds some more parenthesis for a macro arg to fix a warning (which was in
kernel/uid16.c).
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---
linux-2.6.9-current-paolo/include/asm-um/uaccess.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN include/asm-um/uaccess.h~uml-fix-get_user-warning include/asm-um/uaccess.h
--- linux-2.6.9-current/include/asm-um/uaccess.h~uml-fix-get_user-warning 2004-10-03 15:37:45.654671792 +0200
+++ linux-2.6.9-current-paolo/include/asm-um/uaccess.h 2004-10-03 15:37:45.657671336 +0200
@@ -55,7 +55,7 @@
#define get_user(x, ptr) \
({ \
- const __typeof__((*ptr)) *private_ptr = (ptr); \
+ const __typeof__((*(ptr))) *private_ptr = (ptr); \
(access_ok(VERIFY_READ, private_ptr, sizeof(*private_ptr)) ? \
__get_user(x, private_ptr) : ((x) = 0, -EFAULT)); \
})
_
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-03 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-03 13:41 [uml-devel] [patch 1/1] uml: fix get_user warning blaisorblade_spam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox