From: Sascha Hauer <s.hauer@pengutronix.de>
To: viresh kumar <viresh.linux@gmail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>,
Russell King <linux@arm.linux.org.uk>,
Viresh Kumar <viresh.kumar@st.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-next@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
fengguang.wu@intel.com, spear-devel <spear-devel@list.st.com>
Subject: Re: "clk: add non CONFIG_HAVE_CLK routines" commit
Date: Thu, 14 Jun 2012 00:10:40 +0200 [thread overview]
Message-ID: <20120613221040.GJ30400@pengutronix.de> (raw)
In-Reply-To: <CAOh2x=mFOPKbzuY__k0RVpFHTdPfa-iN1e3Lpa3iWt9iP6FzFw@mail.gmail.com>
Hi Viresh,
On Tue, Jun 12, 2012 at 11:57:07AM +0100, viresh kumar wrote:
> Hi Paul/Russell,
>
> On Wed, May 23, 2012 at 12:46 AM, Paul Gortmaker
> <paul.gortmaker@windriver.com> wrote:
> > Hi Viresh,
> >
> > The above listed commit, in linux-next as:
> >
> > commit ebbf0cb5d39cc3e22ef4c425475e76b7f45027de
> >
> > "clk: add non CONFIG_HAVE_CLK routines"
> >
> > shows up as failures in the netx_defconfig, since there
> > are duplicate stub functions between your changes and the
> > file below:
> >
> > arch/arm/mach-netx/fb.c:72:6: error: redefinition of 'clk_disable'
> > include/linux/clk.h:299:51: note: previous definition of 'clk_disable' was here
> > arch/arm/mach-netx/fb.c:76:5: error: redefinition of 'clk_set_rate'
> > include/linux/clk.h:306:50: note: previous definition of 'clk_set_rate' was here
> > arch/arm/mach-netx/fb.c:81:5: error: redefinition of 'clk_enable'
> > include/linux/clk.h:294:50: note: previous definition of 'clk_enable' was here
> > arch/arm/mach-netx/fb.c:86:13: error: redefinition of 'clk_get'
> > include/linux/clk.h:280:58: note: previous definition of 'clk_get' was here
> > arch/arm/mach-netx/fb.c:91:6: error: redefinition of 'clk_put'
> > include/linux/clk.h:290:51: note: previous definition of 'clk_put' was here
> > make[2]: *** [arch/arm/mach-netx/fb.o] Error 1
>
> Following are present in mach-netx/fb.c:
>
>
> void clk_disable(struct clk *clk)
> {
> }
>
> int clk_set_rate(struct clk *clk, unsigned long rate)
> {
> return 0;
> }
>
> int clk_enable(struct clk *clk)
> {
> return 0;
> }
>
> void clk_put(struct clk *clk)
> {
> }
>
> struct clk *clk_get(struct device *dev, const char *id)
> {
> return dev && strcmp(dev_name(dev), "fb") == 0 ? NULL : ERR_PTR(-ENOENT);
> }
>
> I can remove first four without any issues, but just can't remove the last one.
> The dummy clk_get() always returns NULL, whereas this one returns NULL only for
> fb device.
>
> How should I fix this?
As the netx does not have fb support in mainline you can just drop this
one aswell. It has no use.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2012-06-13 22:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 23:46 "clk: add non CONFIG_HAVE_CLK routines" commit Paul Gortmaker
2012-05-25 9:37 ` [linux-next] " viresh kumar
2012-06-12 10:57 ` viresh kumar
2012-06-12 11:09 ` Fengguang Wu
2012-06-12 11:13 ` viresh kumar
2012-06-12 14:08 ` Russell King - ARM Linux
2012-06-12 14:21 ` [linux-next] " viresh kumar
2012-06-13 22:10 ` Sascha Hauer [this message]
2012-06-14 10:04 ` Russell King - ARM Linux
2012-06-14 10:18 ` Sascha Hauer
2012-06-14 10:21 ` viresh kumar
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=20120613221040.GJ30400@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=akpm@linux-foundation.org \
--cc=fengguang.wu@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-next@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=paul.gortmaker@windriver.com \
--cc=spear-devel@list.st.com \
--cc=viresh.kumar@st.com \
--cc=viresh.linux@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).