* [PATCH] ext4: fix build failure if DX_DEBUG
@ 2008-06-11 8:43 Li Zefan
2008-06-11 16:03 ` Eric Sandeen
0 siblings, 1 reply; 4+ messages in thread
From: Li Zefan @ 2008-06-11 8:43 UTC (permalink / raw)
To: Theodore Ts'o, Mingming Cao; +Cc: linux-ext4
I got build failure when I turned on DX_DEBUG.
fs/ext4/namei.c: In function ‘dx_show_leaf’:
fs/ext4/namei.c:291: error: implicit declaration of function ‘ext4_next_entry’
fs/ext4/namei.c:291: warning: assignment makes pointer from integer without a cast
Move the definition of ext4_next_entry() upwards just as ext3 code.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
fs/ext4/namei.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index ab16bea..4315fd7 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -183,6 +183,16 @@ static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
struct inode *inode);
/*
+ * p is at least 6 bytes before the end of page
+ */
+static inline struct ext4_dir_entry_2 *
+ext4_next_entry(struct ext4_dir_entry_2 *p)
+{
+ return (struct ext4_dir_entry_2 *)((char *)p +
+ ext4_rec_len_from_disk(p->rec_len));
+}
+
+/*
* Future: use high four bits of block for coalesce-on-delete flags
* Mask them off for now.
*/
@@ -554,15 +564,6 @@ static int ext4_htree_next_block(struct inode *dir, __u32 hash,
/*
- * p is at least 6 bytes before the end of page
- */
-static inline struct ext4_dir_entry_2 *ext4_next_entry(struct ext4_dir_entry_2 *p)
-{
- return (struct ext4_dir_entry_2 *)((char *)p +
- ext4_rec_len_from_disk(p->rec_len));
-}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ext4: fix build failure if DX_DEBUG
2008-06-11 8:43 [PATCH] ext4: fix build failure if DX_DEBUG Li Zefan
@ 2008-06-11 16:03 ` Eric Sandeen
2008-07-06 4:07 ` Theodore Tso
0 siblings, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2008-06-11 16:03 UTC (permalink / raw)
To: Li Zefan; +Cc: Theodore Ts'o, Mingming Cao, linux-ext4
Li Zefan wrote:
> I got build failure when I turned on DX_DEBUG.
>
> fs/ext4/namei.c: In function ‘dx_show_leaf’:
> fs/ext4/namei.c:291: error: implicit declaration of function ‘ext4_next_entry’
> fs/ext4/namei.c:291: warning: assignment makes pointer from integer without a cast
>
> Move the definition of ext4_next_entry() upwards just as ext3 code.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Thanks, I added this to the bugfix portion of the ext4 patch queue.
-Eric
> ---
> fs/ext4/namei.c | 19 ++++++++++---------
> 1 files changed, 10 insertions(+), 9 deletions(-)
>
> diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
> index ab16bea..4315fd7 100644
> --- a/fs/ext4/namei.c
> +++ b/fs/ext4/namei.c
> @@ -183,6 +183,16 @@ static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
> struct inode *inode);
>
> /*
> + * p is at least 6 bytes before the end of page
> + */
> +static inline struct ext4_dir_entry_2 *
> +ext4_next_entry(struct ext4_dir_entry_2 *p)
> +{
> + return (struct ext4_dir_entry_2 *)((char *)p +
> + ext4_rec_len_from_disk(p->rec_len));
> +}
> +
> +/*
> * Future: use high four bits of block for coalesce-on-delete flags
> * Mask them off for now.
> */
> @@ -554,15 +564,6 @@ static int ext4_htree_next_block(struct inode *dir, __u32 hash,
>
>
> /*
> - * p is at least 6 bytes before the end of page
> - */
> -static inline struct ext4_dir_entry_2 *ext4_next_entry(struct ext4_dir_entry_2 *p)
> -{
> - return (struct ext4_dir_entry_2 *)((char *)p +
> - ext4_rec_len_from_disk(p->rec_len));
> -}
> -
> -/*
> * This function fills a red-black tree with information from a
> * directory block. It returns the number directory entries loaded
> * into the tree. If there is an error it is returned in err.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ext4: fix build failure if DX_DEBUG
2008-06-11 16:03 ` Eric Sandeen
@ 2008-07-06 4:07 ` Theodore Tso
2008-07-06 4:10 ` Eric Sandeen
0 siblings, 1 reply; 4+ messages in thread
From: Theodore Tso @ 2008-07-06 4:07 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Li Zefan, Mingming Cao, linux-ext4
On Wed, Jun 11, 2008 at 11:03:39AM -0500, Eric Sandeen wrote:
> Li Zefan wrote:
> > I got build failure when I turned on DX_DEBUG.
> >
> > fs/ext4/namei.c: In function ‘dx_show_leaf’:
> > fs/ext4/namei.c:291: error: implicit declaration of function ‘ext4_next_entry’
> > fs/ext4/namei.c:291: warning: assignment makes pointer from integer without a cast
> >
> > Move the definition of ext4_next_entry() upwards just as ext3 code.
> >
> > Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
>
> Thanks, I added this to the bugfix portion of the ext4 patch queue.
But you forgot to edit the series file. :-)
I've fixed in the patch queue, and it will be in the 2.6.26-rc9-ext4-1
patch drop.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ext4: fix build failure if DX_DEBUG
2008-07-06 4:07 ` Theodore Tso
@ 2008-07-06 4:10 ` Eric Sandeen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2008-07-06 4:10 UTC (permalink / raw)
To: Theodore Tso; +Cc: Li Zefan, Mingming Cao, linux-ext4
Theodore Tso wrote:
> On Wed, Jun 11, 2008 at 11:03:39AM -0500, Eric Sandeen wrote:
>> Li Zefan wrote:
>>> I got build failure when I turned on DX_DEBUG.
>>>
>>> fs/ext4/namei.c: In function ‘dx_show_leaf’:
>>> fs/ext4/namei.c:291: error: implicit declaration of function ‘ext4_next_entry’
>>> fs/ext4/namei.c:291: warning: assignment makes pointer from integer without a cast
>>>
>>> Move the definition of ext4_next_entry() upwards just as ext3 code.
>>>
>>> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
>> Thanks, I added this to the bugfix portion of the ext4 patch queue.
>
> But you forgot to edit the series file. :-)
>
> I've fixed in the patch queue, and it will be in the 2.6.26-rc9-ext4-1
> patch drop.
*sigh*
Thanks...
-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-06 4:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 8:43 [PATCH] ext4: fix build failure if DX_DEBUG Li Zefan
2008-06-11 16:03 ` Eric Sandeen
2008-07-06 4:07 ` Theodore Tso
2008-07-06 4:10 ` Eric Sandeen
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).