From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <mhiramat@redhat.com>,
Len Brown <lenb@kernel.org>,
pm list <linux-pm@lists.linux-foundation.org>,
Pavel Machek <pavel@suse.cz>, LKML <linux-kernel@vger.kernel.org>,
Cheng Renquan <crquan@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 2/2] kprobes: check CONFIG_FREEZER instead of CONFIG_PM
Date: Tue, 10 Feb 2009 14:56:19 +0100 [thread overview]
Message-ID: <200902101456.20147.rjw@sisk.pl> (raw)
In-Reply-To: <20090210123734.GB21531@elte.hu>
On Tuesday 10 February 2009, Ingo Molnar wrote:
>
> * Masami Hiramatsu <mhiramat@redhat.com> wrote:
>
> > Ingo Molnar wrote:
> >> * Len Brown <lenb@kernel.org> wrote:
> >>
> >>>>> Check CONFIG_FREEZER instead of CONFIG_PM because kprobe booster
> >>>>> depends on freeze_processes() and thaw_processes() when CONFIG_PREEMPT=y.
> >>>>>
> >>>>> This fixes a linkage error which occurs when CONFIG_PREEMPT=y, CONFIG_PM=y
> >>>>> and CONFIG_FREEZER=n.
> >>>>>
> >>>>> Reported-by: Cheng Renquan <crquan@gmail.com>
> >>>>> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
> >>>>> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> >>>>> ---
> >>>>> arch/ia64/kernel/kprobes.c | 2 +-
> >>>>> arch/x86/kernel/kprobes.c | 2 +-
> >>>>> kernel/kprobes.c | 2 +-
> >>>>> 3 files changed, 3 insertions(+), 3 deletions(-)
> >>>> looks good, the x86 bits:
> >>>>
> >>>> Acked-by: Ingo Molnar <mingo@elte.hu>
> >>> man, we have too many config options:-)
> >>
> >> the non-x86 bits (kernel/kprobes.c) are crappy though, and broke -rc4
> >> allnoconfig:
> >>
> >> kernel/built-in.o: In function `collect_garbage_slots':
> >> kprobes.c:(.kprobes.text+0x16e4): undefined reference to `freeze_processes'
> >> kprobes.c:(.kprobes.text+0x16f2): undefined reference to `thaw_processes'
> >> kprobes.c:(.kprobes.text+0x176b): undefined reference to `thaw_processes'
> >
> > Hmm, it seems that kernel/power/built-in.o was not linked to .tmp_vmlinux1.
> >
> > ld -m elf_i386 --build-id -o .tmp_vmlinux1 -T arch/x86/kernel/vmlinux.lds
> > arch/x86/kernel/head_32.o arch/x86/kernel/head32.o arch/x86/kernel/head.o
> > arch/x86/kernel/init_task.o init/built-in.o --start-group usr/built-in.o
> > arch/x86/kernel/built-in.o arch/x86/mm/built-in.o arch/x86/mach-default/built-in.o
> > arch/x86/crypto/built-in.o arch/x86/vdso/built-in.o kernel/built-in.o
> > mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o
> > block/built-in.o lib/lib.a arch/x86/lib/lib.a lib/built-in.o
> > arch/x86/lib/built-in.o drivers/built-in.o sound/built-in.o firmware/built-in.o
> > arch/x86/pci/built-in.o net/built-in.o --end-group
> > kernel/built-in.o: In function `collect_garbage_slots':
> > kprobes.c:(.kprobes.text+0x16e4): undefined reference to `freeze_processes'
> > kprobes.c:(.kprobes.text+0x16f2): undefined reference to `thaw_processes'
> > kprobes.c:(.kprobes.text+0x176b): undefined reference to `thaw_processes'
> >
> > At kernel/Makefile:53, I can see
> >
> > obj-$(CONFIG_PM) += power/
> >
> > but CONFIG_PM was not set in config
>
> Sounds plausible. We need a fix for this - it's broken upstream.
Hmm. Can || be used under obj-$() ?
Rafael
next prev parent reply other threads:[~2009-02-10 13:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 20:12 [PATCH 0/2] PM: Compilation fixes related to the freezer Rafael J. Wysocki
2009-01-06 20:14 ` [PATCH 1/2] PM: Fix freezer compilation if PM_SLEEP is unset Rafael J. Wysocki
2009-01-06 20:15 ` [PATCH 2/2] kprobes: check CONFIG_FREEZER instead of CONFIG_PM Rafael J. Wysocki
2009-01-07 12:16 ` Ingo Molnar
2009-01-09 20:30 ` Len Brown
2009-01-11 3:49 ` Ingo Molnar
2009-02-10 1:05 ` Ingo Molnar
2009-02-09 20:51 ` Masami Hiramatsu
2009-02-10 12:37 ` Ingo Molnar
2009-02-10 13:56 ` Rafael J. Wysocki [this message]
2009-02-10 15:54 ` Masami Hiramatsu
2009-02-10 21:40 ` Rafael J. Wysocki
2009-02-11 1:23 ` Masami Hiramatsu
2009-02-11 9:38 ` Rafael J. Wysocki
2009-02-11 21:33 ` [PATCH] PM: Fix build for CONFIG_PM unset Rafael J. Wysocki
2009-02-08 23:47 ` Pavel Machek
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=200902101456.20147.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=crquan@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mhiramat@redhat.com \
--cc=mingo@elte.hu \
--cc=pavel@suse.cz \
/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