mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@mindspring.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexey Dobriyan <adobriyan@sw.ru>,
	dhowells@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] frv: fix fallout from "remove sched.h from mm.h" patch
Date: Fri, 29 Jun 2007 09:10:52 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0706290904420.13877@localhost.localdomain> (raw)
In-Reply-To: <20070628151257.7a03e81b.akpm@linux-foundation.org>

On Thu, 28 Jun 2007, Andrew Morton wrote:

> On Thu, 28 Jun 2007 18:09:21 +0400
> Alexey Dobriyan <adobriyan@sw.ru> wrote:
>
> > Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
> > ---
> >
> >  include/asm-frv/pgtable.h |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- a/include/asm-frv/pgtable.h
> > +++ b/include/asm-frv/pgtable.h
> > @@ -25,7 +25,7 @@
> >  #include <linux/slab.h>
> >  #include <linux/list.h>
> >  #include <linux/spinlock.h>
> > -struct mm_struct;
> > +#include <linux/sched.h>
> >  struct vm_area_struct;
> >  #endif
> >
>
> Please provide changelogs.
>
> I assume this patch fixes some build error or something.

  i actually asked about this on either the janitors or newbies list
the other day -- one of the early examples from the LDD3 device
drivers book which built fine all this time suddenly stopped building,
until i explicitly included <linux/sched.h> to be able to dereference
a pointer to "task_struct":

/home/rpjday/AMD/k/topics/0_hi/hi1.c:15: error: dereferencing pointer to incomplete type
/home/rpjday/AMD/k/topics/0_hi/hi1.c:16: error: dereferencing pointer to incomplete type

  clearly, until now, that header file was being picked up
*somewhere*, but not now.  so i'm guessing there's going to be code
all over the place that suddenly needs to add that inclusion of
sched.h.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

  reply	other threads:[~2007-06-29 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-28 14:09 Alexey Dobriyan
2007-06-28 22:12 ` Andrew Morton
2007-06-29 13:10   ` Robert P. J. Day [this message]
2007-06-29 14:58     ` Alexey Dobriyan
2007-06-29 15:34       ` Robert P. J. Day
2007-06-29 20:51     ` Andrew Morton

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.LNX.4.64.0706290904420.13877@localhost.localdomain \
    --to=rpjday@mindspring.com \
    --cc=adobriyan@sw.ru \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®