]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: shrink comedi_compat32.h
authorIan Abbott <abbotti@mev.co.uk>
Tue, 19 Jun 2012 09:58:16 +0000 (10:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2012 19:57:43 +0000 (12:57 -0700)
"comedi_compat32.h" #include's <linux/compat.h>, but that is only needed
by "comedi_compat32.c" so move the #include to that file.  Also,
"comedi_compat.h" doesn't really need the '#include <linux/fs.h>' just
to declare 'struct file' as it only uses it to construct a pointer to
that type.  Replace that #include with an incomplete declaration of
'struct file' and move that #include into "comedi_compat32.c".

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_compat32.c
drivers/staging/comedi/comedi_compat32.h

index 41a7a62ba49a5958c044206822b644a4c06d4876..0a5057f0919b015427432f0dc9a6724bb88fc1d8 100644 (file)
@@ -26,6 +26,8 @@
 
 #define __NO_VERSION__
 #include <linux/uaccess.h>
+#include <linux/compat.h>
+#include <linux/fs.h>
 #include "comedi.h"
 #include "comedi_compat32.h"
 
index c99573be046a091cf5a943d8f20835bd4a794ba9..60cf51c4a793c1781288a025a4df8b845be42559 100644 (file)
 #ifndef _COMEDI_COMPAT32_H
 #define _COMEDI_COMPAT32_H
 
-#include <linux/compat.h>
-#include <linux/fs.h>
-
 #ifdef CONFIG_COMPAT
 
+struct file;
 extern long comedi_compat_ioctl(struct file *file, unsigned int cmd,
                                unsigned long arg);