Skip to contentSkip to conversation

Broken things in kernel 2.6.6-mm2 and 2.6.6-mm3

DISCUSSION Martin Knoblauch 1 participant 1 message May 22, 2004

lore
Share & tools
lore
#0 lore raw

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/. modules
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

Quoted 4 lines

/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

`>HostIF_FreeLockedPages':

Quoted 11 lines

/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

=====
------------------------------------------------------
Martin Knoblauch

email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de