diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2012-06-19 09:58:16 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-20 19:57:43 (GMT) |
commit | 00d20c64a19bc57816d85e3e8f72ff0b8d325d5e (patch) | |
tree | bdcd56141c936477272b971959938e8561d181a3 /drivers/staging/comedi/comedi_compat32.h | |
parent | f286766e4ba899043714471a0a2c9f1474d2ab5c (diff) | |
download | linux-fsl-qoriq-00d20c64a19bc57816d85e3e8f72ff0b8d325d5e.tar.xz |
staging: comedi: shrink comedi_compat32.h
"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>
Diffstat (limited to 'drivers/staging/comedi/comedi_compat32.h')
-rw-r--r-- | drivers/staging/comedi/comedi_compat32.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/comedi_compat32.h b/drivers/staging/comedi/comedi_compat32.h index c99573b..60cf51c 100644 --- a/drivers/staging/comedi/comedi_compat32.h +++ b/drivers/staging/comedi/comedi_compat32.h @@ -27,11 +27,9 @@ #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); |