Subject: [PATCH] arm: oprofile: fix linkage issue

From: [email-masked] (Sergei Shtylyov)
Date: Mon, 26 Dec 2011 15:08:08 +0400

Hello.

On 22-12-2011 17:36, Vladimir Zapolskiy wrote:

> This change fixes a linking problem, which happens if oprofile is selected to
> be compiled as built-in:

>    `oprofile_arch_exit' referenced in section `.init.text' of
>    arch/arm/oprofile/built-in.o: defined in discarded section
>    `.exit.text' of arch/arm/oprofile/built-in.o

> The problem is

    s/is/has/

> appeared after commit 87121ca504, which introduced

    Please also specify that commit's summary in parens.

> oprofile_arch_exit() calls from __init function. Note that the aforementioned
> commit has been backported to stable branches, and the problem is known to be
> reproduced at least with 3.0.13 and 3.1.5 kernels.

> Signed-off-by: Vladimir Zapolskiy<[email-masked]>
> Cc: Will Deacon<[email-masked]>
> Cc: Robert Richter<[email-masked]>
> Cc: stable at kernel.org

WBR, Sergei