From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Lee Jones <lee@kernel.org>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>,
linux-kernel@vger.kernel.org, Stephen Boyd <sboyd@codeaurora.org>,
Mike Turquette <mturquette@linaro.org>,
Bryan Huntsman <bryanh@codeaurora.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Ralf Baechle <ralf@linux-mips.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Tomeu Vizoso <tomeu.vizoso@collabora.com>
Subject: Re: [PATCH v2 1/1] clkdev: change prototype of clk_register_clkdev()
Date: Mon, 23 Feb 2015 14:36:55 +0200 [thread overview]
Message-ID: <1424695015.14897.5.camel@linux.intel.com> (raw)
In-Reply-To: <20150223122309.GB21609@x1>
On Mon, 2015-02-23 at 12:23 +0000, Lee Jones wrote:
> On Mon, 23 Feb 2015, Russell King - ARM Linux wrote:
>
> > On Mon, Feb 23, 2015 at 11:53:56AM +0000, Lee Jones wrote:
> > > On Mon, 23 Feb 2015, Andy Shevchenko wrote:
> > > > arch/arm/mach-msm/clock-pcom.c | 9 +++++----
> > > > arch/arm/mach-vexpress/spc.c | 5 ++++-
> > > > arch/mips/ath79/clock.c | 6 +++---
> > > > drivers/clk/clk-bcm2835.c | 12 +++++++-----
> > > > drivers/clk/clk-max-gen.c | 9 ++++-----
> > > > drivers/clk/clk-xgene.c | 6 +++---
> > > > drivers/clk/clkdev.c | 15 ++++++++++-----
> > > > drivers/clk/samsung/clk-pll.c | 13 ++++++++-----
> > > > drivers/clk/samsung/clk-s3c2410-dclk.c | 19 +++++++++---------
> > > > drivers/clk/samsung/clk.c | 35 +++++++++++++++++++---------------
> > > > include/linux/clkdev.h | 2 +-
> > > > 11 files changed, 75 insertions(+), 56 deletions(-)
> > >
> > > What's tying all of these changes together? It would be better
> > > (simpler for you) if you split them up by subsystem and resubmitted.
> >
> > I think maybe, just maybe, you might get the answer to that if you read
> > the patch.
> >
> > You can't change the function signature without creating lots of warnings
> > and causing regressions.
> >
> > Yes, the function could be renamed whilst doing this change, but that's
> > really quite sub-standard in an already busy namespace.
>
> Okay, I can go with that.
>
> If I'm reading this patch correctly, it doesn't actually fix
> anything.
Right. Consider this as a stage 1 that allows you to make a proper fix
on an actual use case.
> What's the thinking behind stopping short? Why don't you go
> the extra inch and free the resources at the appropriate times?
As far as I can see most of the cases are for whole OS time to live,
means no need to free resources. The really affected users should know
by themselves and I'm not going to brainlessly fix every usage of the
clkdev_register() (note most of them [> 90% use cases?] even didn't
check the return code).
--
Andy Shevchenko <andriy.shevchenko@intel.com>
Intel Finland Oy
prev parent reply other threads:[~2015-02-23 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 11:49 [PATCH v2 0/1] clkdev: prevent potential memory leak when used in modules Andy Shevchenko
2015-02-23 11:49 ` [PATCH v2 1/1] clkdev: change prototype of clk_register_clkdev() Andy Shevchenko
2015-02-23 11:53 ` Lee Jones
2015-02-23 11:57 ` Andy Shevchenko
2015-02-23 12:02 ` Andy Shevchenko
2015-02-23 12:03 ` Russell King - ARM Linux
2015-02-23 12:23 ` Lee Jones
2015-02-23 12:36 ` Andy Shevchenko [this message]
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=1424695015.14897.5.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=bryanh@codeaurora.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=lorenzo.pieralisi@arm.com \
--cc=mturquette@linaro.org \
--cc=ralf@linux-mips.org \
--cc=s.nawrocki@samsung.com \
--cc=sboyd@codeaurora.org \
--cc=tomeu.vizoso@collabora.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