From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755513AbdJJHfF (ORCPT ); Tue, 10 Oct 2017 03:35:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:38158 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbdJJHfE (ORCPT ); Tue, 10 Oct 2017 03:35:04 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EE175600C1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=psodagud@codeaurora.org From: Prasad Sodagudi To: viresh.kumar@linaro.org, gregkh@linuxfoundation.org, juri.lelli@arm.com Cc: linux-kernel@vger.kernel.org, psodagud@codeaurora.org Subject: [PATCH] arch_topology: Fix section miss match warning due to free_raw_capacity() Date: Tue, 10 Oct 2017 00:34:56 -0700 Message-Id: <1507620896-12243-1-git-send-email-psodagud@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20170925232019.GD3053@ubuntu> References: <20170925232019.GD3053@ubuntu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Viresh Kumar --- drivers/base/arch_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 6df7d66..0ca4468 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -96,7 +96,7 @@ static int register_cpu_capacity_sysctl(void) 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; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project