From: Mike Turquette <mturquette@linaro.org>
To: Sachin Kamat <sachin.kamat@samsung.com>, linux-kernel@vger.kernel.org
Cc: spk.linux@gmail.com, "Peter De Schrijver" <pdeschrijver@nvidia.com>
Subject: Re: [PATCH v2 1/1] clk: Fix build warnings
Date: Tue, 01 Jul 2014 20:36:06 -0700 [thread overview]
Message-ID: <20140702033606.32686.67534@quantum> (raw)
In-Reply-To: <1404195994-32354-1-git-send-email-sachin.kamat@samsung.com>
Quoting Sachin Kamat (2014-06-30 23:26:34)
> ‘all_lists’ and ‘orphan_list’ is accessed only when DEBUG_FS is defined.
> Thus, make their compilation conditional to fix the below warnings introduced
> by commit 27b8d5f723 ("clk: flatten clk tree in debugfs"):
> drivers/clk/clk.c:40:27: warning: ‘all_lists’ defined but not used [-Wunused-variable]
> drivers/clk/clk.c:46:27: warning: ‘orphan_list’ defined but not used [-Wunused-variable]
>
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Applied.
Thanks,
Mike
> ---
> Changes since v1:
> Moved the definitions under already existing #ifdefs.
> ---
> drivers/clk/clk.c | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index 7dfb2f308b35..958967d141ee 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -36,17 +36,6 @@ static HLIST_HEAD(clk_root_list);
> static HLIST_HEAD(clk_orphan_list);
> static LIST_HEAD(clk_notifier_list);
>
> -static struct hlist_head *all_lists[] = {
> - &clk_root_list,
> - &clk_orphan_list,
> - NULL,
> -};
> -
> -static struct hlist_head *orphan_list[] = {
> - &clk_orphan_list,
> - NULL,
> -};
> -
> /*** locking ***/
> static void clk_prepare_lock(void)
> {
> @@ -111,6 +100,17 @@ static void clk_enable_unlock(unsigned long flags)
> static struct dentry *rootdir;
> static int inited = 0;
>
> +static struct hlist_head *all_lists[] = {
> + &clk_root_list,
> + &clk_orphan_list,
> + NULL,
> +};
> +
> +static struct hlist_head *orphan_list[] = {
> + &clk_orphan_list,
> + NULL,
> +};
> +
> static void clk_summary_show_one(struct seq_file *s, struct clk *c, int level)
> {
> if (!c)
> --
> 1.7.9.5
>
prev parent reply other threads:[~2014-07-02 3:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 6:26 [PATCH v2 1/1] clk: Fix build warnings Sachin Kamat
2014-07-02 3:36 ` Mike Turquette [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=20140702033606.32686.67534@quantum \
--to=mturquette@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pdeschrijver@nvidia.com \
--cc=sachin.kamat@samsung.com \
--cc=spk.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 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.