Skip to contentSkip to conversation

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

PATCH New H Hartley Sweeten 1 participant 1 message Jan 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/partitions/check.c: make local symbol static

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

The symbol part_alignment_offset_show is only used locally in this file. Make it static to prevent the following sparse warning:

warning: symbol 'part_alignment_offset_show' was not declared. Should it be static?

---

fs/partitions/check.c +1 -1
index 64bc899..9814e22 100644
@@ -219,7 +219,7 @@ ssize_t part_size_show(struct device *dev,
 	return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects);
 }
 
-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);