Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp619854img; Fri, 22 Mar 2019 05:17:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVn3IvVzljYlRKcZazIf8jiLGEINtyp7/U9yQLjOUhwSlUs0onsZkGT77O07e1sfjHacKT X-Received: by 2002:a62:b502:: with SMTP id y2mr8795651pfe.212.1553257073201; Fri, 22 Mar 2019 05:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553257073; cv=none; d=google.com; s=arc-20160816; b=nrcfttT49Hpd8It9AAiJ3ndyyAkpMramJ3k0i7FQ173ZpuaeO0F/zvc+hHnjBayloP Mh9J1E5StKad9wqCdcAILYCgvgrs9/xMB/G+nYWnuebQJEZ9jcf1Dizy0E9LU55qPj+d bEzpz/kWentK9V2zSrJgH/GYwZ6XefwW/NDnrZvrPIfqR1S98cyw699mgyq0ybO7UmHh 3VC451dslwgWUhjPc8/Bgyj/O44FlZ+/KoxyeCpIc8M7ueN11DDC4K4BqS7WcDndv42X xq0DX3pXcK+55u7wsk2wIGXez9fJlE9+mrVaHUltUxCjSuKiagNGy3B3G3GHzC4gKFaH 83dg== 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=4PP/Ec2HUJ2TBqVC1q20Tz8LlvIxFvDuWfjKV7giL2w=; b=OSISs5aBIG/EmNO+XzsC9x485uMY08EUZEqcc4HyalgfrPf65iwOs1+sDnr36YV8ta gKh9dtnOaIj59ohewKhHLne5DObMF/3bNh4Mz7KVLNRpWxjLPFIBgenmFjZKsV1e4AzX +dXPNRG+1cIxnp2HxuwWe1Zbl1TUG3n54sHqQbsRid6kgOe6kTXYP05/gOssGNDRLt1U PUJtPLst6K1c9jUwhZUYs6tfDz6ZOKgTr0HDfIE5/Hwiks/8kvN9zLjKy/DuhRZ/Az+b Logbw4Hoc7lodqRllxSsxEZh1rsmwaZFP8v/cleXkQ1eJth34K2iYd3ldW4rOtB/MOLl 99Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z+dxogTC; 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 u10si6686804plq.266.2019.03.22.05.17.38; Fri, 22 Mar 2019 05:17:53 -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=Z+dxogTC; 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 S2389678AbfCVMQz (ORCPT + 99 others); Fri, 22 Mar 2019 08:16:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:55680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390285AbfCVMQx (ORCPT ); Fri, 22 Mar 2019 08:16:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 EE32A21900; Fri, 22 Mar 2019 12:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553257012; bh=H1QvCbne4hW7RM36lJaQDRnZhRkGWZJxi+7h3CwBu38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z+dxogTCELDmikaJVPzbgB+156Vdp2RBoDG89WCK9dIyVaqrfrhtCQmsVjjhn6w7w HJmkpbsXLpqkWKJvGORjmLvemvnWbhgkKJVa+kJAm20+jdFLF1/+cjV/vPG30aPADF L5faD1QTcyAeTLNTNJ6DMnKvzkeZ7M/eub9xIJ+E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Viresh Kumar , Nathan Chancellor , Robert Jarzmik , "Rafael J. Wysocki" Subject: [PATCH 5.0 106/238] cpufreq: pxa2xx: remove incorrect __init annotation Date: Fri, 22 Mar 2019 12:15:25 +0100 Message-Id: <20190322111304.783670332@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111258.383569278@linuxfoundation.org> References: <20190322111258.383569278@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 5.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 9505b98ccddc454008ca7efff90044e3e857c827 upstream. pxa_cpufreq_init_voltages() is marked __init but usually inlined into the non-__init pxa_cpufreq_init() function. When building with clang, it can stay as a standalone function in a discarded section, and produce this warning: WARNING: vmlinux.o(.text+0x616a00): Section mismatch in reference from the function pxa_cpufreq_init() to the function .init.text:pxa_cpufreq_init_voltages() The function pxa_cpufreq_init() references the function __init pxa_cpufreq_init_voltages(). This is often because pxa_cpufreq_init lacks a __init annotation or the annotation of pxa_cpufreq_init_voltages is wrong. Fixes: 50e77fcd790e ("ARM: pxa: remove __init from cpufreq_driver->init()") Signed-off-by: Arnd Bergmann Acked-by: Viresh Kumar Reviewed-by: Nathan Chancellor Acked-by: Robert Jarzmik Cc: All applicable Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/pxa2xx-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/cpufreq/pxa2xx-cpufreq.c +++ b/drivers/cpufreq/pxa2xx-cpufreq.c @@ -143,7 +143,7 @@ static int pxa_cpufreq_change_voltage(co return ret; } -static void __init pxa_cpufreq_init_voltages(void) +static void pxa_cpufreq_init_voltages(void) { vcc_core = regulator_get(NULL, "vcc_core"); if (IS_ERR(vcc_core)) { @@ -159,7 +159,7 @@ static int pxa_cpufreq_change_voltage(co return 0; } -static void __init pxa_cpufreq_init_voltages(void) { } +static void pxa_cpufreq_init_voltages(void) { } #endif static void find_freq_tables(struct cpufreq_frequency_table **freq_table,