Skip to contentSkip to conversation

GCC 4.7 stops to compile the current git kernel

PATCH Igor Mazanov 2 participants 2 messages Nov 15, 2012 Common clk

lore
Share & tools
lore
#0 lore raw

Hello,

After a conversion to common clock framework GCC 4.7 stops to compile the current kernel with the following error:

CC arch/arm/mach-omap2/clockdomain.o
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

This change helps:

include/linux/clk-provider.h +2 -2
index c127315..f9f5e9e 100644
@@ -335,8 +335,8 @@ const char *__clk_get_name(struct clk *clk);
 struct clk_hw *__clk_get_hw(struct clk *clk);
 u8 __clk_get_num_parents(struct clk *clk);
 struct clk *__clk_get_parent(struct clk *clk);
-inline int __clk_get_enable_count(struct clk *clk);
-inline int __clk_get_prepare_count(struct clk *clk);
+int __clk_get_enable_count(struct clk *clk);
+int __clk_get_prepare_count(struct clk *clk);
 unsigned long __clk_get_rate(struct clk *clk);
 unsigned long __clk_get_flags(struct clk *clk);
 int __clk_is_enabled(struct clk *clk);

Regards,
Igor.

#1 lore raw

Hi,

Quoted 22 lines · Igor Mazanov

Hello,

After a conversion to common clock framework GCC 4.7 stops to compile the current kernel with the following error:

CC arch/arm/mach-omap2/clockdomain.o
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

This change helps:

include/linux/clk-provider.h +0 -0
index c127315..f9f5e9e 100644

include/linux/clk-provider.h const char *__clk_get_name(struct clk *clk); · line 342

Quoted 10 lines
include/linux/clk-provider.h +2 -2
@@ -335,8 +335,8 @@ const char *__clk_get_name(struct clk *clk);
 struct clk_hw *__clk_get_hw(struct clk *clk);
 u8 __clk_get_num_parents(struct clk *clk);
 struct clk *__clk_get_parent(struct clk *clk);
-inline int __clk_get_enable_count(struct clk *clk);
-inline int __clk_get_prepare_count(struct clk *clk);
+int __clk_get_enable_count(struct clk *clk);
+int __clk_get_prepare_count(struct clk *clk);
 unsigned long __clk_get_rate(struct clk *clk);
 unsigned long __clk_get_flags(struct clk *clk);
 int __clk_is_enabled(struct clk *clk);

care to send as a proper patch and Ccing proper lists and developers ? scripts/get_maintainer.pl will help you figure the audience ;-)

Signature · 1 line
balbi