On second look, it looks like the problem is actually in asm/pal.h and not linux/module.h. The asm/pal.h file get included in the chain when one includes linux/module.h. Looks like the surrounding ifdef __KERNEL__ directive in asm/pal.h was removed, thus exposing the non-definition of s64 and like. Not sure how it should be done since the s64 type (as used in line 89 asm/pal.h) is a __KERNEL__ type (per asm/types.h line 58). Thanks, Alex