[2.6 patch] drivers/scsi/libata-scsi.c: make some functions static
- From: Adrian Bunk <bunk@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 22:33:01 +0100
This patch makes some needlesly global functions static.
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
---
drivers/scsi/libata-scsi.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
--- linux-2.6.15-rc1-mm2-full/drivers/scsi/libata-scsi.c.old 2005-11-20 03:06:38.000000000 +0100
+++ linux-2.6.15-rc1-mm2-full/drivers/scsi/libata-scsi.c 2005-11-20 03:08:34.000000000 +0100
@@ -325,10 +325,10 @@
* RETURNS:
* Command allocated, or %NULL if none available.
*/
-struct ata_queued_cmd *ata_scsi_qc_new(struct ata_port *ap,
- struct ata_device *dev,
- struct scsi_cmnd *cmd,
- void (*done)(struct scsi_cmnd *))
+static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_port *ap,
+ struct ata_device *dev,
+ struct scsi_cmnd *cmd,
+ void (*done)(struct scsi_cmnd *))
{
struct ata_queued_cmd *qc;
@@ -364,7 +364,7 @@
* LOCKING:
* inherited from caller
*/
-void ata_dump_status(unsigned id, struct ata_taskfile *tf)
+static void ata_dump_status(unsigned id, struct ata_taskfile *tf)
{
u8 stat = tf->command, err = tf->feature;
@@ -413,8 +413,8 @@
* LOCKING:
* spin_lock_irqsave(host_set lock)
*/
-void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc,
- u8 *ascq)
+static void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err,
+ u8 *sk, u8 *asc, u8 *ascq)
{
int i;
@@ -524,7 +524,7 @@
* LOCKING:
* spin_lock_irqsave(host_set lock)
*/
-void ata_gen_ata_desc_sense(struct ata_queued_cmd *qc)
+static void ata_gen_ata_desc_sense(struct ata_queued_cmd *qc)
{
struct scsi_cmnd *cmd = qc->scsicmd;
struct ata_taskfile *tf = &qc->tf;
@@ -600,7 +600,7 @@
* LOCKING:
* inherited from caller
*/
-void ata_gen_fixed_sense(struct ata_queued_cmd *qc)
+static void ata_gen_fixed_sense(struct ata_queued_cmd *qc)
{
struct scsi_cmnd *cmd = qc->scsicmd;
struct ata_taskfile *tf = &qc->tf;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: [2.6 patch] drivers/input/: make some functions static
- Next by Date: [2.6 patch] ISDN_CAPI_CAPIFS related cleanups
- Previous by thread: [2.6 patch] drivers/input/: make some functions static
- Next by thread: [2.6 patch] ISDN_CAPI_CAPIFS related cleanups
- Index(es):
Relevant Pages
- Re: acpi ->video_device_list corruption
... This resulted in silent corruption without ... The patch was seen to
resolve the issue on the affected system. ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: [BUG] e100: eth0 appers many times in /proc/interrupts after resume
... Could you try the following patch? ... I just fixed suspend/shutdown
for e100 in 2.6.19, not sure why the problem still shows up. ... More majordomo info at
http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/
... (Linux-Kernel) - Re: [PATCH] smbfs chroot issue (CVE-2006-1864)
... This patch also applies to 2.4, did you receive it on your side or do you ...
want me to queue it in -upstream? ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: [PATCH 30/61] knfsd: Fix race that can disable NFS server.
... response. ... this patch is definitely appropriate for 2.4. ...
More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ
at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: [patch 17/59] PCI: prevent down_read when pci_devices is empty
... I'd prefer to see that version of this patch go in. ... This is a bogus call
since pci is not initialized yet, so the list is empty. ... More majordomo info
at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/
... (Linux-Kernel)