Thanks, this helped me also for 2.6.20-1.3003.fc7.

2007/3/21, Jim Bevier <jim@jbsys.com>:
Well it looks like it is the CFLAGS parameters in the kernel Makefile that
is causing the problem. I.e.
/usr/src/kernels/2.6.20-1.2997.fc7-x86_64/Makefile or
/usr/src/kernels/2.6.20-1.2999.fc7-x86_64/Makefile.  You need to replace
the -Wextra parameter with -Wundef that is around line 318 in the Makefile.
This will allow VMWare tp build again without an error.

CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                   -fno-strict-aliasing -fno-common \
     -Werror-implicit-function-declaration \
     -Wundef -Wno-unused-parameter -Wno-missing-field-initializers
##     -Wextra -Wno-unused-parameter -Wno-missing-field-initializers

Jim