linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.5 patch] tp3780i.c must include sched.h
@ 2002-08-28 16:55 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2002-08-28 16:55 UTC (permalink / raw)
  To: paulsch, sullivam, Ingo Molnar; +Cc: linux-kernel

Hi,

there's the following compile error in kernel 2.5.32 (caused by Ingo's
recent changes to ptrace.h):

<--  snip  -->

...
  gcc -Wp,-MD,./.tp3780i.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.
5.32-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  -DMW_TRACE  -DKBUILD_BASENAME=tp3780i
-c -o tp3780i.o tp3780i.c
In file included from tp3780i.c:51:
/home/bunk/linux/kernel-2.5/linux-2.5.32-full/include/linux/ptrace.h:28:
warning
: `struct task_struct' declared inside parameter list
/home/bunk/linux/kernel-2.5/linux-2.5.32-full/include/linux/ptrace.h:28:
warning
: its scope is only this definition or declaration, which is probably not
what you want.
...
make[3]: *** [tp3780i.o] Error 1
make[3]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.32-full/drivers/char/mwave'

<--  snip  -->


The following fixes it:


--- drivers/char/mwave/tp3780i.c.old	2002-08-28 17:56:24.000000000 +0200
+++ drivers/char/mwave/tp3780i.c	2002-08-28 17:58:10.000000000 +0200
@@ -48,6 +48,7 @@

 #include <linux/version.h>
 #include <linux/kernel.h>
+#include <linux/sched.h>
 #include <linux/ptrace.h>
 #include <linux/ioport.h>
 #include <asm/io.h>


cu
Adrian



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-28 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-28 16:55 [2.5 patch] tp3780i.c must include sched.h Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).