serial.h cant be included without including types.h first at this point, this breaks any compile that does so, for example wine-1.1.11. A simple: #include <linux/types.h> Fixes the problem. Upstream this is not a problem : http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/serial.h Reproducible: Always Steps to Reproduce: 1. emerge linux-headers-2.6.28 2. emerge wine 1.1.11 3.
It is a problem upstream, too. As you see, the __KERNEL__ is around the inclusion of types.h. It needs to be moved below.
*** This bug has been marked as a duplicate of bug 252721 ***