Skip to contentSkip to conversation

btrfs/disk-io.c: quiet sparse noise; local functions should be static

PATCH New H Hartley Sweeten 1 participant 1 message Sep 10, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs/disk-io.c: quiet sparse noise; local functions should be static

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

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

[email protected]

---

fs/btrfs/disk-io.c +1 -1
index 64b1c07..573669d 100644
@@ -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;