[2.6 patch] fix the JFFS2_FS_DEBUG=2 compilation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Adrian Bunk
Date: Saturday, January 13, 2007 - 3:51 am

On Fri, Jan 12, 2007 at 09:05:37PM +0000, Russell King wrote:

Thanks for the report, patch below.

cu
Adrian


<--  snip  -->


This patch fixes the following CONFIG_JFFS2_FS_DEBUG=2 compile 
breakage introduced by commit 914e26379decf1fd984b22e51fd2e4209b7a7f1b:

<--  snip  -->

...
fs/jffs2/malloc.c: In function 'jffs2_alloc_full_dirent':
fs/jffs2/malloc.c:126: error: dereferencing pointer to incomplete type
fs/jffs2/malloc.c: In function 'jffs2_free_full_dirent':
fs/jffs2/malloc.c:132: error: dereferencing pointer to incomplete type
fs/jffs2/malloc.c: In function 'jffs2_alloc_full_dnode':
fs/jffs2/malloc.c:140: error: dereferencing pointer to incomplete type
fs/jffs2/malloc.c: In function 'jffs2_free_full_dnode':
fs/jffs2/malloc.c:146: error: dereferencing pointer to incomplete type
fs/jffs2/malloc.c: In function 'jffs2_alloc_raw_dirent':
fs/jffs2/malloc.c:154: error: dereferencing pointer to incomplete type
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>

commit 3a7722fc440d5214a718bc4b90b7691c04a1af67
Author: Adrian Bunk <bunk@stusta.de>
Date:   Sat Jan 13 11:50:44 2007 +0100

    sadf

diff --git a/fs/jffs2/debug.h b/fs/jffs2/debug.h
index 3daf3bc..f89c85d 100644
--- a/fs/jffs2/debug.h
+++ b/fs/jffs2/debug.h
@@ -13,6 +13,7 @@
 #ifndef _JFFS2_DEBUG_H_
 #define _JFFS2_DEBUG_H_
 
+#include <linux/sched.h>
 
 #ifndef CONFIG_JFFS2_FS_DEBUG
 #define CONFIG_JFFS2_FS_DEBUG 0

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Build regression since 2.6.19-git7: jffs2, Russell King, (Fri Jan 12, 2:05 pm)
[2.6 patch] fix the JFFS2_FS_DEBUG=2 compilation, Adrian Bunk, (Sat Jan 13, 3:51 am)
Re: [2.6 patch] fix the JFFS2_FS_DEBUG=2 compilation, David Woodhouse, (Sat Jan 13, 4:29 am)