public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.5 patch] drivers/usb/class/usb-midi.c must include linux/version.h
@ 2002-06-17 15:11 Adrian Bunk
  2002-06-17 15:20 ` Greg KH
  2002-06-18 12:08 ` Brad Hards
  0 siblings, 2 replies; 3+ messages in thread
From: Adrian Bunk @ 2002-06-17 15:11 UTC (permalink / raw)
  To: Linus Torvalds, greg, NAGANO Daisuke; +Cc: Kernel Mailing List

Hi,

I got the following compile error in 2.5.22:

<--  snip  -->

...
  gcc -Wp,-MD,./.usb-midi.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2
.5.22-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=usb_midi   -c -o
usb-midi.o usb-midi.c
usb-midi.c:109: parse error
make[3]: *** [usb-midi.o] Error 1
make[3]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.22-full/drivers/usb/class'

<--  snip  -->


Line 109 is:
  #if LINUX_VERSION_CODE  >= KERNEL_VERSION(2,4,14)


The fix is simple:

--- drivers/usb/class/usb-midi.c~	Mon Jun 17 04:31:24 2002
+++ drivers/usb/class/usb-midi.c	Mon Jun 17 16:36:36 2002
@@ -38,6 +38,7 @@
 #include <linux/poll.h>
 #include <linux/sound.h>
 #include <linux/init.h>
+#include <linux/version.h>
 #include <asm/semaphore.h>

 /** This declaration is missing from linux/usb.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] 3+ messages in thread

end of thread, other threads:[~2002-06-18 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 15:11 [2.5 patch] drivers/usb/class/usb-midi.c must include linux/version.h Adrian Bunk
2002-06-17 15:20 ` Greg KH
2002-06-18 12:08 ` Brad Hards

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