Re: [PATCH 1/1] clk: Fix build warnings

From: Sachin Kamat
Date: Tue Jul 01 2014 - 02:28:12 EST


On Mon, Jun 30, 2014 at 7:07 PM, Peter De Schrijver
<pdeschrijver@xxxxxxxxxx> wrote:
> On Mon, Jun 30, 2014 at 11:40:54AM +0200, Sachin Kamat wrote:
>> â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]
>>
>
> Maybe just move them inside the existing #ifdef CONFIG_DEBUG_FS / #endif?

That makes sense. Thanks for the hint. Will re-spin.

Regards,
Sachin.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/