]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/arm-pxa-avoid-section-mismatch-warning.patch
autosel patches for 4.14
[thirdparty/kernel/stable-queue.git] / queue-4.14 / arm-pxa-avoid-section-mismatch-warning.patch
1 From 22412ea81e59d988cba9d2a59897dbf571f49d57 Mon Sep 17 00:00:00 2001
2 From: Arnd Bergmann <arnd@arndb.de>
3 Date: Mon, 10 Dec 2018 22:58:39 +0100
4 Subject: ARM: pxa: avoid section mismatch warning
5
6 [ Upstream commit 88af3209aa0881aa5ffd99664b6080a4be5f24e5 ]
7
8 WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the function littleton_init_lcd() to the function .init.text:pxa_set_fb_info()
9 The function littleton_init_lcd() references
10 the function __init pxa_set_fb_info().
11 This is often because littleton_init_lcd lacks a __init
12 annotation or the annotation of pxa_set_fb_info is wrong.
13
14 WARNING: vmlinux.o(.text+0xf824): Section mismatch in reference from the function zeus_register_ohci() to the function .init.text:pxa_set_ohci_info()
15 The function zeus_register_ohci() references
16 the function __init pxa_set_ohci_info().
17 This is often because zeus_register_ohci lacks a __init
18 annotation or the annotation of pxa_set_ohci_info is wrong.
19
20 WARNING: vmlinux.o(.text+0xf95c): Section mismatch in reference from the function cm_x300_init_u2d() to the function .init.text:pxa3xx_set_u2d_info()
21 The function cm_x300_init_u2d() references
22 the function __init pxa3xx_set_u2d_info().
23 This is often because cm_x300_init_u2d lacks a __init
24 annotation or the annotation of pxa3xx_set_u2d_info is wrong.
25
26 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
27 Signed-off-by: Olof Johansson <olof@lixom.net>
28 Signed-off-by: Sasha Levin <sashal@kernel.org>
29 ---
30 arch/arm/mach-pxa/cm-x300.c | 2 +-
31 arch/arm/mach-pxa/littleton.c | 2 +-
32 arch/arm/mach-pxa/zeus.c | 2 +-
33 3 files changed, 3 insertions(+), 3 deletions(-)
34
35 diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
36 index 868448d2cd82..38ab30869821 100644
37 --- a/arch/arm/mach-pxa/cm-x300.c
38 +++ b/arch/arm/mach-pxa/cm-x300.c
39 @@ -547,7 +547,7 @@ static struct pxa3xx_u2d_platform_data cm_x300_u2d_platform_data = {
40 .exit = cm_x300_u2d_exit,
41 };
42
43 -static void cm_x300_init_u2d(void)
44 +static void __init cm_x300_init_u2d(void)
45 {
46 pxa3xx_set_u2d_info(&cm_x300_u2d_platform_data);
47 }
48 diff --git a/arch/arm/mach-pxa/littleton.c b/arch/arm/mach-pxa/littleton.c
49 index fae38fdc8d8e..5cd6b4bd31e0 100644
50 --- a/arch/arm/mach-pxa/littleton.c
51 +++ b/arch/arm/mach-pxa/littleton.c
52 @@ -183,7 +183,7 @@ static struct pxafb_mach_info littleton_lcd_info = {
53 .lcd_conn = LCD_COLOR_TFT_16BPP,
54 };
55
56 -static void littleton_init_lcd(void)
57 +static void __init littleton_init_lcd(void)
58 {
59 pxa_set_fb_info(NULL, &littleton_lcd_info);
60 }
61 diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c
62 index ecbcaee5a2d5..c293ea0a7eaf 100644
63 --- a/arch/arm/mach-pxa/zeus.c
64 +++ b/arch/arm/mach-pxa/zeus.c
65 @@ -558,7 +558,7 @@ static struct pxaohci_platform_data zeus_ohci_platform_data = {
66 .flags = ENABLE_PORT_ALL | POWER_SENSE_LOW,
67 };
68
69 -static void zeus_register_ohci(void)
70 +static void __init zeus_register_ohci(void)
71 {
72 /* Port 2 is shared between host and client interface. */
73 UP2OCR = UP2OCR_HXOE | UP2OCR_HXS | UP2OCR_DMPDE | UP2OCR_DPPDE;
74 --
75 2.19.1
76