mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
ata: remove EXPORT_SYMBOL_GPL()s not used by modules
Remove EXPORT_SYMBOL_GPL()s for functions used only by the core libata code. Code size savings on m68k arch using (modified) atari_defconfig: text data bss dec hex filename before: 39838 573 40 40451 9e03 drivers/ata/libata-core.o 21071 105 576 21752 54f8 drivers/ata/libata-scsi.o 17519 18 0 17537 4481 drivers/ata/libata-eh.o after: 39688 573 40 40301 9d6d drivers/ata/libata-core.o 21040 105 576 21721 54d9 drivers/ata/libata-scsi.o 17405 18 0 17423 440f drivers/ata/libata-eh.o Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
a52fbcfc7b
commit
2b67a6d3a4
@ -80,7 +80,6 @@ const struct ata_port_operations ata_base_port_ops = {
|
|||||||
.sched_eh = ata_std_sched_eh,
|
.sched_eh = ata_std_sched_eh,
|
||||||
.end_eh = ata_std_end_eh,
|
.end_eh = ata_std_end_eh,
|
||||||
};
|
};
|
||||||
EXPORT_SYMBOL_GPL(ata_base_port_ops);
|
|
||||||
|
|
||||||
const struct ata_port_operations sata_port_ops = {
|
const struct ata_port_operations sata_port_ops = {
|
||||||
.inherits = &ata_base_port_ops,
|
.inherits = &ata_base_port_ops,
|
||||||
@ -902,7 +901,6 @@ void ata_unpack_xfermask(unsigned long xfer_mask, unsigned long *pio_mask,
|
|||||||
if (udma_mask)
|
if (udma_mask)
|
||||||
*udma_mask = (xfer_mask & ATA_MASK_UDMA) >> ATA_SHIFT_UDMA;
|
*udma_mask = (xfer_mask & ATA_MASK_UDMA) >> ATA_SHIFT_UDMA;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_unpack_xfermask);
|
|
||||||
|
|
||||||
static const struct ata_xfer_ent {
|
static const struct ata_xfer_ent {
|
||||||
int shift, bits;
|
int shift, bits;
|
||||||
@ -3425,7 +3423,6 @@ u8 ata_timing_cycle2mode(unsigned int xfer_shift, int cycle)
|
|||||||
|
|
||||||
return last_mode;
|
return last_mode;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_timing_cycle2mode);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ata_down_xfermask_limit - adjust dev xfer masks downward
|
* ata_down_xfermask_limit - adjust dev xfer masks downward
|
||||||
@ -5051,7 +5048,6 @@ void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
|
|||||||
qc->n_elem = n_elem;
|
qc->n_elem = n_elem;
|
||||||
qc->cursg = qc->sg;
|
qc->cursg = qc->sg;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_sg_init);
|
|
||||||
|
|
||||||
#ifdef CONFIG_HAS_DMA
|
#ifdef CONFIG_HAS_DMA
|
||||||
|
|
||||||
@ -6157,7 +6153,6 @@ void ata_host_get(struct ata_host *host)
|
|||||||
{
|
{
|
||||||
kref_get(&host->kref);
|
kref_get(&host->kref);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_host_get);
|
|
||||||
|
|
||||||
void ata_host_put(struct ata_host *host)
|
void ata_host_put(struct ata_host *host)
|
||||||
{
|
{
|
||||||
|
@ -1215,7 +1215,6 @@ void ata_eh_thaw_port(struct ata_port *ap)
|
|||||||
|
|
||||||
DPRINTK("ata%u port thawed\n", ap->print_id);
|
DPRINTK("ata%u port thawed\n", ap->print_id);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_eh_thaw_port);
|
|
||||||
|
|
||||||
static void ata_eh_scsidone(struct scsi_cmnd *scmd)
|
static void ata_eh_scsidone(struct scsi_cmnd *scmd)
|
||||||
{
|
{
|
||||||
@ -1250,7 +1249,6 @@ void ata_eh_qc_complete(struct ata_queued_cmd *qc)
|
|||||||
scmd->retries = scmd->allowed;
|
scmd->retries = scmd->allowed;
|
||||||
__ata_eh_qc_complete(qc);
|
__ata_eh_qc_complete(qc);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_eh_qc_complete);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ata_eh_qc_retry - Tell midlayer to retry an ATA command after EH
|
* ata_eh_qc_retry - Tell midlayer to retry an ATA command after EH
|
||||||
@ -1270,7 +1268,6 @@ void ata_eh_qc_retry(struct ata_queued_cmd *qc)
|
|||||||
scmd->allowed++;
|
scmd->allowed++;
|
||||||
__ata_eh_qc_complete(qc);
|
__ata_eh_qc_complete(qc);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_eh_qc_retry);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ata_dev_disable - disable ATA device
|
* ata_dev_disable - disable ATA device
|
||||||
@ -4041,7 +4038,6 @@ void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset,
|
|||||||
|
|
||||||
ata_eh_finish(ap);
|
ata_eh_finish(ap);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_do_eh);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ata_std_error_handler - standard error handler
|
* ata_std_error_handler - standard error handler
|
||||||
|
@ -4536,7 +4536,6 @@ void ata_scsi_simulate(struct ata_device *dev, struct scsi_cmnd *cmd)
|
|||||||
|
|
||||||
cmd->scsi_done(cmd);
|
cmd->scsi_done(cmd);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ata_scsi_simulate);
|
|
||||||
|
|
||||||
int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
|
int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user