summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorPrasad Sodagudi <psodagud@codeaurora.org>2017-10-10 00:34:56 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-20 16:32:39 +0200
commit82d8ba717ccb54dd803624db044f351b2a54d000 (patch)
tree8dc63f3a864ca35ef22cab8de5c6d650374a83b0 /drivers/base
parentf4f89f23e69d7da8b037a3128dd24ab1771516ba (diff)
arch_topology: Fix section miss match warning due to free_raw_capacity()
Remove the __init annotation from free_raw_capacity() to avoid the following warning. The function init_cpu_capacity_callback() references the function __init free_raw_capacity(). WARNING: vmlinux.o(.text+0x425cc0): Section mismatch in reference from the function init_cpu_capacity_callback() to the function .init.text:free_raw_capacity(). Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/arch_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
index 6df7d6676a48..0ca44682f2b9 100644
--- a/drivers/base/arch_topology.c
+++ b/drivers/base/arch_topology.c
@@ -96,7 +96,7 @@ subsys_initcall(register_cpu_capacity_sysctl);
static u32 capacity_scale;
static u32 *raw_capacity;
-static int __init free_raw_capacity(void)
+static int free_raw_capacity(void)
{
kfree(raw_capacity);
raw_capacity = NULL;