mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Teck Choon Giam <giamteckchoon@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	torvalds@linux-foundation.org, Jiri Slaby <jslaby@suse.cz>,
	stable@vger.kernel.org, lwn@lwn.net
Subject: Re: Linux 3.2.50
Date: Sat, 03 Aug 2013 12:01:25 +0200	[thread overview]
Message-ID: <1375524085.32254.26.camel@deadeye.wl.decadent.org.uk> (raw)
In-Reply-To: <CAEwRVpPdWLoZHq6Q94zVoPwG65e=TVUR6HyUJ1ZyvL6+8oCpgw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]

On Sat, 2013-08-03 at 09:09 +0800, Teck Choon Giam wrote:
[...]
> I am getting the following error while trying to compile for 32bit in
> Scientific Linux 6.4:
> 
> drivers/net/ifb.c: In function 'ifb_init_module':
> drivers/net/ifb.c:298: error: implicit declaration of function 'cond_resched'
> make[2]: *** [drivers/net/ifb.o] Error 1
> 
> Missing include of linux/sched.h in drivers/net/ifb.c file?
> 
> I tried the following patch and it does compile successfully:
> 
> --- a/drivers/net/ifb.c    2013-08-03 04:15:12.000000000 +0800
> +++ b/drivers/net/ifb.c 2013-08-03 08:43:29.040492584 +0800
> @@ -34,6 +34,7 @@
>  #include <linux/init.h>
>  #include <linux/interrupt.h>
>  #include <linux/moduleparam.h>
> +#include <linux/sched.h>
>  #include <net/pkt_sched.h>
>  #include <net/net_namespace.h>
> 
> 
> FYI and comment please.

Yes I think that's the right change.  Linux 3.0.88-rc1 had the same
problem and I should have remembered this was needed.

Ben.

-- 
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      reply	other threads:[~2013-08-03 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02 21:50 Ben Hutchings
2013-08-03  1:09 ` Teck Choon Giam
2013-08-03 10:01   ` Ben Hutchings [this message]

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=1375524085.32254.26.camel@deadeye.wl.decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=akpm@linux-foundation.org \
    --cc=giamteckchoon@gmail.com \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lwn@lwn.net \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.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®