Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp580295img; Fri, 22 Mar 2019 04:28:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6QbXKuvlDgzraWfFlmq/JUltgvIGQQ00HJDyh2jd0VYjC/hSj+nEzLmSOb2MD5PUDIbAu X-Received: by 2002:a62:2a97:: with SMTP id q145mr8862301pfq.22.1553254103486; Fri, 22 Mar 2019 04:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553254103; cv=none; d=google.com; s=arc-20160816; b=kwvUHJ5/OduUEojhqtLt09DbzfvTqXqbsSRVbOxss+po6+T6ISiKnOX6oyg3wekflq vS8yp3K3RGfqEo0MMnp3T+pUxUf0gWbXPR3dzJTsS6SmLjzL6siL/y/xmuXjHoqDd787 VovMc4+622WeDEgt+OAwmFhtT9YitD1MK94gH0bNHTpUdWlnK5mREmtzMHUZwenEI/E+ eclJ8rqEfZyAzy/I3x8MMzv/yztu6Aq4zOZgSX6TpnGFr/LQm50Ubz2CEiOqXVw/PHMF LiOm9RihuRli3FLcHB2xYz/PKws+a6VuUHpQ6uZ2j22QECNj2BX/mxt5X0/yi67RWJQw xJxw== 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=BOHQhedahKsA+Agm2/fGEQx0MUNKEykD+N1dfmnN98I=; b=ssPU5h3J702wj9bcoXbpmF/5DMXlFxpcnCEj32j11EpuqoszuBdIpzUm1Y7KSBWIbM WItHV3k9wKEmzchFREBcKJGlYyK3XN1Xt9BriamLZJI0xHOqGP9C0E/F2vJT+qSsNfxi 7wF3JObMxUgjnW6aNj4b41o2/cy8oWBXgW2uGbBZmQUVpzXdle2wKKT2m6hFuDizG1sL z/DzGmZpSL1hJGNCbumqczDn7PkdVHYkeJGCQ2OGm4TaY08Jgw6nIYk9heYOeP40OhSv 7SIYhoSd6iuJSmQtsEInRZtB7wmpgQHtgNDHeIskAVnBy1OnzUiElPL/E+h8Tx9CrpUh SYiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y+2Nziqn; 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 16si6483114pgc.312.2019.03.22.04.28.06; Fri, 22 Mar 2019 04:28:23 -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=Y+2Nziqn; 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 S1729434AbfCVL03 (ORCPT + 99 others); Fri, 22 Mar 2019 07:26:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:54200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729427AbfCVL02 (ORCPT ); Fri, 22 Mar 2019 07:26:28 -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 8F4EC218B0; Fri, 22 Mar 2019 11:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253988; bh=qkjuIwQwmtUs2t4nU3cU5xoiFGrhjPYPyR5uPWa8eEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y+2NziqnRPWx0TLKzUEGRZpjxeuDRHDnV+/zta+0IdJrRwbOjQIoy9JaVbakAJoew eBY+JaZOqMzW1g+NVap32UBf2DVGRrtz1O7n9j4Gj9UGUHp4avmRsNynMb0duhBJsT e8+CefPyXdePsBQmHnVULlVp4HHyIUqgXqaaYjvY= 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 3.18 117/134] cpufreq: pxa2xx: remove incorrect __init annotation Date: Fri, 22 Mar 2019 12:15:30 +0100 Message-Id: <20190322111218.820830397@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@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 3.18-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 @@ -191,7 +191,7 @@ static int pxa_cpufreq_change_voltage(px 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)) { @@ -207,7 +207,7 @@ static int pxa_cpufreq_change_voltage(px 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,