* [PATCH] fs/partitions/check.c: make local symbol static
@ 2010-01-15 2:48 H Hartley Sweeten
0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2010-01-15 2:48 UTC (permalink / raw)
To: Linux Kernel
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?
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
---
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 64bc899..9814e22 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-15 2:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-15 2:48 [PATCH] fs/partitions/check.c: make local symbol static H Hartley Sweeten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®