Skip to contentSkip to conversation

fs/partitions/check.c: make local symbols static

PATCH New H Hartley Sweeten 1 participant 1 message Jan 18, 2011

lore
Share & tools
lore
#0 lore raw

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.

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
index 9c21119..de5a995 100644
@@ -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);