Commit 68d994ba authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] ide: remove needless exports

Remove needless exports from ide.c, ide-probe.c and ide-proc.c.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7f1d74ad
......@@ -646,8 +646,6 @@ static void hwif_register (ide_hwif_t *hwif)
device_register(&hwif->gendev);
}
//EXPORT_SYMBOL(hwif_register);
#ifdef CONFIG_PPC
static int wait_hwif_ready(ide_hwif_t *hwif)
{
......@@ -690,7 +688,7 @@ static int wait_hwif_ready(ide_hwif_t *hwif)
* This routine only knows how to look for drive units 0 and 1
* on an interface, so any setting of MAX_DRIVES > 2 won't work here.
*/
void probe_hwif (ide_hwif_t *hwif)
static void probe_hwif(ide_hwif_t *hwif)
{
unsigned int unit;
unsigned long flags;
......@@ -834,9 +832,7 @@ void probe_hwif (ide_hwif_t *hwif)
}
}
EXPORT_SYMBOL(probe_hwif);
int hwif_init (ide_hwif_t *hwif);
static int hwif_init(ide_hwif_t *hwif);
int probe_hwif_init (ide_hwif_t *hwif)
{
probe_hwif(hwif);
......@@ -871,7 +867,7 @@ EXPORT_SYMBOL(probe_hwif_init);
*
* This routine detects and reports such situations, but does not fix them.
*/
void save_match (ide_hwif_t *hwif, ide_hwif_t *new, ide_hwif_t **match)
static void save_match(ide_hwif_t *hwif, ide_hwif_t *new, ide_hwif_t **match)
{
ide_hwif_t *m = *match;
......@@ -884,7 +880,6 @@ void save_match (ide_hwif_t *hwif, ide_hwif_t *new, ide_hwif_t **match)
if (!m || m->irq != hwif->irq) /* don't undo a prior perfect match */
*match = new;
}
EXPORT_SYMBOL(save_match);
#endif /* MAX_HWIFS > 1 */
/*
......@@ -1231,9 +1226,7 @@ static void init_gendisk (ide_hwif_t *hwif)
THIS_MODULE, ata_probe, ata_lock, hwif);
}
EXPORT_SYMBOL(init_gendisk);
int hwif_init (ide_hwif_t *hwif)
static int hwif_init(ide_hwif_t *hwif)
{
int old_irq, unit;
......@@ -1301,8 +1294,6 @@ int hwif_init (ide_hwif_t *hwif)
return 0;
}
EXPORT_SYMBOL(hwif_init);
int ideprobe_init (void)
{
unsigned int index;
......
......@@ -280,7 +280,7 @@ static int proc_ide_write_config(struct file *file, const char __user *buffer,
goto out1;
}
int proc_ide_read_config
static int proc_ide_read_config
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
char *out = page;
......@@ -317,8 +317,6 @@ int proc_ide_read_config
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_config);
static int proc_ide_read_imodel
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
......@@ -352,9 +350,7 @@ static int proc_ide_read_imodel
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_imodel);
int proc_ide_read_mate
static int proc_ide_read_mate
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_hwif_t *hwif = (ide_hwif_t *) data;
......@@ -367,9 +363,7 @@ int proc_ide_read_mate
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_mate);
int proc_ide_read_channel
static int proc_ide_read_channel
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_hwif_t *hwif = (ide_hwif_t *) data;
......@@ -381,9 +375,7 @@ int proc_ide_read_channel
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_channel);
int proc_ide_read_identify
static int proc_ide_read_identify
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_drive_t *drive = (ide_drive_t *)data;
......@@ -425,9 +417,7 @@ int proc_ide_read_identify
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_identify);
int proc_ide_read_settings
static int proc_ide_read_settings
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_drive_t *drive = (ide_drive_t *) data;
......@@ -459,12 +449,10 @@ int proc_ide_read_settings
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_settings);
#define MAX_LEN 30
int proc_ide_write_settings(struct file *file, const char __user *buffer,
unsigned long count, void *data)
static int proc_ide_write_settings(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
ide_drive_t *drive = (ide_drive_t *) data;
char name[MAX_LEN + 1];
......@@ -555,8 +543,6 @@ int proc_ide_write_settings(struct file *file, const char __user *buffer,
return -EINVAL;
}
EXPORT_SYMBOL(proc_ide_write_settings);
int proc_ide_read_capacity
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
......@@ -568,8 +554,6 @@ int proc_ide_read_capacity
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_capacity);
int proc_ide_read_geometry
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
......@@ -588,7 +572,7 @@ int proc_ide_read_geometry
EXPORT_SYMBOL(proc_ide_read_geometry);
int proc_ide_read_dmodel
static int proc_ide_read_dmodel
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_drive_t *drive = (ide_drive_t *) data;
......@@ -600,9 +584,7 @@ int proc_ide_read_dmodel
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_dmodel);
int proc_ide_read_driver
static int proc_ide_read_driver
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_drive_t *drive = (ide_drive_t *) data;
......@@ -614,9 +596,7 @@ int proc_ide_read_driver
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_driver);
int proc_ide_write_driver
static int proc_ide_write_driver
(struct file *file, const char __user *buffer, unsigned long count, void *data)
{
ide_drive_t *drive = (ide_drive_t *) data;
......@@ -634,9 +614,7 @@ int proc_ide_write_driver
return count;
}
EXPORT_SYMBOL(proc_ide_write_driver);
int proc_ide_read_media
static int proc_ide_read_media
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
ide_drive_t *drive = (ide_drive_t *) data;
......@@ -660,8 +638,6 @@ int proc_ide_read_media
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
EXPORT_SYMBOL(proc_ide_read_media);
static ide_proc_entry_t generic_drive_entries[] = {
{ "driver", S_IFREG|S_IRUGO, proc_ide_read_driver, proc_ide_write_driver },
{ "identify", S_IFREG|S_IRUSR, proc_ide_read_identify, NULL },
......@@ -688,8 +664,6 @@ void ide_add_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p, void
}
}
EXPORT_SYMBOL(ide_add_proc_entries);
void ide_remove_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p)
{
if (!dir || !p)
......@@ -700,9 +674,7 @@ void ide_remove_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p)
}
}
EXPORT_SYMBOL(ide_remove_proc_entries);
void create_proc_ide_drives(ide_hwif_t *hwif)
static void create_proc_ide_drives(ide_hwif_t *hwif)
{
int d;
struct proc_dir_entry *ent;
......@@ -726,9 +698,7 @@ void create_proc_ide_drives(ide_hwif_t *hwif)
}
}
EXPORT_SYMBOL(create_proc_ide_drives);
void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
static void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
{
ide_driver_t *driver = drive->driver;
......@@ -741,8 +711,6 @@ void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
}
}
EXPORT_SYMBOL(destroy_proc_ide_device);
void destroy_proc_ide_drives(ide_hwif_t *hwif)
{
int d;
......@@ -754,8 +722,6 @@ void destroy_proc_ide_drives(ide_hwif_t *hwif)
}
}
EXPORT_SYMBOL(destroy_proc_ide_drives);
static ide_proc_entry_t hwif_entries[] = {
{ "channel", S_IFREG|S_IRUGO, proc_ide_read_channel, NULL },
{ "config", S_IFREG|S_IRUGO|S_IWUSR,proc_ide_read_config, proc_ide_write_config },
......@@ -843,13 +809,9 @@ void proc_ide_create(void)
entry->proc_fops = &ide_drivers_operations;
}
EXPORT_SYMBOL(proc_ide_create);
void proc_ide_destroy(void)
{
remove_proc_entry("ide/drivers", proc_ide_root);
destroy_proc_ide_interfaces();
remove_proc_entry("ide", 0);
}
EXPORT_SYMBOL(proc_ide_destroy);
......@@ -188,7 +188,6 @@ int noautodma = 1;
#endif
EXPORT_SYMBOL(noautodma);
EXPORT_SYMBOL(ide_bus_type);
/*
* This is declared extern in ide.h, for access by other IDE modules:
......@@ -554,8 +553,6 @@ int ide_hwif_request_regions(ide_hwif_t *hwif)
return -EBUSY;
}
EXPORT_SYMBOL(ide_hwif_request_regions);
/**
* ide_hwif_release_regions - free IDE resources
*
......@@ -584,8 +581,6 @@ void ide_hwif_release_regions(ide_hwif_t *hwif)
release_region(hwif->io_ports[i], 1);
}
EXPORT_SYMBOL(ide_hwif_release_regions);
/* restore hwif to a sane state */
static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif)
{
......@@ -936,8 +931,6 @@ void ide_setup_ports ( hw_regs_t *hw,
*/
}
EXPORT_SYMBOL(ide_setup_ports);
/*
* Register an IDE interface, specifying exactly the registers etc
* Set init=1 iff calling before probes have taken place.
......@@ -998,7 +991,6 @@ EXPORT_SYMBOL(ide_register_hw);
*/
DECLARE_MUTEX(ide_setting_sem);
EXPORT_SYMBOL(ide_setting_sem);
/**
* ide_add_setting - add an ide setting option
......@@ -1272,8 +1264,6 @@ int ide_write_setting (ide_drive_t *drive, ide_settings_t *setting, int val)
return 0;
}
EXPORT_SYMBOL(ide_write_setting);
static int set_io_32bit(ide_drive_t *drive, int arg)
{
drive->io_32bit = arg;
......@@ -1401,8 +1391,6 @@ int ide_replace_subdriver (ide_drive_t *drive, const char *driver)
return 1;
}
EXPORT_SYMBOL(ide_replace_subdriver);
int ata_attach(ide_drive_t *drive)
{
struct list_head *p;
......@@ -1427,8 +1415,6 @@ int ata_attach(ide_drive_t *drive)
return 1;
}
EXPORT_SYMBOL(ata_attach);
static int generic_ide_suspend(struct device *dev, u32 state)
{
ide_drive_t *drive = dev->driver_data;
......
......@@ -1116,7 +1116,6 @@ extern struct proc_dir_entry *proc_ide_root;
extern void proc_ide_create(void);
extern void proc_ide_destroy(void);
extern void destroy_proc_ide_device(ide_hwif_t *, ide_drive_t *);
extern void destroy_proc_ide_drives(ide_hwif_t *);
extern void create_proc_ide_interfaces(void);
extern void ide_add_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *, void *);
......
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