[PATCH] Fix build error due to not including <linux/errno.h>
authorRalf Baechle <ralf@linux-mips.org>
Sun, 18 Mar 2007 12:58:08 +0000 (12:58 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 18 Mar 2007 20:40:06 +0000 (13:40 -0700)
Since d9a9cdfb078d755e648d53ec25b7370f84ee5729 <linux/sysfs.h> is using
ENOSYS without including <linux/errno.h> if CONFIG_SYSFS is disabled.

Fixed by including <linux/errno.h>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/sysfs.h

index 0544edda716888ee3ee26823be8cd82ac497c606..fea9a6b3fb7b54be1a26f4e430dc62a7dbcfff1b 100644 (file)
@@ -11,6 +11,7 @@
 #define _SYSFS_H_
 
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <asm/atomic.h>