I am compiling guest kernel, and ran in some problem while during make modules ARCH=um
 
vanilla 2.6.8 + uml patch (uml-patch-2.6.8.1-1.bz2 from uml.linode.com) + token and io patches from http://www.theshore.net/~caker/patches/

make[1]: `arch/um/sys-i386/util/mk_sc' is up to date.
  HOSTCC  arch/um/util/mk_constants_kern.o
In file included from include/linux/spinlock.h:39,
                 from include/linux/time.h:27,
                 from arch/um/util/mk_constants_kern.c:3:
/usr/include/asm/spinlock.h:4:2: warning: #warning Unportable code! This header does not exist on all architectures
/usr/include/asm/spinlock.h:5:2: warning: #warning Including kernel headers in userspace!
In file included from include/linux/time.h:27,
                 from arch/um/util/mk_constants_kern.c:3:
include/linux/spinlock.h:397: error: syntax error before "spinlock_t"
include/linux/spinlock.h:397: warning: function declaration isn't a prototype
In file included from include/linux/time.h:28,
                 from arch/um/util/mk_constants_kern.c:3:
include/linux/seqlock.h:35: error: syntax error before "spinlock_t"
include/linux/seqlock.h:35: warning: no semicolon at end of struct or union
include/linux/seqlock.h:36: warning: type defaults to `int' in declaration of `seqlock_t'
include/linux/seqlock.h:36: warning: data definition has no type or storage class
include/linux/seqlock.h:50: error: syntax error before '*' token
include/linux/seqlock.h:51: warning: function declaration isn't a prototype
include/linux/seqlock.h: In function `write_seqlock':
include/linux/seqlock.h:52: warning: implicit declaration of function `_raw_spin_lock'
include/linux/seqlock.h:52: error: `sl' undeclared (first use in this function)
include/linux/seqlock.h:52: error: (Each undeclared identifier is reported only once
include/linux/seqlock.h:52: error: for each function it appears in.)
include/linux/seqlock.h: At top level:
include/linux/seqlock.h:57: error: syntax error before '*' token
include/linux/seqlock.h:58: warning: function declaration isn't a prototype
include/linux/seqlock.h: In function `write_sequnlock':
include/linux/seqlock.h:60: error: `sl' undeclared (first use in this function)
include/linux/seqlock.h:61: warning: implicit declaration of function `_raw_spin_unlock'
include/linux/seqlock.h: At top level:
include/linux/seqlock.h:64: error: syntax error before '*' token
include/linux/seqlock.h:65: warning: function declaration isn't a prototype
include/linux/seqlock.h: In function `write_tryseqlock':
include/linux/seqlock.h:66: warning: implicit declaration of function `_raw_spin_trylock'
include/linux/seqlock.h:66: error: `sl' undeclared (first use in this function)
include/linux/seqlock.h: At top level:
include/linux/seqlock.h:76: warning: type defaults to `int' in declaration of `seqlock_t'
include/linux/seqlock.h:76: error: syntax error before '*' token
include/linux/seqlock.h:77: warning: function declaration isn't a prototype
include/linux/seqlock.h: In function `read_seqbegin':
include/linux/seqlock.h:78: error: `sl' undeclared (first use in this function)
include/linux/seqlock.h: At top level:
include/linux/seqlock.h:91: warning: type defaults to `int' in declaration of `seqlock_t'
include/linux/seqlock.h:91: error: syntax error before '*' token
include/linux/seqlock.h:92: warning: function declaration isn't a prototype
include/linux/seqlock.h: In function `read_seqretry':
include/linux/seqlock.h:94: error: `iv' undeclared (first use in this function)
include/linux/seqlock.h:94: error: `sl' undeclared (first use in this function)
In file included from arch/um/util/mk_constants_kern.c:3:
include/linux/time.h: At top level:
include/linux/time.h:325: error: syntax error before "xtime_lock"
include/linux/time.h:325: warning: type defaults to `int' in declaration of `xtime_lock'
include/linux/time.h:325: warning: data definition has no type or storage class
make[1]: *** [arch/um/util/mk_constants_kern.o] Error 1
make: *** [arch/um/util] Error 2
Can anyone please tell me what i am doing wrong ?

regards,
 
Anand