[2.5 patch] fs/smbfs/sock.c mut include linux/tqueue.h

From: Adrian Bunk (bunk@fs.tum.de)
Date: Wed Jun 19 2002 - 02:20:36 EST


Hi,

in 2.5.23 tq_struct moved from sched.h to tqueue.h. This caused the
following compile error:

<-- snip -->

...
  gcc -Wp,-MD,./.sock.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.23-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fomit-frame-pointer
 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=k6 -nostdinc -iwithprefix include -DSMBFS_PARANOIA -DKBUILD_BASENAME=sock
-c -o sock.o sock.c
sock.c:87: field `cb' has incomplete type
sock.c: In function `smb_data_ready':
sock.c:173: warning: implicit declaration of function `schedule_task'
make[2]: *** [sock.o] Error 1
make[2]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.23-full/fs/smbfs'

<-- snip -->

The fix is simple:

--- fs/smbfs/sock.c.old Wed Jun 19 09:14:25 2002
+++ fs/smbfs/sock.c Wed Jun 19 09:14:53 2002
@@ -18,6 +18,7 @@
 #include <linux/mm.h>
 #include <linux/netdevice.h>
 #include <linux/smp_lock.h>
+#include <linux/tqueue.h>
 #include <net/scm.h>
 #include <net/ip.h>

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:18 EST