]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.168/arm-omap2-prm44xx-fix-section-annotation-on-omap44xx.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.168 / arm-omap2-prm44xx-fix-section-annotation-on-omap44xx.patch
1 From ecee342ce2cce983d599f5b9f2000d45cfdde21e Mon Sep 17 00:00:00 2001
2 From: Nathan Chancellor <natechancellor@gmail.com>
3 Date: Wed, 17 Oct 2018 17:54:00 -0700
4 Subject: ARM: OMAP2+: prm44xx: Fix section annotation on
5 omap44xx_prm_enable_io_wakeup
6
7 [ Upstream commit eef3dc34a1e0b01d53328b88c25237bcc7323777 ]
8
9 When building the kernel with Clang, the following section mismatch
10 warning appears:
11
12 WARNING: vmlinux.o(.text+0x38b3c): Section mismatch in reference from
13 the function omap44xx_prm_late_init() to the function
14 .init.text:omap44xx_prm_enable_io_wakeup()
15 The function omap44xx_prm_late_init() references
16 the function __init omap44xx_prm_enable_io_wakeup().
17 This is often because omap44xx_prm_late_init lacks a __init
18 annotation or the annotation of omap44xx_prm_enable_io_wakeup is wrong.
19
20 Remove the __init annotation from omap44xx_prm_enable_io_wakeup so there
21 is no more mismatch.
22
23 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
24 Signed-off-by: Tony Lindgren <tony@atomide.com>
25 Signed-off-by: Sasha Levin <sashal@kernel.org>
26 ---
27 arch/arm/mach-omap2/prm44xx.c | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30 diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c
31 index 30768003f854..8c505284bc0c 100644
32 --- a/arch/arm/mach-omap2/prm44xx.c
33 +++ b/arch/arm/mach-omap2/prm44xx.c
34 @@ -344,7 +344,7 @@ static void omap44xx_prm_reconfigure_io_chain(void)
35 * to occur, WAKEUPENABLE bits must be set in the pad mux registers, and
36 * omap44xx_prm_reconfigure_io_chain() must be called. No return value.
37 */
38 -static void __init omap44xx_prm_enable_io_wakeup(void)
39 +static void omap44xx_prm_enable_io_wakeup(void)
40 {
41 s32 inst = omap4_prmst_get_prm_dev_inst();
42
43 --
44 2.19.1
45