[PATCH V3 1/8] CLKDEV: Add helper routines to allocate and add clkdevs for given struct clk *

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Apr 26 03:47:46 EDT 2012


On Tue, Apr 24, 2012 at 12:20:29PM +0530, Viresh Kumar wrote:
> From: Russell King <rmk+kernel at arm.linux.org.uk>
> 
> With common clock framework, clks are allocated at runtime. Some of them require
> clkdevs to be allocated and added in global clkdev list.
> 
> This patch introduces helper routines to:
> 
>  - allocate and add single clkdev for a single clk structure.
>  - add multiple clkdevs for a single clk structure.

This still causes additional warnings.  Having managed to get the build
for various platforms down to zero warnings, we now have:

drivers/clk/clkdev.c: In function 'clkdev_alloc':
drivers/clk/clkdev.c:209: warning: 'ap' may be used uninitialized in this function
drivers/clk/clkdev.c: In function 'clk_register_clkdev':
drivers/clk/clkdev.c:251: warning: 'ap' may be used uninitialized in this function

for everything building clkdev.c

I'll be dropping the patch.  Please fix.



More information about the linux-arm-kernel mailing list