diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-09 18:01:09 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-09 18:01:09 -0400 |
commit | ecfd80e4a514123070b4cfb674b817ba75055df2 (patch) | |
tree | 956baa39e22030d139803b7585bd71e91c637bb5 /include/linux/ide.h | |
parent | 29e744d088e3555f4efbdf390f01088dd66993b6 (diff) |
ide: make /proc/ide/ optional
All important information/features should be already available through
sysfs and ioctl interfaces.
Add CONFIG_IDE_PROC_FS (CONFIG_SCSI_PROC_FS rip-off) config option,
disabling it makes IDE driver ~5 kB smaller (on x86-32).
While at it add CONFIG_PROC_FS=n versions of proc_ide_{create,destroy}()
and remove no longer needed #ifdefs.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index d03fa2d5d75a..697c39dd66a1 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -912,15 +912,15 @@ typedef struct { | |||
912 | write_proc_t *write_proc; | 912 | write_proc_t *write_proc; |
913 | } ide_proc_entry_t; | 913 | } ide_proc_entry_t; |
914 | 914 | ||
915 | #ifdef CONFIG_PROC_FS | 915 | #ifdef CONFIG_IDE_PROC_FS |
916 | extern struct proc_dir_entry *proc_ide_root; | 916 | extern struct proc_dir_entry *proc_ide_root; |
917 | 917 | ||
918 | extern void proc_ide_create(void); | 918 | void proc_ide_create(void); |
919 | extern void proc_ide_destroy(void); | 919 | void proc_ide_destroy(void); |
920 | extern void create_proc_ide_interfaces(void); | 920 | void create_proc_ide_interfaces(void); |
921 | void destroy_proc_ide_interface(ide_hwif_t *); | 921 | void destroy_proc_ide_interface(ide_hwif_t *); |
922 | extern void ide_add_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *, void *); | 922 | void ide_add_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *, void *); |
923 | extern void ide_remove_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *); | 923 | void ide_remove_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *); |
924 | read_proc_t proc_ide_read_capacity; | 924 | read_proc_t proc_ide_read_capacity; |
925 | read_proc_t proc_ide_read_geometry; | 925 | read_proc_t proc_ide_read_geometry; |
926 | 926 | ||
@@ -944,6 +944,8 @@ void ide_pci_create_host_proc(const char *, get_info_t *); | |||
944 | return len; \ | 944 | return len; \ |
945 | } | 945 | } |
946 | #else | 946 | #else |
947 | static inline void proc_ide_create(void) { ; } | ||
948 | static inline void proc_ide_destroy(void) { ; } | ||
947 | static inline void create_proc_ide_interfaces(void) { ; } | 949 | static inline void create_proc_ide_interfaces(void) { ; } |
948 | static inline void destroy_proc_ide_interface(ide_hwif_t *hwif) { ; } | 950 | static inline void destroy_proc_ide_interface(ide_hwif_t *hwif) { ; } |
949 | #define PROC_IDE_READ_RETURN(page,start,off,count,eof,len) return 0; | 951 | #define PROC_IDE_READ_RETURN(page,start,off,count,eof,len) return 0; |