Trying to compile the VMware modules with 2.6.21-1.3223.fc8, I get: include/asm/page.h: In function 'pte_t native_make_pte(long unsigned int)': include/asm/page.h:112: error: expected primary-expression before ')' token include/asm/page.h:112: error: expected ';' before '{' token include/asm/page.h:112: error: expected primary-expression before '.' token include/asm/page.h:112: error: expected `;' before '}' token Note that this particular file is being compiled in C++ mode, not C mode. The function in question is: static inline pte_t native_make_pte(unsigned long val) { return (pte_t) { .pte_low = val }; } I made the problem go away by changing it to this: static inline pte_t native_make_pte(unsigned long val) { pte_t ret; ret.pte_low = val; return ret; /* return (pte_t) { .pte_low = val }; */ } I can't claim to understand the niceties of C++ syntax enough to understand why the C++ compiler didn't like the previous syntax, nor do I know whether this is a problem with the header file or a problem with g++ (gcc-c++-4.1.2-13 is what I've got), so I'm making a best guess and filing under kernel. Please reassign if appropriate.
*** This bug has been marked as a duplicate of 244695 ***