Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1461570 > unrolled thread

[PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function

Started byStephen Boyd <sboyd@codeaurora.org>
First post2016-08-13 04:00 +0200
Last post2016-08-16 00:10 +0200
Articles 7 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function Stephen Boyd <sboyd@codeaurora.org> - 2016-08-13 04:00 +0200
    [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function Stephen Boyd <sboyd@codeaurora.org> - 2016-08-13 04:00 +0200
      Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup  function Stephen Boyd <sboyd@codeaurora.org> - 2016-08-16 00:10 +0200
      Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function Geert Uytterhoeven <geert@linux-m68k.org> - 2016-08-16 14:30 +0200
        Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup  function Stephen Boyd <sboyd@codeaurora.org> - 2016-08-16 19:40 +0200
          Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function Geert Uytterhoeven <geert@linux-m68k.org> - 2016-08-17 22:30 +0200
    Re: [PATCH 1/2] clk: fixed-factor: Remove export symbol on setup  function Stephen Boyd <sboyd@codeaurora.org> - 2016-08-16 00:10 +0200

#1461570 — [PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-08-13 04:00 +0200
Subject[PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function
Message-ID<s5woV-1ni-3@gated-at.bofh.it>
This function is marked __init, so it can't possibly need to be
exported to modules. Remove the marking.

Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 drivers/clk/clk-fixed-factor.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index 070d0d75da97..a5d402de5584 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -196,7 +196,6 @@ void __init of_fixed_factor_clk_setup(struct device_node *node)
 {
 	_of_fixed_factor_clk_setup(node);
 }
-EXPORT_SYMBOL_GPL(of_fixed_factor_clk_setup);
 CLK_OF_DECLARE(fixed_factor_clk, "fixed-factor-clock",
 		of_fixed_factor_clk_setup);
 
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [next] | [standalone]


#1461571 — [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-08-13 04:00 +0200
Subject[PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function
Message-ID<s5woW-1ni-9@gated-at.bofh.it>
In reply to#1461570
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@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.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);
 
 static int of_fixed_clk_remove(struct platform_device *pdev)
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [prev] | [next] | [standalone]


#1463206 — Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-08-16 00:10 +0200
SubjectRe: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function
Message-ID<s6yf0-327-27@gated-at.bofh.it>
In reply to#1461571
On 08/12, Stephen Boyd 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@gmail.com>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [prev] | [next] | [standalone]


#1463752 — Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2016-08-16 14:30 +0200
SubjectRe: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function
Message-ID<s6LFf-30r-7@gated-at.bofh.it>
In reply to#1461571
Hi Stephen,

On Sat, Aug 13, 2016 at 3:50 AM, Stephen Boyd <sboyd@codeaurora.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@gmail.com>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.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".

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-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

[toc] | [prev] | [next] | [standalone]


#1463962 — Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-08-16 19:40 +0200
SubjectRe: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function
Message-ID<s6Qvf-61D-13@gated-at.bofh.it>
In reply to#1463752
On 08/16, Geert Uytterhoeven wrote:
> Hi Stephen,
> 
> On Sat, Aug 13, 2016 at 3:50 AM, Stephen Boyd <sboyd@codeaurora.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@gmail.com>
> > Signed-off-by: Stephen Boyd <sboyd@codeaurora.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?

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [prev] | [next] | [standalone]


#1464787 — Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2016-08-17 22:30 +0200
SubjectRe: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function
Message-ID<s7fDj-5XM-15@gated-at.bofh.it>
In reply to#1463962
Hi Stephen,

On Tue, Aug 16, 2016 at 7:31 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> On 08/16, Geert Uytterhoeven wrote:
>> On Sat, Aug 13, 2016 at 3:50 AM, Stephen Boyd <sboyd@codeaurora.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@gmail.com>
>> > Signed-off-by: Stephen Boyd <sboyd@codeaurora.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@linux-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

[toc] | [prev] | [next] | [standalone]


#1463204 — Re: [PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-08-16 00:10 +0200
SubjectRe: [PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function
Message-ID<s6yf0-327-11@gated-at.bofh.it>
In reply to#1461570
On 08/12, Stephen Boyd wrote:
> This function is marked __init, so it can't possibly need to be
> exported to modules. Remove the marking.
> 
> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web