[RFC: 2.6 patch] drivers/ide/ide-io.c: make __ide_end_request() static

From: Adrian Bunk
Date: Sat Jan 07 2006 - 13:12:57 EST


Since there's no longer any external user, we can make
__ide_end_request() static.


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

drivers/ide/ide-io.c | 5 ++---
include/linux/ide.h | 1 -
2 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.15-mm2-full/include/linux/ide.h.old 2006-01-07 17:49:26.000000000 +0100
+++ linux-2.6.15-mm2-full/include/linux/ide.h 2006-01-07 17:49:31.000000000 +0100
@@ -1000,7 +1000,6 @@
extern int noautodma;

extern int ide_end_request (ide_drive_t *drive, int uptodate, int nrsecs);
-extern int __ide_end_request (ide_drive_t *drive, struct request *rq, int uptodate, int nrsecs);

/*
* This is used on exit from the driver to designate the next irq handler
--- linux-2.6.15-mm2-full/drivers/ide/ide-io.c.old 2006-01-07 17:49:38.000000000 +0100
+++ linux-2.6.15-mm2-full/drivers/ide/ide-io.c 2006-01-07 17:50:13.000000000 +0100
@@ -55,8 +55,8 @@
#include <asm/io.h>
#include <asm/bitops.h>

-int __ide_end_request(ide_drive_t *drive, struct request *rq, int uptodate,
- int nr_sectors)
+static int __ide_end_request(ide_drive_t *drive, struct request *rq,
+ int uptodate, int nr_sectors)
{
int ret = 1;

@@ -94,7 +94,6 @@
}
return ret;
}
-EXPORT_SYMBOL(__ide_end_request);

/**
* ide_end_request - complete an IDE I/O

-
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/