lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 17 Aug 2016 22:24:52 +0200
From:	Geert Uytterhoeven <geert@...ux-m68k.org>
To:	Stephen Boyd <sboyd@...eaurora.org>
Cc:	Michael Turquette <mturquette@...libre.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	linux-clk <linux-clk@...r.kernel.org>,
	Denis Efremov <yefremov.denis@...il.com>
Subject: Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function

Hi Stephen,

On Tue, Aug 16, 2016 at 7:31 PM, Stephen Boyd <sboyd@...eaurora.org> wrote:
> On 08/16, Geert Uytterhoeven wrote:
>> On Sat, Aug 13, 2016 at 3:50 AM, Stephen Boyd <sboyd@...eaurora.org> wrote:
>> > This function is only called by builtin code, but we always
>> > exported it and had marked it as __init before commit
>> > e4eda8e0654c (clk: remove exported function from __init section,
>> > 2013-01-06) removed that marking. Given that it isn't used by
>> > modules, lets unexport it and add back __init.
>> >
>> > Cc: Denis Efremov <yefremov.denis@...il.com>
>> > Signed-off-by: Stephen Boyd <sboyd@...eaurora.org>
>> > ---
>> >  drivers/clk/clk-fixed-rate.c | 3 +--
>> >  1 file changed, 1 insertion(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c
>> > index c735272ed706..b5c46b3f8764 100644
>> > --- a/drivers/clk/clk-fixed-rate.c
>> > +++ b/drivers/clk/clk-fixed-rate.c
>> > @@ -190,11 +190,10 @@ static struct clk *_of_fixed_clk_setup(struct device_node *node)
>> >  /**
>> >   * of_fixed_clk_setup() - Setup function for simple fixed rate clock
>> >   */
>> > -void of_fixed_clk_setup(struct device_node *node)
>> > +void __init of_fixed_clk_setup(struct device_node *node)
>> >  {
>> >         _of_fixed_clk_setup(node);
>> >  }
>> > -EXPORT_SYMBOL_GPL(of_fixed_clk_setup);
>> >  CLK_OF_DECLARE(fixed_clk, "fixed-clock", of_fixed_clk_setup);
>>
>> This function is needed to instantiate clocks from DT overlays,
>> which I'm using with out-of-tree "clk: add generic driver for fixed rate clock".
>
> I think Ricardo's latest series should make that work for you
> with platform device drivers?

Thanks, I had missed that series.
Ah, that one calls _of_fixed_clk_setup() instead, which should still work.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ