[2.6 patch] drivers/firmware/iscsi_ibft.c: make 3 functions static

Previous thread: [PATCH 9/14] uml: memcpy export needs to follow host declaration by Jeff Dike on Tuesday, August 5, 2008 - 4:14 pm. (2 messages)

Next thread: Re: HPET regression in 2.6.26 versus 2.6.25 by David Witbrodt on Tuesday, August 5, 2008 - 5:12 pm. (1 message)
To: Konrad Rzeszutek <ketuzsezr@...>, James Bottomley <James.Bottomley@...>
Cc: <linux-scsi@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Tuesday, August 5, 2008 - 4:14 pm

This patch makes the following needlessly global functions static:
- ibft_attr_show_initiator()
- ibft_attr_show_nic()
- ibft_attr_show_target()

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

This patch has been sent on:
- 23 Apr 2008

drivers/firmware/iscsi_ibft.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

421adc9620a633d461059da9a8a94315d8a767ea diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c
index 8024e3b..8523811 100644
--- a/drivers/firmware/iscsi_ibft.c
+++ b/drivers/firmware/iscsi_ibft.c
@@ -334,9 +334,9 @@ static void ibft_release(struct kobject *kobj)
/*
* Routines for parsing the iBFT data to be human readable.
*/
-ssize_t ibft_attr_show_initiator(struct ibft_kobject *entry,
- struct ibft_attribute *attr,
- char *buf)
+static ssize_t ibft_attr_show_initiator(struct ibft_kobject *entry,
+ struct ibft_attribute *attr,
+ char *buf)
{
struct ibft_initiator *initiator = entry->initiator;
void *ibft_loc = entry->header;
@@ -376,9 +376,9 @@ ssize_t ibft_attr_show_initiator(struct ibft_kobject *entry,
return str - buf;
}

-ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
- struct ibft_attribute *attr,
- char *buf)
+static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
+ struct ibft_attribute *attr,
+ char *buf)
{
struct ibft_nic *nic = entry->nic;
void *ibft_loc = entry->header;
@@ -440,9 +440,9 @@ ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
return str - buf;
};

-ssize_t ibft_attr_show_target(struct ibft_kobject *entry,
- struct ibft_attribute *attr,
- char *buf)
+static ssize_t ibft_attr_show_target(struct ibft_kobject *entry,
+ struct ibft_attribute *attr,
+ char *buf)
{
struct ibft_tgt *tgt = entry->tgt;
void *ibft_loc = entry->header;

--

Previous thread: [PATCH 9/14] uml: memcpy export needs to follow host declaration by Jeff Dike on Tuesday, August 5, 2008 - 4:14 pm. (2 messages)

Next thread: Re: HPET regression in 2.6.26 versus 2.6.25 by David Witbrodt on Tuesday, August 5, 2008 - 5:12 pm. (1 message)