]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Don't mark shared helper functions as inline
authorRuss Dill <Russ.Dill@ti.com>
Mon, 26 Nov 2012 19:20:09 +0000 (11:20 -0800)
committerMichael Turquette <mturquette@deferred.io>
Sat, 12 Jan 2013 00:32:41 +0000 (16:32 -0800)
commitdbf0fd114e6844b06273434567352e78bb0ad02d
tree26878ce4855a70ffd868bca929f21c01ee4d37f7
parent0535dafcce1bd9f556e205dba871e11794ee3a77
clk: Don't mark shared helper functions as inline

The helper functions that access the opaque struct clk should
not be marked inline since they are contained in clk.c, but expected
to be used by other compilation units. This causes compile errors
under gcc-4.7

In file included from arch/arm/mach-omap2/clockdomain.c:25:0:
arch/arm/mach-omap2/clockdomain.c: In function ‘clkdm_clk_disable’:
include/linux/clk-provider.h:338:12: error: inlining failed in call to always_inline ‘__clk_get_enable_count’: function body not available
arch/arm/mach-omap2/clockdomain.c:1001:28: error: called from here
make[1]: *** [arch/arm/mach-omap2/clockdomain.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2

Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: removed fixes made redundant by commit 14143b64]
[mturquette@linaro.org: improved $SUBJECT]
drivers/clk/clk.c