--- a/include/linux/compat-3.0.h +++ b/include/linux/compat-3.0.h @@ -38,6 +38,8 @@ static inline struct page *shmem_read_ma #endif +#include + /* * since commit 1c5cae815d19ffe02bdfda1260949ef2b1806171 * "net: call dev_alloc_name from register_netdevice" dev_alloc_name is