[PATCH] get_current_user() macro in linux/sched.h conflicts with __user defined in compiler.h

From: Dmitry A. Fedorov (D.A.Fedorov@inp.nsk.su)
Date: Wed Jun 04 2003 - 10:16:25 EST


get_current_user() macro in linux/sched.h conflicts with the
user space attribute #define __user from compiler.h.

I have not found any usage of this macro in all kernel code though.

--- linux-2.5.70/include/linux/sched.h.orig Tue May 27 08:00:23 2003
+++ linux-2.5.70/include/linux/sched.h Wed Jun 4 21:58:00 2003
@@ -289,9 +289,9 @@
 };
 
 #define get_current_user() ({ \
- struct user_struct *__user = current->user; \
- atomic_inc(&__user->__count); \
- __user; })
+ struct user_struct *_user_ = current->user; \
+ atomic_inc(&_user_->__count); \
+ _user_; })
 
 extern struct user_struct *find_user(uid_t);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:23 EST