fs/partitions/check.c: make local symbols static
PATCH 1/1 fs/partitions/check.c: make local symbols static
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 <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Tejun Heo <[email protected]>
Cc David S. Miller <[email protected]>
Cc Yasuaki Ishimatsu <[email protected]>
Cc Alexey Dobriyan <[email protected]>
---
fs/partitions/check.c +2 -2
@@ -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);