Message ID | 1471287881-5218-1-git-send-email-andreas@biessmann.org |
---|---|
State | Accepted |
Commit | d51e9a1d04ab77ee26da534172c0c3891dc8ac4f |
Delegated to: | Andreas Bießmann |
Headers | show |
On 08/15/2016 01:04 PM, Andreas Bießmann wrote: > Fix compile warning for non OF_CONTROL builds: > > ---8<--- > In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0: > /Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] > --->8--- Acked-by: Stephen Warren <swarren@nvidia.com>
Dear =?utf-8?q?Andreas_Bie=C3=9Fmann?=, <andreas@biessmann.org> writes: >Fix compile warning for non OF_CONTROL builds: > >---8<--- >In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0: >/Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] >--->8--- > >Signed-off-by: Andreas Bießmann <andreas@biessmann.org> >Acked-by: Stephen Warren <swarren@nvidia.com> >--- > > include/clk.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied to u-boot-atmel/master, thanks! Best regards, Andreas Bießmann
On 15 August 2016 at 13:04, Andreas Bießmann <andreas@biessmann.org> wrote: > > Fix compile warning for non OF_CONTROL builds: > > ---8<--- > In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0: > /Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] > --->8--- > > Signed-off-by: Andreas Bießmann <andreas@biessmann.org> > --- > > include/clk.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Simon Glass <sjg@chromium.org>
diff --git a/include/clk.h b/include/clk.h index 161bc28..dc18b03 100644 --- a/include/clk.h +++ b/include/clk.h @@ -104,7 +104,7 @@ static inline int clk_get_by_index(struct udevice *dev, int index, return -ENOSYS; } -static int clk_get_by_name(struct udevice *dev, const char *name, +static inline int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk) { return -ENOSYS;
Fix compile warning for non OF_CONTROL builds: ---8<--- In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0: /Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] --->8--- Signed-off-by: Andreas Bießmann <andreas@biessmann.org> --- include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)