2005-02-23 05:00:36

by Marcel Holtmann

[permalink] [raw]
Subject: Warning of redefined NR_OPEN

Hi,

when compiling the latest 2.6 tree from the Bitkeeper repository, I get
a lot of these:

CC init/main.o
In file included from include/linux/fs.h:202,
from include/linux/proc_fs.h:6,
from init/main.c:17:
include/linux/limits.h:4:1: warning: "NR_OPEN" redefined
In file included from include/linux/proc_fs.h:6,
from init/main.c:17:
include/linux/fs.h:24:1: warning: this is the location of the previous definition

Maybe the re-order of <linux/fs.h> to make userland happy was not a good
idea.

Regards

Marcel



2005-02-23 05:50:33

by Chris Wright

[permalink] [raw]
Subject: Re: Warning of redefined NR_OPEN

* Marcel Holtmann ([email protected]) wrote:
> when compiling the latest 2.6 tree from the Bitkeeper repository, I get
> a lot of these:
>
> CC init/main.o
> In file included from include/linux/fs.h:202,
> from include/linux/proc_fs.h:6,
> from init/main.c:17:
> include/linux/limits.h:4:1: warning: "NR_OPEN" redefined

Yup, although it's been fixed in bk.

thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net