fs/partitions/check.c: make local symbols static
The symbols part_ro_show, part_alignment_offset_show, and part_discard_alignment_show are not used outside this file and should be marked static. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
committed by
Jens Axboe
parent
9f5e486550
commit
dd77409338
@@ -237,22 +237,22 @@ ssize_t part_size_show(struct device *dev,
|
|||||||
return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects);
|
return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects);
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t part_ro_show(struct device *dev,
|
static ssize_t part_ro_show(struct device *dev,
|
||||||
struct device_attribute *attr, char *buf)
|
struct device_attribute *attr, char *buf)
|
||||||
{
|
{
|
||||||
struct hd_struct *p = dev_to_part(dev);
|
struct hd_struct *p = dev_to_part(dev);
|
||||||
return sprintf(buf, "%d\n", p->policy ? 1 : 0);
|
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 device_attribute *attr, char *buf)
|
||||||
{
|
{
|
||||||
struct hd_struct *p = dev_to_part(dev);
|
struct hd_struct *p = dev_to_part(dev);
|
||||||
return sprintf(buf, "%llu\n", (unsigned long long)p->alignment_offset);
|
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 device_attribute *attr, char *buf)
|
||||||
{
|
{
|
||||||
struct hd_struct *p = dev_to_part(dev);
|
struct hd_struct *p = dev_to_part(dev);
|
||||||
struct gendisk *disk = dev_to_disk(dev);
|
struct gendisk *disk = dev_to_disk(dev);
|
||||||
|
Reference in New Issue
Block a user