linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs/disk-io.c: quiet sparse noise; local functions should be static
@ 2011-09-10  0:21 H Hartley Sweeten
  0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2011-09-10  0:21 UTC (permalink / raw)
  To: Linux Kernel; +Cc: linux-btrfs, chris.mason

Local functions should be marked static. This quiets the following
sparse noise:

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

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Chris Mason <chris.mason@oracle.com>
linux-btrfs@vger.kernel.org

---

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 64b1c07..573669d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2322,7 +2322,7 @@ static int write_dev_supers(struct btrfs_device *device,
 	return errors < i ? 0 : -1;
 }
 
-int write_all_supers(struct btrfs_root *root, int max_mirrors)
+static int write_all_supers(struct btrfs_root *root, int max_mirrors)
 {
 	struct list_head *head;
 	struct btrfs_device *dev;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-10  0:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-10  0:21 [PATCH] btrfs/disk-io.c: quiet sparse noise; local functions should be 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;
as well as URLs for NNTP newsgroup(s).