[PATCH] fs/partitions/check.c: make local symbols static

From: H Hartley Sweeten
Date: Tue Jan 18 2011 - 16:03:21 EST


The symbols part_alignment_offset_show and part_discard_alignment_show
are only used locally in this file and should be declared static.

Signed-off-by: H Hartley sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Jens Axboe <jaxboe@xxxxxxxxxxxx>
Cc: Tejun Heo <tj@xxxxxxxxxx>
Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@xxxxxxxxxxxxxx>
Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx>

---

diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 9c21119..de5a995 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -244,14 +244,14 @@ ssize_t part_ro_show(struct device *dev,
return sprintf(buf, "%d\n", p->policy ? 1 : 0);
}

-ssize_t part_alignment_offset_show(struct device *dev,
+static ssize_t part_alignment_offset_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct hd_struct *p = dev_to_part(dev);
return sprintf(buf, "%llu\n", (unsigned long long)p->alignment_offset);
}

-ssize_t part_discard_alignment_show(struct device *dev,
+static ssize_t part_discard_alignment_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct hd_struct *p = dev_to_part(dev);
--
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/