mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-07 04:21:33 -04:00
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>
This commit is contained in:
@@ -912,15 +912,15 @@ typedef struct {
|
||||
write_proc_t *write_proc;
|
||||
} ide_proc_entry_t;
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
#ifdef CONFIG_IDE_PROC_FS
|
||||
extern struct proc_dir_entry *proc_ide_root;
|
||||
|
||||
extern void proc_ide_create(void);
|
||||
extern void proc_ide_destroy(void);
|
||||
extern void create_proc_ide_interfaces(void);
|
||||
void proc_ide_create(void);
|
||||
void proc_ide_destroy(void);
|
||||
void create_proc_ide_interfaces(void);
|
||||
void destroy_proc_ide_interface(ide_hwif_t *);
|
||||
extern void ide_add_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *, void *);
|
||||
extern void ide_remove_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *);
|
||||
void ide_add_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *, void *);
|
||||
void ide_remove_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *);
|
||||
read_proc_t proc_ide_read_capacity;
|
||||
read_proc_t proc_ide_read_geometry;
|
||||
|
||||
@@ -944,6 +944,8 @@ void ide_pci_create_host_proc(const char *, get_info_t *);
|
||||
return len; \
|
||||
}
|
||||
#else
|
||||
static inline void proc_ide_create(void) { ; }
|
||||
static inline void proc_ide_destroy(void) { ; }
|
||||
static inline void create_proc_ide_interfaces(void) { ; }
|
||||
static inline void destroy_proc_ide_interface(ide_hwif_t *hwif) { ; }
|
||||
#define PROC_IDE_READ_RETURN(page,start,off,count,eof,len) return 0;
|
||||
|
||||
Reference in New Issue
Block a user