lkml.org 
[lkml]   [2003]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] get_current_user() macro in linux/sched.h conflicts with __user defined in compiler.h

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/
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.023 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site