Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263380AbTFDPJn (ORCPT ); Wed, 4 Jun 2003 11:09:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263381AbTFDPJn (ORCPT ); Wed, 4 Jun 2003 11:09:43 -0400 Received: from inpbox.inp.nsk.su ([193.124.167.24]:40591 "EHLO inpbox.inp.nsk.su") by vger.kernel.org with ESMTP id S263380AbTFDPJm (ORCPT ); Wed, 4 Jun 2003 11:09:42 -0400 Date: Wed, 4 Jun 2003 22:16:25 +0700 From: "Dmitry A. Fedorov" Reply-To: D.A.Fedorov@inp.nsk.su To: linux-kernel@vger.kernel.org Subject: [PATCH] get_current_user() macro in linux/sched.h conflicts with __user defined in compiler.h Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 26 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/