linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: paulsch@us.ibm.com, <sullivam@us.ibm.com>, Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org
Subject: [2.5 patch] tp3780i.c must include sched.h
Date: Wed, 28 Aug 2002 18:55:59 +0200 (CEST)	[thread overview]
Message-ID: <Pine.NEB.4.44.0208281846130.2879-100000@mimas.fachschaften.tu-muenchen.de> (raw)

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



                 reply	other threads:[~2002-08-28 16:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=Pine.NEB.4.44.0208281846130.2879-100000@mimas.fachschaften.tu-muenchen.de \
    --to=bunk@fs.tum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulsch@us.ibm.com \
    --cc=sullivam@us.ibm.com \
    /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;
as well as URLs for NNTP newsgroup(s).