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 @@
#include <linux/fcntl.h> /* O_ACCMODE */
#include <linux/hdreg.h> /* HDIO_GETGEO */
#include <linux/devfs_fs_kernel.h>
#include <linux/umem.h>
......
......@@ -22,6 +22,7 @@
#include <linux/tty.h>
#include <linux/capability.h>
#include <linux/smp_lock.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/uaccess.h>
#include <asm/io.h>
......
......@@ -19,8 +19,9 @@
#include <linux/input.h>
#include <linux/smp_lock.h>
#include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
struct evdev{
struct evdev {
int exist;
int open;
int minor;
......
......@@ -22,6 +22,7 @@
#include <linux/interrupt.h>
#include <linux/poll.h>
#include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>");
MODULE_DESCRIPTION("Input core");
......
......@@ -26,6 +26,7 @@
#include <linux/init.h>
#include <linux/smp_lock.h>
#include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
MODULE_DESCRIPTION("Joystick device interfaces");
......
......@@ -22,6 +22,7 @@
#include <linux/random.h>
#include <linux/major.h>
#include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
#include <linux/miscdevice.h>
#endif
......
......@@ -41,6 +41,7 @@
#include <linux/random.h>
#include <linux/time.h>
#include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
#ifndef CONFIG_INPUT_TSDEV_SCREEN_X
#define CONFIG_INPUT_TSDEV_SCREEN_X 240
......
......@@ -28,6 +28,7 @@
#include <linux/init.h>
#include <linux/kmod.h>
#include <linux/slab.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/semaphore.h>
......
......@@ -52,6 +52,7 @@
#include <linux/init.h>
#include <linux/smp_lock.h>
#include <linux/completion.h>
#include <linux/devfs_fs_kernel.h>
#define __KERNEL_SYSCALLS__
......
......@@ -55,6 +55,7 @@ static int sg_version_num = 30528; /* 2 digits for each component */
#include <linux/vmalloc.h>
#include <linux/smp_lock.h>
#include <linux/moduleparam.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/io.h>
#include <asm/uaccess.h>
......
......@@ -36,7 +36,6 @@
#include <linux/list.h>
#include <linux/config.h>
#include <linux/device.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/ocp_ids.h>
#include <asm/mmu.h> /* For phys_addr_t */
......
......@@ -715,7 +715,7 @@ struct request_sense {
};
#ifdef __KERNEL__
#include <linux/devfs_fs_kernel.h>
#include <linux/fs.h> /* not really needed, later.. */
#include <linux/device.h>
struct cdrom_write_settings {
......
......@@ -348,7 +348,6 @@ struct fb_pixmap {
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
struct fb_info;
struct vm_area_struct;
......
......@@ -15,6 +15,7 @@
#include <linux/device.h>
#include <linux/smp.h>
#include <linux/string.h>
#include <linux/fs.h>
enum {
/* These three have identical behaviour; use the second one if DOS FDISK gets
......@@ -55,10 +56,6 @@ struct partition {
} __attribute__((packed));
#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 {
sector_t start_sect;
sector_t nr_sects;
......
......@@ -734,7 +734,6 @@ struct ff_effect {
* In-kernel definitions.
*/
#include <linux/devfs_fs_kernel.h>
#include <linux/fs.h>
#include <linux/timer.h>
......
......@@ -201,10 +201,6 @@ typedef struct {
# include <linux/concap.h>
#endif
#ifdef CONFIG_DEVFS_FS
# include <linux/devfs_fs_kernel.h>
#endif
#include <linux/isdnif.h>
#define ISDN_DRVIOCTL_MASK 0x7f /* Mask for Device-ioctl */
......
#ifndef _LINUX_MISCDEVICE_H
#define _LINUX_MISCDEVICE_H
#include <linux/devfs_fs_kernel.h>
#define BUSMOUSE_MINOR 0
#define PSMOUSE_MINOR 1
#define MS_BUSMOUSE_MINOR 2
......
......@@ -19,7 +19,6 @@
#ifdef __KERNEL__
#include <linux/poll.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/mm.h>
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