Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-21 15:32:57 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-21 15:32:59 +0100
commitaee4d9a70e3edb06ffd6355fef5fff024d7f150b (patch)
treef3963087acd29456086884ef36369a6210cb02b3
parentd72e848203ffd61d894e8c74cd12b189e047bdad (diff)
ARM: OMAP2+: hwmod: Fix some section annotations (bsc#1051510).
-rw-r--r--patches.fixes/ARM-OMAP2-hwmod-Fix-some-section-annotations.patch78
-rw-r--r--series.conf1
2 files changed, 79 insertions, 0 deletions
diff --git a/patches.fixes/ARM-OMAP2-hwmod-Fix-some-section-annotations.patch b/patches.fixes/ARM-OMAP2-hwmod-Fix-some-section-annotations.patch
new file mode 100644
index 0000000000..35b2613e4e
--- /dev/null
+++ b/patches.fixes/ARM-OMAP2-hwmod-Fix-some-section-annotations.patch
@@ -0,0 +1,78 @@
+From c10b26abeb53cabc1e6271a167d3f3d396ce0218 Mon Sep 17 00:00:00 2001
+From: Nathan Chancellor <natechancellor@gmail.com>
+Date: Wed, 17 Oct 2018 17:52:07 -0700
+Subject: [PATCH] ARM: OMAP2+: hwmod: Fix some section annotations
+Git-commit: c10b26abeb53cabc1e6271a167d3f3d396ce0218
+Patch-mainline: v5.0-rc1
+References: bsc#1051510
+
+When building the kernel with Clang, the following section mismatch
+warnings appears:
+
+Warning: vmlinux.o(.text+0x2d398): Section mismatch in reference from
+the function _setup() to the function .init.text:_setup_iclk_autoidle()
+The function _setup() references
+the function __init _setup_iclk_autoidle().
+This is often because _setup lacks a __init
+annotation or the annotation of _setup_iclk_autoidle is wrong.
+
+Warning: vmlinux.o(.text+0x2d3a0): Section mismatch in reference from
+the function _setup() to the function .init.text:_setup_reset()
+The function _setup() references
+the function __init _setup_reset().
+This is often because _setup lacks a __init
+annotation or the annotation of _setup_reset is wrong.
+
+Warning: vmlinux.o(.text+0x2d408): Section mismatch in reference from
+the function _setup() to the function .init.text:_setup_postsetup()
+The function _setup() references
+the function __init _setup_postsetup().
+This is often because _setup lacks a __init
+annotation or the annotation of _setup_postsetup is wrong.
+
+_setup is used in omap_hwmod_allocate_module, which isn't marked __init
+and looks like it shouldn't be, meaning to fix these warnings, those
+functions must be moved out of the init section, which this patch does.
+
+Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
+Signed-off-by: Tony Lindgren <tony@atomide.com>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ arch/arm/mach-omap2/omap_hwmod.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
+index 083dcd9942ce..921c9aaee63f 100644
+--- a/arch/arm/mach-omap2/omap_hwmod.c
++++ b/arch/arm/mach-omap2/omap_hwmod.c
+@@ -2413,7 +2413,7 @@ static int __init _init(struct omap_hwmod *oh, void *data)
+ * a stub; implementing this properly requires iclk autoidle usecounting in
+ * the clock code. No return value.
+ */
+-static void __init _setup_iclk_autoidle(struct omap_hwmod *oh)
++static void _setup_iclk_autoidle(struct omap_hwmod *oh)
+ {
+ struct omap_hwmod_ocp_if *os;
+
+@@ -2444,7 +2444,7 @@ static void __init _setup_iclk_autoidle(struct omap_hwmod *oh)
+ * reset. Returns 0 upon success or a negative error code upon
+ * failure.
+ */
+-static int __init _setup_reset(struct omap_hwmod *oh)
++static int _setup_reset(struct omap_hwmod *oh)
+ {
+ int r;
+
+@@ -2505,7 +2505,7 @@ static int __init _setup_reset(struct omap_hwmod *oh)
+ *
+ * No return value.
+ */
+-static void __init _setup_postsetup(struct omap_hwmod *oh)
++static void _setup_postsetup(struct omap_hwmod *oh)
+ {
+ u8 postsetup_state;
+
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index ffd4460b43..3203cb603b 100644
--- a/series.conf
+++ b/series.conf
@@ -20156,6 +20156,7 @@
patches.fixes/kconfig-fix-memory-leak-when-EOF-is-encountered-in-q.patch
patches.suse/sched-fair-Fix-infinite-loop-in-update_blocked_averages-by-reverting-a9e7f6544b9c.patch
patches.fixes/seq_buf-Make-seq_buf_puts-null-terminate-the-buffer.patch
+ patches.fixes/ARM-OMAP2-hwmod-Fix-some-section-annotations.patch
patches.drivers/soc-bcm-brcmstb-Don-t-leak-device-tree-node-referenc.patch
patches.drivers/soc-tegra-Don-t-leak-device-tree-node-reference.patch
patches.drivers/watchdog-w83627hf_wdt-support-Inves.patch