diff options
Diffstat (limited to 'fs/partitions')
-rw-r--r-- | fs/partitions/check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index d545e97d99c3..e3c63d1c5e13 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -237,22 +237,22 @@ ssize_t part_size_show(struct device *dev, | |||
237 | return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); | 237 | return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); |
238 | } | 238 | } |
239 | 239 | ||
240 | ssize_t part_ro_show(struct device *dev, | 240 | static ssize_t part_ro_show(struct device *dev, |
241 | struct device_attribute *attr, char *buf) | 241 | struct device_attribute *attr, char *buf) |
242 | { | 242 | { |
243 | struct hd_struct *p = dev_to_part(dev); | 243 | struct hd_struct *p = dev_to_part(dev); |
244 | return sprintf(buf, "%d\n", p->policy ? 1 : 0); | 244 | return sprintf(buf, "%d\n", p->policy ? 1 : 0); |
245 | } | 245 | } |
246 | 246 | ||
247 | ssize_t part_alignment_offset_show(struct device *dev, | 247 | static ssize_t part_alignment_offset_show(struct device *dev, |
248 | struct device_attribute *attr, char *buf) | 248 | struct device_attribute *attr, char *buf) |
249 | { | 249 | { |
250 | struct hd_struct *p = dev_to_part(dev); | 250 | struct hd_struct *p = dev_to_part(dev); |
251 | return sprintf(buf, "%llu\n", (unsigned long long)p->alignment_offset); | 251 | return sprintf(buf, "%llu\n", (unsigned long long)p->alignment_offset); |
252 | } | 252 | } |
253 | 253 | ||
254 | ssize_t part_discard_alignment_show(struct device *dev, | 254 | static ssize_t part_discard_alignment_show(struct device *dev, |
255 | struct device_attribute *attr, char *buf) | 255 | struct device_attribute *attr, char *buf) |
256 | { | 256 | { |
257 | struct hd_struct *p = dev_to_part(dev); | 257 | struct hd_struct *p = dev_to_part(dev); |
258 | return sprintf(buf, "%u\n", p->discard_alignment); | 258 | return sprintf(buf, "%u\n", p->discard_alignment); |