[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdVOBnZ=pyVeGSxbOT9MtRR2iNY4V-PUm0NU=UFQ2pxE_g@mail.gmail.com>
Date: Thu, 9 Oct 2014 13:31:40 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"adi-buildroot-devel@...ts.sourceforge.net"
<adi-buildroot-devel@...ts.sourceforge.net>,
driverdevel <devel@...verdev.osuosl.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
lguest@...ts.ozlabs.org,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
alpha <linux-alpha@...r.kernel.org>,
"moderated list:PANASONIC MN10300..." <linux-am33-list@...hat.com>,
Cris <linux-cris-kernel@...s.com>, linux-efi@...r.kernel.org,
"open list:QUALCOMM HEXAGON..." <linux-hexagon@...r.kernel.org>,
linux-m32r-ja@...linux-m32r.org,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
linux-s390 <linux-s390@...r.kernel.org>,
linux-tegra@...r.kernel.org,
"linux-xtensa@...ux-xtensa.org" <linux-xtensa@...ux-xtensa.org>,
openipmi-developer@...ts.sourceforge.net,
uml-devel <user-mode-linux-devel@...ts.sourceforge.net>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
linux-c6x-dev@...ux-c6x.org,
"linux-ia64@...r.kernel.org" <linux-ia64@...r.kernel.org>,
linux-m68k <linux-m68k@...ts.linux-m68k.org>,
"open list:METAG ARCHITECTURE" <linux-metag@...r.kernel.org>,
Linux MIPS Mailing List <linux-mips@...ux-mips.org>,
Parisc List <linux-parisc@...r.kernel.org>,
Linux PM list <linux-pm@...r.kernel.org>,
Linux-sh list <linux-sh@...r.kernel.org>,
xen-devel@...ts.xenproject.org,
Andrew Morton <akpm@...ux-foundation.org>,
Heiko Stuebner <heiko@...ech.de>,
Romain Perier <romain.perier@...il.com>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
Alexander Graf <agraf@...e.de>
Subject: Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck <linux@...ck-us.net> wrote:
> +int register_poweroff_handler_simple(void (*handler)(void), int priority)
> +{
> + char symname[KSYM_NAME_LEN];
> +
> + if (poweroff_handler_data.handler) {
> + lookup_symbol_name((unsigned long)poweroff_handler_data.handler,
> + symname);
> + pr_warn("Poweroff function already registered (%s)", symname);
> + lookup_symbol_name((unsigned long)handler, symname);
> + pr_cont(", cannot register %s\n", symname);
Doesn't %ps work to look up symbols?
pr_warn("Poweroff function already registered (%ps), cannot register
%ps\n", poweroff_handler_data.handler, handler);
> + return -EBUSY;
> + }
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists