Skip to content

Commit

Permalink
arch_topology: Fix section miss match warning due to free_raw_capacity()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Prasad Sodagudi authored and gregkh committed Oct 20, 2017
1 parent f4f89f2 commit 82d8ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/arch_topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82d8ba7

Please sign in to comment.