Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2725046imj; Mon, 11 Feb 2019 07:33:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia6sEMpgcz2t0uArFhgEGGmWbV7xWzDvg8GiluSAWsgudu+GOFf8STFu0scgTdr8Tzi29Cg X-Received: by 2002:a17:902:1122:: with SMTP id d31mr37975252pla.246.1549899199135; Mon, 11 Feb 2019 07:33:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549899199; cv=none; d=google.com; s=arc-20160816; b=ynh1+oKpMsLocQ6deshKxXyt6jyko8l5zpK4PcmRfsFK9rLzE6/fLA6l4y1NknDGu5 KOWypywdpn3zJjTVaal8dJSgVHhli/mD+iXIx28/oxtAOMKXda8PQb2VeZsVSL2OwYU1 1KHZg0xVZXMxj4Jj5JTYnkM1ZqyxI0wdgSG0NGItILatOllYj30UPY2WtY8ZGHqdjEH3 4Q3Ul+1yEq/sqWytfpUg5KGsRe1w0OvnahS3Oa0YXEu7uNxeXuVwlRCg5HzmcqYEDXZl 1cAGnhtwnpa54ZDWza/xGA1vCH5KsL48MGkl1HOtbKtA8WQiTRvjCcGXxekTwhB7tr9W YGIg== 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=imuJsFZftewAyKIpz6JGWrCDPEIszi42ph/K5OhB59E=; b=oBXIBPnXKCN79ZAF7cppLju0SDxDPRU2VHn4n2GNogo9Kb1p3jpNK2s0BF7Yv8h6CO gzPZopQWHXxDW20GJjtHMzODVw9akaoScNPh4Gfv7w80qigXu1QaGnhgLJFd8/RR8o0H mPBpdAxI9DEeJ3ahQBu1QqBdkZjjsyMW9AoRDvgMd1Xepx2S61mrK7Wg2rUtlAzAGQKa Ask2kbVqhjY++N/EuHUZNjbpBt1S8/vsYwOg3Gl03fLcqo8teeYFEBUqMN8qTRVAF7Q4 q3l6GxeBlIgZ9WzYh4eaRMJJuFT6DkJBmEyBypvKgypbSoSUftRlyaG4ak522AIx++IT kL7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=la3MYQFw; 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 l24si9627982pgj.171.2019.02.11.07.33.03; Mon, 11 Feb 2019 07:33:19 -0800 (PST) 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=la3MYQFw; 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 S1729621AbfBKOzN (ORCPT + 99 others); Mon, 11 Feb 2019 09:55:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:42102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388916AbfBKOzJ (ORCPT ); Mon, 11 Feb 2019 09:55:09 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 7523F2229E; Mon, 11 Feb 2019 14:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896908; bh=zDluAz4aEsNqfVgruqD/s75skl2dB2iazHG75an7Slo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=la3MYQFwK04N9Zin2bIeJ4dLl1Vv3ix+GapjUk91PiEFACaVqh2dkMTmcSNlPXuV+ dqLnW48M15HnP51fhXj83KF3MPGnz9VHrL7Gq4Dla+11X6tSzSE5Wh5WJDtWLqdzXl +nCteZhKg+ixUpxNucq5k8H0KSnMmwwokHyB5qUk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Tony Lindgren , Sasha Levin Subject: [PATCH 4.14 028/205] ARM: OMAP2+: hwmod: Fix some section annotations Date: Mon, 11 Feb 2019 15:17:06 +0100 Message-Id: <20190211141829.613966000@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c10b26abeb53cabc1e6271a167d3f3d396ce0218 ] When building the kernel with Clang, the following section mismatch warnings appears: WARNING: vmlinux.o(.text+0x2d398): Section mismatch in reference from the function _setup() to the function .init.text:_setup_iclk_autoidle() The function _setup() references the function __init _setup_iclk_autoidle(). This is often because _setup lacks a __init annotation or the annotation of _setup_iclk_autoidle is wrong. WARNING: vmlinux.o(.text+0x2d3a0): Section mismatch in reference from the function _setup() to the function .init.text:_setup_reset() The function _setup() references the function __init _setup_reset(). This is often because _setup lacks a __init annotation or the annotation of _setup_reset is wrong. WARNING: vmlinux.o(.text+0x2d408): Section mismatch in reference from the function _setup() to the function .init.text:_setup_postsetup() The function _setup() references the function __init _setup_postsetup(). This is often because _setup lacks a __init annotation or the annotation of _setup_postsetup is wrong. _setup is used in omap_hwmod_allocate_module, which isn't marked __init and looks like it shouldn't be, meaning to fix these warnings, those functions must be moved out of the init section, which this patch does. Signed-off-by: Nathan Chancellor Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/omap_hwmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 2dbd63239c54..45c8f2ef4e23 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -2497,7 +2497,7 @@ static int __init _init(struct omap_hwmod *oh, void *data) * a stub; implementing this properly requires iclk autoidle usecounting in * the clock code. No return value. */ -static void __init _setup_iclk_autoidle(struct omap_hwmod *oh) +static void _setup_iclk_autoidle(struct omap_hwmod *oh) { struct omap_hwmod_ocp_if *os; @@ -2528,7 +2528,7 @@ static void __init _setup_iclk_autoidle(struct omap_hwmod *oh) * reset. Returns 0 upon success or a negative error code upon * failure. */ -static int __init _setup_reset(struct omap_hwmod *oh) +static int _setup_reset(struct omap_hwmod *oh) { int r; @@ -2589,7 +2589,7 @@ static int __init _setup_reset(struct omap_hwmod *oh) * * No return value. */ -static void __init _setup_postsetup(struct omap_hwmod *oh) +static void _setup_postsetup(struct omap_hwmod *oh) { u8 postsetup_state; -- 2.19.1