mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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>
This commit is contained in:
parent
f286766e4b
commit
00d20c64a1
2 changed files with 3 additions and 3 deletions
|
@ -26,6 +26,8 @@
|
||||||
|
|
||||||
#define __NO_VERSION__
|
#define __NO_VERSION__
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
|
#include <linux/compat.h>
|
||||||
|
#include <linux/fs.h>
|
||||||
#include "comedi.h"
|
#include "comedi.h"
|
||||||
#include "comedi_compat32.h"
|
#include "comedi_compat32.h"
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,9 @@
|
||||||
#ifndef _COMEDI_COMPAT32_H
|
#ifndef _COMEDI_COMPAT32_H
|
||||||
#define _COMEDI_COMPAT32_H
|
#define _COMEDI_COMPAT32_H
|
||||||
|
|
||||||
#include <linux/compat.h>
|
|
||||||
#include <linux/fs.h>
|
|
||||||
|
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
|
|
||||||
|
struct file;
|
||||||
extern long comedi_compat_ioctl(struct file *file, unsigned int cmd,
|
extern long comedi_compat_ioctl(struct file *file, unsigned int cmd,
|
||||||
unsigned long arg);
|
unsigned long arg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue