Commit 4d009152 authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] don't include devfs_fs_kernel.h in global headers

Now that devfs_handle_t is gone from all structs there is no
reason to include it in headers.

Fix the fallout by including previously implicit headers and fixing
the drivers that didn't include devfs_fs_kernel.h explicitly.
parent a7fe32f7
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <linux/fcntl.h> /* O_ACCMODE */ #include <linux/fcntl.h> /* O_ACCMODE */
#include <linux/hdreg.h> /* HDIO_GETGEO */ #include <linux/hdreg.h> /* HDIO_GETGEO */
#include <linux/devfs_fs_kernel.h>
#include <linux/umem.h> #include <linux/umem.h>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/tty.h> #include <linux/tty.h>
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
#include <linux/input.h> #include <linux/input.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
struct evdev{ struct evdev {
int exist; int exist;
int open; int open;
int minor; int minor;
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/poll.h> #include <linux/poll.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>"); MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>");
MODULE_DESCRIPTION("Input core"); MODULE_DESCRIPTION("Input core");
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
MODULE_DESCRIPTION("Joystick device interfaces"); MODULE_DESCRIPTION("Joystick device interfaces");
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/random.h> #include <linux/random.h>
#include <linux/major.h> #include <linux/major.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX #ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#endif #endif
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <linux/random.h> #include <linux/random.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
#ifndef CONFIG_INPUT_TSDEV_SCREEN_X #ifndef CONFIG_INPUT_TSDEV_SCREEN_X
#define CONFIG_INPUT_TSDEV_SCREEN_X 240 #define CONFIG_INPUT_TSDEV_SCREEN_X 240
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kmod.h> #include <linux/kmod.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/semaphore.h> #include <asm/semaphore.h>
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/devfs_fs_kernel.h>
#define __KERNEL_SYSCALLS__ #define __KERNEL_SYSCALLS__
......
...@@ -55,6 +55,7 @@ static int sg_version_num = 30528; /* 2 digits for each component */ ...@@ -55,6 +55,7 @@ static int sg_version_num = 30528; /* 2 digits for each component */
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <linux/list.h> #include <linux/list.h>
#include <linux/config.h> #include <linux/config.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/ocp_ids.h> #include <asm/ocp_ids.h>
#include <asm/mmu.h> /* For phys_addr_t */ #include <asm/mmu.h> /* For phys_addr_t */
......
...@@ -715,7 +715,7 @@ struct request_sense { ...@@ -715,7 +715,7 @@ struct request_sense {
}; };
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/devfs_fs_kernel.h> #include <linux/fs.h> /* not really needed, later.. */
#include <linux/device.h> #include <linux/device.h>
struct cdrom_write_settings { struct cdrom_write_settings {
......
...@@ -348,7 +348,6 @@ struct fb_pixmap { ...@@ -348,7 +348,6 @@ struct fb_pixmap {
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
struct fb_info; struct fb_info;
struct vm_area_struct; struct vm_area_struct;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/fs.h>
enum { enum {
/* These three have identical behaviour; use the second one if DOS FDISK gets /* These three have identical behaviour; use the second one if DOS FDISK gets
...@@ -55,10 +56,6 @@ struct partition { ...@@ -55,10 +56,6 @@ struct partition {
} __attribute__((packed)); } __attribute__((packed));
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/devfs_fs_kernel.h> /* we don't need any devfs crap
here, but some of the implicitly
included headers. will clean
this mess up later. --hch */
struct hd_struct { struct hd_struct {
sector_t start_sect; sector_t start_sect;
sector_t nr_sects; sector_t nr_sects;
......
...@@ -734,7 +734,6 @@ struct ff_effect { ...@@ -734,7 +734,6 @@ struct ff_effect {
* In-kernel definitions. * In-kernel definitions.
*/ */
#include <linux/devfs_fs_kernel.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/timer.h> #include <linux/timer.h>
......
...@@ -201,10 +201,6 @@ typedef struct { ...@@ -201,10 +201,6 @@ typedef struct {
# include <linux/concap.h> # include <linux/concap.h>
#endif #endif
#ifdef CONFIG_DEVFS_FS
# include <linux/devfs_fs_kernel.h>
#endif
#include <linux/isdnif.h> #include <linux/isdnif.h>
#define ISDN_DRVIOCTL_MASK 0x7f /* Mask for Device-ioctl */ #define ISDN_DRVIOCTL_MASK 0x7f /* Mask for Device-ioctl */
......
#ifndef _LINUX_MISCDEVICE_H #ifndef _LINUX_MISCDEVICE_H
#define _LINUX_MISCDEVICE_H #define _LINUX_MISCDEVICE_H
#include <linux/devfs_fs_kernel.h>
#define BUSMOUSE_MINOR 0 #define BUSMOUSE_MINOR 0
#define PSMOUSE_MINOR 1 #define PSMOUSE_MINOR 1
#define MS_BUSMOUSE_MINOR 2 #define MS_BUSMOUSE_MINOR 2
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/poll.h> #include <linux/poll.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/mm.h> #include <linux/mm.h>
struct video_device struct video_device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment