mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] fix 2.4.18-pre8 compile error in cosa.c
@ 2002-02-05 14:56 Adrian Bunk
  2002-02-05 15:00 ` Jan Kasprzak
  2002-02-05 18:12 ` Marcelo Tosatti
  0 siblings, 2 replies; 3+ messages in thread
From: Adrian Bunk @ 2002-02-05 14:56 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-kernel, Jan Yenya Kasprzak

Hi Marcelo,

the patch below fixes the following compile error in 2.4.18-pre8:

<--  snip  -->

gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=k6   -DKBUILD_BASENAME=cosa  -c -o cosa.o cosa.c
cosa.c:109: parse error

<--  snip  -->

Line 109 is
  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)

I was first thinking about including linux/version.h to fix it but since
in another place where there's in the cosa.c in kernel 2.2.20 a check for
2.2 kernels the code for the older kernels was already removed in the
cosa.c in kernel 2.4.18-pre8 I assume that it's no longer intended to use
this version of the file in 2.2 kernels.

--- drivers/net/wan/cosa.c.old	Tue Feb  5 15:37:20 2002
+++ drivers/net/wan/cosa.c	Tue Feb  5 15:47:37 2002
@@ -105,13 +105,6 @@
 #include <net/syncppp.h>
 #include "cosa.h"

-/* Linux version stuff */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)
-typedef struct wait_queue *wait_queue_head_t;
-#define DECLARE_WAITQUEUE(wait, current) \
-	struct wait_queue wait = { current, NULL }
-#endif
-
 /* Maximum length of the identification string. */
 #define COSA_MAX_ID_STRING	128


cu
Adrian




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] fix 2.4.18-pre8 compile error in cosa.c
  2002-02-05 14:56 [patch] fix 2.4.18-pre8 compile error in cosa.c Adrian Bunk
@ 2002-02-05 15:00 ` Jan Kasprzak
  2002-02-05 18:12 ` Marcelo Tosatti
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Kasprzak @ 2002-02-05 15:00 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Adrian Bunk, linux-kernel

Adrian Bunk wrote:
: the patch below fixes the following compile error in 2.4.18-pre8:

	Looks OK, please apply.

: --- drivers/net/wan/cosa.c.old	Tue Feb  5 15:37:20 2002
: +++ drivers/net/wan/cosa.c	Tue Feb  5 15:47:37 2002
: @@ -105,13 +105,6 @@
:  #include <net/syncppp.h>
:  #include "cosa.h"
: 
: -/* Linux version stuff */
: -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)
: -typedef struct wait_queue *wait_queue_head_t;
: -#define DECLARE_WAITQUEUE(wait, current) \
: -	struct wait_queue wait = { current, NULL }
: -#endif
: -
:  /* Maximum length of the identification string. */
:  #define COSA_MAX_ID_STRING	128

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|\    As anyone can tell you trying to force things on Linux developers   /|
|\\   generally works out pretty badly.              (Alan Cox in lkml)  //|

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] fix 2.4.18-pre8 compile error in cosa.c
  2002-02-05 14:56 [patch] fix 2.4.18-pre8 compile error in cosa.c Adrian Bunk
  2002-02-05 15:00 ` Jan Kasprzak
@ 2002-02-05 18:12 ` Marcelo Tosatti
  1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2002-02-05 18:12 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel, Jan Yenya Kasprzak



On Tue, 5 Feb 2002, Adrian Bunk wrote:

> Hi Marcelo,
> 
> the patch below fixes the following compile error in 2.4.18-pre8:

Hi Adrian,

Patch applied.

Thanks


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-05 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-05 14:56 [patch] fix 2.4.18-pre8 compile error in cosa.c Adrian Bunk
2002-02-05 15:00 ` Jan Kasprzak
2002-02-05 18:12 ` Marcelo Tosatti

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®