[Click] kernel patch issue

Bob Keyes bob at sinister.com
Mon Oct 17 13:41:38 EDT 2005


Trying to get click linuxmodule to compile, cross from x86 to mipsel. Got
the kernel patches installed, but having lots of problems with the
linuxmodule itself. Solved some by linking header files, but then I run
across the errors below. I can see that the kernel patch touches system.h,
removing the extern and then changing a variable from 'new' to 'n'. What
are the reasons for the variable name change, and could it be causing the
errors I am seeing?

Kernel: 2.6.13.2

#
In file included from
/data/openwrt-f/build_mipsel/linux/include/asm/processor.h:22,
#
                 from
/data/openwrt-f/build_mipsel/linux/include/asm/thread_info.h:16,
#
                 from
/data/openwrt-f/build_mipsel/linux/include/linux/thread_info.h:21,
#
                 from
/data/openwrt-f/build_mipsel/linux/include/linux/spinlock.h:12,
#
                 from
/data/openwrt-f/build_mipsel/linux/include/linux/seqlock.h:30,
#
                 from
/data/openwrt-f/build_mipsel/linux/include/linux/time.h:7,
#
                 from
/data/openwrt-f/build_mipsel/linux/include/linux/skbuff.h:20,
#
                 from
/data/openwrt-f/build_mipsel/click-100505/linuxmodule/../include/click/glue.hh:27,
#
                 from
/data/openwrt-f/build_mipsel/click-100505/linuxmodule/../include/click/straccum.hh:4,
#
                 from
/data/openwrt-f/build_mipsel/click-100505/linuxmodule/../lib/string.cc:22:
#
/data/openwrt-f/build_mipsel/linux/include/asm/system.h: In function `long
unsigned int __xchg(long unsigned int, volatile void*, int)':
#
/data/openwrt-f/build_mipsel/linux/include/asm/system.h:269: error:
invalid conversion from `volatile void*' to `volatile int*'
#
/data/openwrt-f/build_mipsel/linux/include/asm/system.h:269: error:
initializing argument 1 of `long unsigned int __xchg_u32(volatile int*,
unsigned int)'
#
/data/openwrt-f/build_mipsel/linux/include/asm/system.h:271: error:
invalid conversion from `volatile void*' to `volatile __u64*'
#
/data/openwrt-f/build_mipsel/linux/include/asm/system.h:271: error:
initializing argument 1 of `__u64
__xchg_u64_unsupported_on_32bit_kernels(volatile __u64*, __u64)'


More information about the click mailing list