From 298d8a0447c3d1ca65d929702ddb86b32b6e34b4 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 14 Jan 2003 20:56:22 -0800 Subject: [PATCH] umode_t changes from Adam's mini-devfs The use of umode_t instead of devfs-specific char vs block #defines in Adam's mini-devfs patch makes sense independant of whether his patch should get merged. While reviewing his changes I also notices that most of the number allocation functionality in devfs has no business beeing exported. In addition I cleaned up devfs_alloc_devnum/ devfs_dealloc_devnum a bit. --- include/linux/devfs_fs_kernel.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'include/linux/devfs_fs_kernel.h') diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h index 491dc297b930..97100e343a37 100644 --- a/include/linux/devfs_fs_kernel.h +++ b/include/linux/devfs_fs_kernel.h @@ -21,9 +21,6 @@ #define DEVFS_FL_DEFAULT DEVFS_FL_NONE -#define DEVFS_SPECIAL_CHR 0 -#define DEVFS_SPECIAL_BLK 1 - typedef struct devfs_entry * devfs_handle_t; #ifdef CONFIG_DEVFS_FS @@ -58,10 +55,6 @@ extern int devfs_set_file_size (devfs_handle_t de, unsigned long size); extern int devfs_only (void); extern int devfs_register_tape (devfs_handle_t de); extern void devfs_unregister_tape(int num); -extern int devfs_alloc_major (char type); -extern void devfs_dealloc_major (char type, int major); -extern dev_t devfs_alloc_devnum (char type); -extern void devfs_dealloc_devnum (char type, dev_t devnum); extern int devfs_alloc_unique_number (struct unique_numspace *space); extern void devfs_dealloc_unique_number (struct unique_numspace *space, int number); @@ -129,41 +122,18 @@ static inline int devfs_register_tape (devfs_handle_t de) static inline void devfs_unregister_tape(int num) { } -static inline int devfs_alloc_major (char type) -{ - return -1; -} - -static inline void devfs_dealloc_major (char type, int major) -{ - return; -} - -static inline dev_t devfs_alloc_devnum (char type) -{ - return 0; -} - -static inline void devfs_dealloc_devnum (char type, dev_t devnum) -{ - return; -} - static inline int devfs_alloc_unique_number (struct unique_numspace *space) { return -1; } - static inline void devfs_dealloc_unique_number (struct unique_numspace *space, int number) { return; } - static inline void mount_devfs_fs (void) { return; } #endif /* CONFIG_DEVFS_FS */ - #endif /* _LINUX_DEVFS_FS_KERNEL_H */ -- cgit v1.2.3