Lustre does not compile either, reason is the same:
In file included from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
from /tmp/lustre-2.5.3.90/build/conftest.c:38:
include/linux/kernel.h:441:1: warning: "printk_once" redefined
In file included from include/linux/kernel.h:18,
from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
from /tmp/lustre-2.5.3.90/build/conftest.c:38:
/usr/src/ofa_kernel/default/include/linux/printk.h:58:1: warning: this is the location of the previous definition
In file included from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
from /tmp/lustre-2.5.3.90/build/conftest.c:38:
include/linux/kernel.h:670:1: warning: "printk_ratelimited" redefined
In file included from include/linux/kernel.h:18,
from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
from /tmp/lustre-2.5.3.90/build/conftest.c:38:
/usr/src/ofa_kernel/default/include/linux/printk.h:42:1: warning: this is the location of the previous definition
In file included from /usr/src/kernels/2.6.32-642.1.1.el6.x86_64/arch/x86/include/asm/local.h:4,
from include/linux/module.h:20,
from /usr/src/ofa_kernel/default/include/linux/module.h:4,
from include/linux/device.h:23,
from include/linux/pci.h:56,
from /usr/src/ofa_kernel/default/include/linux/pci.h:4,
from /tmp/lustre-2.5.3.90/build/conftest.c:41:
include/linux/percpu.h:713: error: ‘printk_func_t’ undeclared here (not in a function)
include/linux/percpu.h:713: warning: type defaults to ‘int’ in declaration of ‘per_cpu__printk_func’
make[1]: *** [/tmp/lustre-2.5.3.90/build/conftest.o] Error 1