Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935429AbdIYWvz (ORCPT ); Mon, 25 Sep 2017 18:51:55 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35698 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934953AbdIYWvx (ORCPT ); Mon, 25 Sep 2017 18:51:53 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 491B8600D0 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: gregkh@linuxfoundation.org, viresh.kumar@linaro.org, juri.lelli@arm.com Cc: psodagud@codeaurora.org, linux-kernel@vger.kernel.org Subject: [PATCH] arch_topology: Fix section miss match warning due to free_raw_capacity() Date: Mon, 25 Sep 2017 15:51:44 -0700 Message-Id: <1506379904-1007-1-git-send-email-psodagud@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 30 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 --- 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 41be9ff..3da53cc 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