From: Simon Oosthoek <simon@margo.student.utwente.nl>
To: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.21-pre5
Date: Thu, 27 Feb 2003 11:19:12 +0100 [thread overview]
Message-ID: <20030227101912.GA4006@margo.student.utwente.nl> (raw)
In-Reply-To: <3E5DDCE7.2040100@linux.org.hk>
[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]
On Thu, Feb 27, 2003 at 05:39:51PM +0800, Ben Lau wrote:
> Hi,
>
> I have tried to compile the -pre5 with IEEE1394
> support and i got the following error:
>
> gcc -D__KERNEL__ -I/usr/src/2.4.21pre5/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386
> -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=raw1394 -c
> -o raw1394.o raw1394.c
> In file included from raw1394.c:50:
> raw1394.h:167: field `tq' has incomplete type
> raw1394.c: In function `__alloc_pending_request':
> raw1394.c:110: warning: implicit declaration of function `HPSB_INIT_WORK'
> raw1394.c:118: confused by earlier errors, bailing out
> make[2]: *** [raw1394.o] Error 1
> make[2]: Leaving directory `/usr/src/2.4.21pre5/drivers/ieee1394'
> make[1]: *** [_modsubdir_ieee1394] Error 2
> make[1]: Leaving directory `/usr/src/2.4.21pre5/drivers'
> make: *** [_mod_drivers] Error 2
>
> The definition of hpsb_queue_struct was missing
> in the -pre5. I found that it did exist on -pre4
>
> /usr/src/2.4.21pre4/drivers/ieee1394/ieee1394_types.h:45:#define
> hpsb_queue_struct tq_struct
Same here...
here's a patch that should work to fix this.
Cheers
Simon
[-- Attachment #2: ieee1394.patch-2.4.21-pre5 --]
[-- Type: text/plain, Size: 1102 bytes --]
--- linux-2.4.21-pre5/drivers/ieee1394/ieee1394_types.h 2003-02-27 11:04:08.000000000 +0100
+++ linux-2.4.21-pre4-ac4/drivers/ieee1394/ieee1394_types.h 2003-02-17 20:37:10.000000000 +0100
@@ -10,6 +10,27 @@
#include <asm/byteorder.h>
+/* The great kdev_t changeover in 2.5.x */
+#include <linux/kdev_t.h>
+#ifndef minor
+#define minor(dev) MINOR(dev)
+#endif
+
+#ifndef __devexit_p
+#define __devexit_p(x) x
+#endif
+
+#include <linux/spinlock.h>
+
+#ifndef list_for_each_safe
+#define list_for_each_safe(pos, n, head) \
+ for (pos = (head)->next, n = pos->next; pos != (head); \
+ pos = n, n = pos->next)
+
+#endif
+
+#define pte_offset_kernel pte_offset
+
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
@@ -19,6 +40,15 @@
#endif
+/* Use task queue */
+#include <linux/tqueue.h>
+#define hpsb_queue_struct tq_struct
+#define hpsb_queue_list list
+#define hpsb_schedule_work(x) schedule_task(x)
+#define HPSB_INIT_WORK(x,y,z) INIT_TQUEUE(x,y,z)
+#define HPSB_PREPARE_WORK(x,y,z) PREPARE_TQUEUE(x,y,z)
+
+
typedef u32 quadlet_t;
typedef u64 octlet_t;
typedef u16 nodeid_t;
next prev parent reply other threads:[~2003-02-27 10:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-27 6:14 Marcelo Tosatti
2003-02-27 8:24 ` Christoph Hellwig
2003-02-27 8:32 ` Adrian Bunk
2003-02-27 12:40 ` Ben Collins
2003-02-27 19:22 ` ajoshi
2003-02-27 19:35 ` Ben Collins
2003-03-11 23:39 ` Marcelo Tosatti
2003-02-27 8:53 ` Christoph Hellwig
2003-02-27 9:39 ` Ben Lau
2003-02-27 10:19 ` Simon Oosthoek [this message]
2003-02-27 10:48 ` Benjamin Herrenschmidt
2003-02-27 11:43 ` Simon Oosthoek
2003-02-28 5:46 ` Ben Lau
2003-02-27 23:26 ` [patch] 2.4.21-pre5: fix Auerswald compile Adrian Bunk
2003-02-28 7:47 ` Wolfgang Mües
2003-03-05 22:02 ` Greg KH
2003-03-07 2:47 ` Linux 2.4.21-pre5 J.A. Magallon
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=20030227101912.GA4006@margo.student.utwente.nl \
--to=simon@margo.student.utwente.nl \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®