From: Felipe Balbi <balbi@ti.com>
To: Igor Mazanov <i.mazanov@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: GCC 4.7 stops to compile the current git kernel
Date: Thu, 15 Nov 2012 15:25:05 +0200 [thread overview]
Message-ID: <20121115132505.GD7390@arwen.pp.htv.fi> (raw)
In-Reply-To: <k82pkb$sba$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]
Hi,
On Thu, Nov 15, 2012 at 05:11:14PM +0400, Igor Mazanov wrote:
> 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:
>
> diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
> index c127315..f9f5e9e 100644
> --- a/include/linux/clk-provider.h
> +++ b/include/linux/clk-provider.h
> @@ -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 ;-)
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2012-11-15 13:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 13:11 GCC 4.7 stops to compile the current git kernel Igor Mazanov
2012-11-15 13:25 ` Felipe Balbi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121115132505.GD7390@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=i.mazanov@gmail.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.