From: Helge Hafting <helgehaf@aitel.hist.no>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, alexh@ihatent.com
Subject: [PATCH] Re: 2.5.69-mm4 undefined active_load_balance
Date: Tue, 13 May 2003 16:05:18 +0200 [thread overview]
Message-ID: <3EC0FB9E.8030305@aitel.hist.no> (raw)
In-Reply-To: <20030513020414.5ca41817.akpm@digeo.com>
Andrew Morton wrote:
> Helge Hafting <helgehaf@aitel.hist.no> wrote:
>
>>>: undefined reference to `active_load_balance'
>>
>> I got this one too
>
>
> I don't think so. Please do a `make clean' and try again.
>
You don't think so? How come?
Note that this was a clean install, I unpacked
the 2.5.69 tarball, applied 2.5.69-mm3, copied a
.config file, and ran "make oldconfig; make bzImage"
I tried make clean, and still get
kernel/built-in.o(.text+0x102a): In function `schedule':
: undefined reference to `active_load_balance'
drivers/built-in.o(.text+0x7d534): In function `fb_prepare_logo':
: undefined reference to `find_logo'
make: *** [.tmp_vmlinux1] Error 1
During compile, I got a warning that active_load_balance
was implicitly declared or some such.
Looking at sched.c I see that
active_load_balance is declared if CONFIG_SHARE_RUNQUEUE
is not set.
Later, if we have CONFIG_SMP _and_ CONFIG_SHARE_RUNQUEUE
we get a longer version of active_load_balance
So, active_load_balance doesn't exist if
CONFIG_SHARE_RUNQUEUE is set on a non-smp machine.
but schedule() later do a call to active_load_balance
that isn't masked by any #ifdef. This machine isn't SMP,
and CONFIG_SHARE_RUNQUEUE gets set - so it goes wrong.
The problem seems to be in sched.h, which says:
/*
* Is there a way to do this via Kconfig?
*/
#ifdef CONFIG_NR_SIBLINGS_2
# define CONFIG_NR_SIBLINGS 2
#elif defined(CONFIG_NR_SIBLINGS_4)
# define CONFIG_NR_SIBLINGS 4
#else
# define CONFIG_NR_SIBLINGS 0
#endif
#ifdef CONFIG_NR_SIBLINGS
# define CONFIG_SHARE_RUNQUEUE 1
#else
# define CONFIG_SHARE_RUNQUEUE 0
#endif
I get
# define CONFIG_NR_SIBLINGS 0
and the #ifdef CONFIG_NR_SIBLINGS
test triggers because something #defined
to 0 is #defined. I guess this is the problem,
and if so, changing the #ifdef CONFIG_NR_SIBLINGS
to #if CONFIG_NR_SIBLINGS should do the trick.
A patch for this is at the end of the message.
>
>>, as well as:
>> drivers/built-in.o(.text+0x7d534): In function `fb_prepare_logo':
>> : undefined reference to `find_logo'
>
>
> Is that thing _still_ there?
>
> Does this fix?
[...]
Yes, thanks!
Patch for the active_load_balance problem.
It is not yet tested, it is compiling right now
and that takes time.
Helge Hafting
--- sched.h.orig 2003-05-13 15:45:17.000000000 +0200
+++ sched.h 2003-05-13 15:45:43.000000000 +0200
@@ -158,7 +158,7 @@
# define CONFIG_NR_SIBLINGS 0
#endif
-#ifdef CONFIG_NR_SIBLINGS
+#if CONFIG_NR_SIBLINGS
# define CONFIG_SHARE_RUNQUEUE 1
#else
# define CONFIG_SHARE_RUNQUEUE 0
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2003-05-13 14:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-13 5:55 2.5.69-mm4 Andrew Morton
2003-05-13 7:02 ` 2.5.69-mm4 Alexander Hoogerhuis
2003-05-13 7:11 ` 2.5.69-mm4 Andrew Morton
2003-05-13 8:00 ` 2.5.69-mm4 Alexander Hoogerhuis
2003-05-13 8:55 ` 2.5.69-mm4 Helge Hafting
2003-05-13 9:04 ` 2.5.69-mm4 Andrew Morton
2003-05-13 14:05 ` Helge Hafting [this message]
2003-05-13 16:27 ` [PATCH] Re: 2.5.69-mm4 undefined active_load_balance Helge Hafting
2003-05-13 16:40 ` Helge Hafting
2003-05-13 19:38 ` William Lee Irwin III
2003-05-13 21:31 ` Helge Hafting
2003-05-13 21:35 ` William Lee Irwin III
2003-05-13 11:04 ` 2.5.69-mm4 Alexander Hoogerhuis
2003-05-13 12:43 ` 2.5.69-mm4 Ed Tomlinson
2003-05-13 20:10 ` 2.5.69-mm4 Andrew Morton
2003-05-13 17:08 ` 2.5.69-mm4 smp crash, seems fs/vm related Helge Hafting
2003-05-13 20:17 ` 2.5.69-mm4 William Lee Irwin III
2003-05-13 20:25 ` 2.5.69-mm4 William Lee Irwin III
2003-05-14 0:15 ` 2.5.69-mm4 William Lee Irwin III
2003-05-14 0:46 ` 2.5.69-mm4 David Mosberger
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=3EC0FB9E.8030305@aitel.hist.no \
--to=helgehaf@aitel.hist.no \
--cc=akpm@digeo.com \
--cc=alexh@ihatent.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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