public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: "'linux-xfs@oss.sgi.com'" <linux-xfs@oss.sgi.com>
Cc: Mark Tinguely <tinguely@sgi.com>
Subject: [PATCH] xfs_repair: add prototype for alloc_ex_data()
Date: Tue, 20 Aug 2013 18:14:17 -0500	[thread overview]
Message-ID: <5213F849.7080308@redhat.com> (raw)

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@redhat.com>
---

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.
  */

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

             reply	other threads:[~2013-08-20 23:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 23:14 Eric Sandeen [this message]
2013-08-21  0:07 ` [PATCH] xfs_repair: add prototype for alloc_ex_data() Dave Chinner
2013-08-21 14:28 ` Mark Tinguely
2013-08-21 15:28   ` Eric Sandeen
2013-08-21 17:14     ` Rich Johnston
2013-08-21 17:01 ` Rich Johnston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5213F849.7080308@redhat.com \
    --to=sandeen@redhat.com \
    --cc=linux-xfs@oss.sgi.com \
    --cc=tinguely@sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox