Re: Broken things in kernel 2.6.6-mm2 and 2.6.6-mm3

From: Martin Knoblauch
Date: Fri May 21 2004 - 20:48:20 EST

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmmon-only'
make -C /lib/modules/2.6.6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
make[1]: Entering directory `/usr/src/linux-2.6.6'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
/tmp/vmware-config2/vmmon-only/linux/driver.c:131: warning:
initialization from incompatible pointer type
>/tmp/vmware-config2/vmmon-only/linux/driver.c:135: warning:
>initialization from incompatible pointer type
>CC [M] /tmp/vmware-config2/vmmon-only/linux/hostif.o
>/tmp/vmware-config2/vmmon-only/linux/hostif.c: In function
>/tmp/vmware-config2/vmmon-only/linux/hostif.c:738: error: structure
>has no member named `count'
>/tmp/vmware-config2/vmmon-only/linux/hostif.c:740: error: structure
>has no member named `count'
>make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/hostif.o] Error 1
>make[1]: *** [/tmp/vmware-config2/vmmon-only] Error 2
>make[1]: Leaving directory `/usr/src/linux-2.6.6'
>make: *** [vmmon.ko] Error 2
>make: Leaving directory `/tmp/vmware-config2/vmmon-only'
>Unable to build the vmmon module.

Yup. I have been bitten by this too. Apparently "count" has been
replaced by "_count" which in addition seems to be "count-1". But there
is now a function "page_count" that does the right thing.

For VMware I have just removed the definition of the "page_count"
macro from vmmon-only/include/compat_mm.h.


Martin Knoblauch
email: k n o b i AT knobisoft DOT de
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at