All of lore.kernel.org
 help / color / mirror / Atom feed
* [renesas-drivers:topic/rcar2-cpg-mssr 5/32] arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider'
@ 2017-04-26  9:50 kbuild test robot
  2017-04-27 12:40 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-04-26  9:50 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: kbuild-all, linux-renesas-soc

[-- Attachment #1: Type: text/plain, Size: 2242 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/rcar2-cpg-mssr
head:   bd948f4b8c455dfdbc8175b5c2bc29c91b048971
commit: 647a9d3c4f83250fd1f4e6519cf785319c9afe4c [5/32] clk: Provide dummy of_clk_get_from_provider() for compile-testing
config: mips-xway_defconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 647a9d3c4f83250fd1f4e6519cf785319c9afe4c
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider'
    struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
                ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips//lantiq/clk.c:14:0:
   include/linux/clk.h:542:27: note: previous definition of 'of_clk_get_from_provider' was here
    static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
                              ^~~~~~~~~~~~~~~~~~~~~~~~

vim +/of_clk_get_from_provider +163 arch/mips//lantiq/clk.c

287e3f3f John Crispin 2012-04-17  157  
287e3f3f John Crispin 2012-04-17  158  	if (clk->deactivate)
287e3f3f John Crispin 2012-04-17  159  		clk->deactivate(clk);
287e3f3f John Crispin 2012-04-17  160  }
287e3f3f John Crispin 2012-04-17  161  EXPORT_SYMBOL(clk_deactivate);
287e3f3f John Crispin 2012-04-17  162  
b902d9a9 John Crispin 2012-07-22 @163  struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
b902d9a9 John Crispin 2012-07-22  164  {
b902d9a9 John Crispin 2012-07-22  165  	return NULL;
b902d9a9 John Crispin 2012-07-22  166  }

:::::: The code at line 163 was first introduced by commit
:::::: b902d9a98e2bd0d3a2b7ddf7bca850b7f853569a MIPS: Lantiq: Platform specific CLK fixup

:::::: TO: John Crispin <blogic@openwrt.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 16195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [renesas-drivers:topic/rcar2-cpg-mssr 5/32] arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider'
  2017-04-26  9:50 [renesas-drivers:topic/rcar2-cpg-mssr 5/32] arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider' kbuild test robot
@ 2017-04-27 12:40 ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2017-04-27 12:40 UTC (permalink / raw)
  To: kbuild test robot
  Cc: Geert Uytterhoeven, kbuild-all, Linux-Renesas, John Crispin

On Wed, Apr 26, 2017 at 11:50 AM, kbuild test robot
<fengguang.wu@intel.com> wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/rcar2-cpg-mssr
> head:   bd948f4b8c455dfdbc8175b5c2bc29c91b048971
> commit: 647a9d3c4f83250fd1f4e6519cf785319c9afe4c [5/32] clk: Provide dummy of_clk_get_from_provider() for compile-testing
> config: mips-xway_defconfig (attached as .config)
> compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>         wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 647a9d3c4f83250fd1f4e6519cf785319c9afe4c
>         # save the attached .config to linux build tree
>         make.cross ARCH=mips
>
> All errors (new ones prefixed by >>):
>
>>> arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider'
>     struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
>                 ^~~~~~~~~~~~~~~~~~~~~~~~
>    In file included from arch/mips//lantiq/clk.c:14:0:
>    include/linux/clk.h:542:27: note: previous definition of 'of_clk_get_from_provider' was here
>     static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
>                               ^~~~~~~~~~~~~~~~~~~~~~~~

Bummer, Lantiq defines its own dummy. Will fold its removal into my patch.

> vim +/of_clk_get_from_provider +163 arch/mips//lantiq/clk.c
>
> 287e3f3f John Crispin 2012-04-17  157
> 287e3f3f John Crispin 2012-04-17  158   if (clk->deactivate)
> 287e3f3f John Crispin 2012-04-17  159           clk->deactivate(clk);
> 287e3f3f John Crispin 2012-04-17  160  }
> 287e3f3f John Crispin 2012-04-17  161  EXPORT_SYMBOL(clk_deactivate);
> 287e3f3f John Crispin 2012-04-17  162
> b902d9a9 John Crispin 2012-07-22 @163  struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
> b902d9a9 John Crispin 2012-07-22  164  {
> b902d9a9 John Crispin 2012-07-22  165   return NULL;
> b902d9a9 John Crispin 2012-07-22  166  }

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-27 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26  9:50 [renesas-drivers:topic/rcar2-cpg-mssr 5/32] arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider' kbuild test robot
2017-04-27 12:40 ` Geert Uytterhoeven

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.