Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3932342imm; Mon, 8 Oct 2018 11:54:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63uR/mazl91STbnMFelpkLNRn7A9134eIZkhqgAQMPzkjlt/hSEFRNDxrokQeoUQSSdzE1r X-Received: by 2002:a63:c044:: with SMTP id z4-v6mr22106195pgi.274.1539024881743; Mon, 08 Oct 2018 11:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024881; cv=none; d=google.com; s=arc-20160816; b=SMaidtFr3IxD/kz5ZD261xDn4k8sL5EsM1mHK6oj3/oalFsr1g9himl1XPD6BauYB8 MVBn5cZlT3mktPy3FnH3I2lIXWuJXDbfsML1Icf4jTCven3nLLj16xTv7wIX9zh/5C+C PM25mLw1XgwTGR2tj6OVcOfZOAJqbRRuLsUNt2LGUmz/vKoWorH+YmZ7IDZ2XXLPqubU gZBPnWN389g9H8tCNnaX6fzUVlfko/LF4Kaom4IeAwZguEp2YMIMoMZId1EuI/JK1JSP INjFZ3VZmTYBlhvhfGxVjq1F4/Y4ViFnpBZ2vwlulbowcLVvFSbheDUEJxc6+F0/zjhk e4CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cn+nUma7O+rIfPXij7A8FJyDC9mbfHB4TttE7Keg90A=; b=b3TWsAtpCXGE1B9Ap2i1n7b0WxOQS8EEqdjyHVut01kpltLY9pmov7b+ajfGK96xMn cvHOM61XU8lVdkX+2806EKpf/H1odndMlass6GoIZCCBOx9N7XtTU99W2HiH7u2772ml vcPEmK1pW3B2BhnCinvbRZ5JUaXvEGlMFQamI2URM5CkaRx2BsgoAd98612FW0AjDmUA mpLsJtdC7XMz/WQ9wayn5PnL8GAWrhOzKvOGhrfkw7rvsVuextsd38ma5Hdt0xuuELNL XOkX+3O8vYiPEEnj049oi7+OHgtLqqZ8hLeiBseRibyaHutKp1hLEcr/EqdUKjvY1dDa lfHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WxSnyXkM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18-v6si19327969pfj.25.2018.10.08.11.54.26; Mon, 08 Oct 2018 11:54:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WxSnyXkM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732131AbeJICGR (ORCPT + 99 others); Mon, 8 Oct 2018 22:06:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:56546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729253AbeJICGQ (ORCPT ); Mon, 8 Oct 2018 22:06:16 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F3F4204FD; Mon, 8 Oct 2018 18:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024788; bh=AoKzuReZS1M6+ZAEUZ1vrAsiFvG+DASXwF7uqwGvjFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WxSnyXkMk+J6Vaw15IkdIJd003eWw2C5EjoeyWjE0MrcjtMioTjDISjIVQn3qOVyU b97S3/FBgpzIJRcN4U+LuszD4q22CleW+/t9wsMdieJtEtoN45rL8Lv8/RjbP1prYA GCgZc0+8oXe+v2zkUnc6O1MGHSgS7V0zEtB6Epc8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Viresh Kumar , "Rafael J. Wysocki" Subject: [PATCH 4.18 154/168] cpufreq: qcom-kryo: Fix section annotations Date: Mon, 8 Oct 2018 20:32:14 +0200 Message-Id: <20181008175625.898147349@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor commit d51aea13dd6753186a2bea7619029c460bdf0c4c upstream. There is currently a warning when building the Kryo cpufreq driver into the kernel image: WARNING: vmlinux.o(.text+0x8aa424): Section mismatch in reference from the function qcom_cpufreq_kryo_probe() to the function .init.text:qcom_cpufreq_kryo_get_msm_id() The function qcom_cpufreq_kryo_probe() references the function __init qcom_cpufreq_kryo_get_msm_id(). This is often because qcom_cpufreq_kryo_probe lacks a __init annotation or the annotation of qcom_cpufreq_kryo_get_msm_id is wrong. Remove the '__init' annotation from qcom_cpufreq_kryo_get_msm_id so that there is no more mismatch warning. Additionally, Nick noticed that the remove function was marked as '__init' when it should really be marked as '__exit'. Fixes: 46e2856b8e18 (cpufreq: Add Kryo CPU scaling driver) Fixes: 5ad7346b4ae2 (cpufreq: kryo: Add module remove and exit) Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Acked-by: Viresh Kumar Cc: 4.18+ # 4.18+ Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/qcom-cpufreq-kryo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/cpufreq/qcom-cpufreq-kryo.c +++ b/drivers/cpufreq/qcom-cpufreq-kryo.c @@ -44,7 +44,7 @@ enum _msm8996_version { struct platform_device *cpufreq_dt_pdev, *kryo_cpufreq_pdev; -static enum _msm8996_version __init qcom_cpufreq_kryo_get_msm_id(void) +static enum _msm8996_version qcom_cpufreq_kryo_get_msm_id(void) { size_t len; u32 *msm_id; @@ -221,7 +221,7 @@ static int __init qcom_cpufreq_kryo_init } module_init(qcom_cpufreq_kryo_init); -static void __init qcom_cpufreq_kryo_exit(void) +static void __exit qcom_cpufreq_kryo_exit(void) { platform_device_unregister(kryo_cpufreq_pdev); platform_driver_unregister(&qcom_cpufreq_kryo_driver);