Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2464397imj; Mon, 18 Feb 2019 06:29:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IZGqQTE9RXUN+DTVjsT+qCBmfueYIt9/jk8EKp/ZTRV6j06G7JfQ3Nya1nYJodoEMPBRHLY X-Received: by 2002:a17:902:9884:: with SMTP id s4mr24453454plp.1.1550500187608; Mon, 18 Feb 2019 06:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500187; cv=none; d=google.com; s=arc-20160816; b=Z9n/lfvNhQw2/IxnFwmgy62AX1WNZQyDf5nleazU4Eorl+ZQgjFq4rzhCk4KLLjfZL GB263vFjQ9qZE9ZKbONaHM8TGxGalxhmsg/7JwcfUGDRJAcxK6TbJ5YpM1I4fFLrZ4Gx 2Mp8KWaY/AJRmkpycFBWyvmEdinRr6/R6X9WodgFTHaVYaFdXiVF5Uyz6WwpF1fABJSb MWrDJBvtzks3x9PX1L1Iumh69eC5mIs7e9B2gZsoE1CWDXgCauHJK/h0rLPdYaAQPiYA 95zD02hso03a5L+m2nWUVsXCGCjBHVLYrlzOv/fGiH1sHviXhPW8g2Z+YklSkdF7H4Jc rVWA== 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=70vYeRUy4EQge9ZBWQeqGwn4VQtgNY8nrgN9ji3zKCE=; b=Ip1uzG362iMGE24yt21Fh9v4zvJLZsdaA2H8NevRoGxvkOontBMCEuXLG81c4XEcIi 1tEt18w/Dfu+seSTrcdA7U/S7E1UCvoK8Podw+VyiG/WRl4MYiJt607oD6eURtKz2ew/ duJmniNNusydxbVrQ+dA7hVpYoc3sDM2fWEN1PElJoby56+0yPCiP4WgZt4oFFU1o4t1 xoU2cOvKwq35uR6AlmGi8ZsVFHwewEqcabr5kAAOr62y+jo66LHpRp/CXtxoj7S24nc/ CAOct1My4dLUqw48hVN74V8ak8ilSKV2cIC6iaScUq4tci9BO2IwBzHS+6h29luzecZK v/gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KZVLB7LI; 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 f35si13003751plh.399.2019.02.18.06.29.31; Mon, 18 Feb 2019 06:29:47 -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=KZVLB7LI; 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 S2388949AbfBROAz (ORCPT + 99 others); Mon, 18 Feb 2019 09:00:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:42168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388925AbfBROAv (ORCPT ); Mon, 18 Feb 2019 09:00:51 -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 4489A20842; Mon, 18 Feb 2019 14:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498450; bh=ld0qj6AaQB6V1sCMJ4xV5/YIXuvxrgkFGokr13Oj2wY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KZVLB7LIO7pzguwm1l0PIZKs3fOqlG34eaL7klgV2inzCuXOaeA0kdV1ivqSkt29E VYe6xDwOJ6+432tdHFpS7TiKVHFiwEEyWTbDB9z/PJ5+YoI5JAzfXq7KU/6J/X3pBX ydrPgsXCGBRKUKQA0EYlexvYkFYuQIAT3rysBV34= 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.4 013/143] ARM: OMAP2+: hwmod: Fix some section annotations Date: Mon, 18 Feb 2019 14:42:21 +0100 Message-Id: <20190218133529.647700507@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133529.099444112@linuxfoundation.org> References: <20190218133529.099444112@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.4-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 147c90e70b2e..36706d32d656 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -2526,7 +2526,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; struct list_head *p; @@ -2561,7 +2561,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; @@ -2622,7 +2622,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