Add #include <linux/version.h> to include/asm/uaccess.h
authorIan Abbott <abbotti@mev.co.uk>
Thu, 3 Mar 2011 15:47:44 +0000 (15:47 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 3 Mar 2011 15:47:44 +0000 (15:47 +0000)
The include/asm/uaccess.h compatibility header uses LINUX_VERSION_CODE
and KERNEL_VERSION, but doesn't #include <linux/version.h> to define
those macros.  This caused a build failure for at least one person.

Perhaps we should just remove the file though, as it's only needed for
really ancient kernels (before 2.2.0) that we no longer support.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
include/asm/uaccess.h

index 3d9190fee6ca8e18df17d7e2e1ea0af7016eee38..5e9e48b00cd732c0280cf8898afcf1110650cea3 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef __COMPAT_ASM_UACCESS_H
 #define __COMPAT_ASM_UACCESS_H
 
+#include <linux/version.h>
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)
 /* unknown, approx 2.1.4 */