[Top] [All Lists]

[PATCH] xfs_repair: add prototype for alloc_ex_data()

To: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
Subject: [PATCH] xfs_repair: add prototype for alloc_ex_data()
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 20 Aug 2013 18:14:17 -0500
Cc: Mark Tinguely <tinguely@xxxxxxx>
Delivered-to: linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
3ac87fbf xfsprogs: fix inode crash in xfs_repair

un-static'd alloc_ex_data and used it in phase6.c,
but didn't put a prototype in a header, so:

 phase6.c: In function ‘mk_orphanage’:
 phase6.c:943: warning: implicit declaration of function ‘alloc_ex_data’

Fix it...

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>

diff --git a/repair/incore.h b/repair/incore.h
index 8a578b5..38caa6d 100644
--- a/repair/incore.h
+++ b/repair/incore.h
@@ -483,6 +483,11 @@ void               set_inode_parent(ino_tree_node_t *irec, 
int ino_offset,
 xfs_ino_t      get_inode_parent(ino_tree_node_t *irec, int ino_offset);
+ * Allocate extra inode data
+ */
+void           alloc_ex_data(ino_tree_node_t *irec);
  * bmap cursor for tracking and fixing bmap btrees.  All xfs btrees number
  * the levels with 0 being the leaf and every level up being 1 greater.

<Prev in Thread] Current Thread [Next in Thread>