From: Rusty Russell <rusty@rustcorp.com.au>
To: "Américo Wang" <xiyou.wangcong@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>,
Jan Beulich <jbeulich@novell.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] module: Fix up CONFIG_KALLSYMS=n build.
Date: Fri, 25 Sep 2009 17:24:20 +0930 [thread overview]
Message-ID: <200909251724.21416.rusty@rustcorp.com.au> (raw)
In-Reply-To: <2375c9f90909242349u7daa7b1epae52fb0da6c92b7d@mail.gmail.com>
On Fri, 25 Sep 2009 04:19:22 pm Américo Wang wrote:
> On Fri, Sep 25, 2009 at 11:45 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> > Starting from commit 4a4962263f07d14660849ec134ee42b63e95ea9a
> > "reduce symbol table for loaded modules (v2)", the kernel/module.c build
> > is broken with CONFIG_KALLSYMS disabled.
> >
> > CC kernel/module.o
> > kernel/module.c:1995: warning: type defaults to 'int' in declaration of 'Elf_Hdr'
> > kernel/module.c:1995: error: expected ';', ',' or ')' before '*' token
> > kernel/module.c: In function 'load_module':
> > kernel/module.c:2203: error: 'strmap' undeclared (first use in this function)
> > kernel/module.c:2203: error: (Each undeclared identifier is reported only once
> > kernel/module.c:2203: error: for each function it appears in.)
> > kernel/module.c:2239: error: 'symoffs' undeclared (first use in this function)
> > kernel/module.c:2239: error: implicit declaration of function 'layout_symtab'
> > kernel/module.c:2240: error: 'stroffs' undeclared (first use in this function)
> > make[1]: *** [kernel/module.o] Error 1
> > make: *** [kernel/module.o] Error 2
> >
> > There are three different issues:
> >
> > - layout_symtab() takes a const Elf_Ehdr
> >
> > - layout_symtab() needs to return a value
> >
> > - symoffs/stroffs/strmap are referenced by the load_module() code
> > despite being ifdefed out, which seems unnecessary given the noop
> > behaviour of layout_symtab()/add_kallsyms() in the case of
> > CONFIG_KALLSYMS=n.
> >
> > Signed-off-by: Paul Mundt <lethal@linux-sh.org>
> > Cc: Jan Beulich <jbeulich@novell.com>
> > Cc: Rusty Russell <rusty@rustcorp.com.au>
>
> Indeed.
>
> Acked-by: WANG Cong <amwang@redhat.com>
And this completes the set:
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Thanks Paul!
Cheers,
Rusty.
next prev parent reply other threads:[~2009-09-25 7:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-25 3:45 [PATCH] module: Fix up CONFIG_KALLSYMS=n build Paul Mundt
2009-09-25 6:42 ` Jan Beulich
2009-09-25 6:49 ` Américo Wang
2009-09-25 7:54 ` Rusty Russell [this message]
2009-09-25 8:14 ` Sam Ravnborg
2009-09-27 7:03 ` Rusty Russell
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=200909251724.21416.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=akpm@linux-foundation.org \
--cc=jbeulich@novell.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.