The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [2.5 patch] tiglusb.c must include version.h
@ 2002-08-11 12:20 Adrian Bunk
  2002-08-12  0:12 ` Brad Hards
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2002-08-11 12:20 UTC (permalink / raw)
  To: Julien BLACHE, greg; +Cc: linux-kernel


Compile error in 2.5.31:

<--  snip  -->

...
  gcc -Wp,-MD,./.tiglusb.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.31-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    -DKBUILD_BASENAME=tiglusb   -c
-o tiglusb.o tiglusb.c
tiglusb.c:44: parse error
make[3]: *** [tiglusb.o] Error 1
make[3]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.31-full/drivers/usb/misc'

<--  snip  -->

line 44 is:
  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)


The fix is simple:

--- drivers/usb/misc/tiglusb.c~	2002-08-11 03:41:17.000000000 +0200
+++ drivers/usb/misc/tiglusb.c	2002-08-11 14:17:13.000000000 +0200
@@ -37,6 +37,7 @@
 #include <linux/usb.h>
 #include <linux/smp_lock.h>
 #include <linux/devfs_fs_kernel.h>
+#include <linux/version.h>

 #include <linux/ticable.h>
 #include "tiglusb.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



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

end of thread, other threads:[~2002-08-12 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-11 12:20 [2.5 patch] tiglusb.c must include version.h Adrian Bunk
2002-08-12  0:12 ` Brad Hards
2002-08-12  8:28   ` Julien BLACHE
2002-08-12 17:30     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox