Re: [ANN] Squashfs 3.3 released

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Phillip Lougher <phillip@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>
Date: Monday, November 5, 2007 - 7:19 pm

Phillip Lougher wrote:

Thanks Phillip.

A tiny bug[fix] I always forgot to send...  In fs/squashfs/inode.c,
constants TASK_UNINTERRUPTIBLE and TASK_INTERRUPTIBLE are used, but
they aren't sometimes defined (declared in linux/sched.h):

  CC [M]  fs/squashfs/inode.o
fs/squashfs/inode.c: In function 'squashfs_get_cached_block':
fs/squashfs/inode.c:367: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
fs/squashfs/inode.c:367: error: (Each undeclared identifier is reported only once
fs/squashfs/inode.c:367: error: for each function it appears in.)
fs/squashfs/inode.c:367: warning: implicit declaration of function 'schedule'
fs/squashfs/inode.c:404: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
fs/squashfs/inode.c: In function 'release_cached_fragment':
fs/squashfs/inode.c:499: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
fs/squashfs/inode.c:499: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
fs/squashfs/inode.c: In function 'get_cached_fragment':
fs/squashfs/inode.c:522: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
fs/squashfs/inode.c:559: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

I'm not exactly sure which config option is "at blame"
(this is an i486-based UP generic-hardware config), but
I'm not interested to know, either.  The following
trivial patch fixes it once for all.

--- linux-2.6.22.orig/fs/squashfs/inode.c       2007-07-12 14:57:22.000000000 +0400
+++ linux-2.6.22/fs/squashfs/inode.c    2007-07-12 14:57:53.000000000 +0400
@@ -31,6 +31,7 @@
 #include <linux/vfs.h>
 #include <linux/vmalloc.h>
+#include <linux/sched.h>
 #include <linux/smp_lock.h>

 #include "squashfs.h"


It was needed for v3.2 too.

Thanks.

/mjt
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANN] Squashfs 3.3 released, Phillip Lougher, (Mon Nov 5, 7:13 am)
Re: [ANN] Squashfs 3.3 released, Michael Tokarev, (Mon Nov 5, 7:19 pm)
Re: [ANN] Squashfs 3.3 released, Phillip Lougher, (Wed Nov 7, 12:06 pm)
Re: [ANN] Squashfs 3.3 released, maximilian attems, (Mon Nov 5, 7:56 am)
Re: [ANN] Squashfs 3.3 released, Phillip Lougher, (Wed Nov 7, 12:32 pm)
Re: [ANN] Squashfs 3.3 released, Dave Jones, (Tue Nov 20, 7:50 pm)
Re: [ANN] Squashfs 3.3 released, Phillip Lougher, (Wed Nov 21, 10:02 am)
Re: [ANN] Squashfs 3.3 released, Christoph Hellwig, (Wed Nov 21, 10:48 am)
Re: [ANN] Squashfs 3.3 released, Phillip Lougher, (Wed Nov 21, 11:00 am)