Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2742914imj; Mon, 11 Feb 2019 07:50:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IaJjAqTGubh4hERpyU3jL2Z6aU6wi56FcdjRiaDZOFVhb76eMX0EY/UOKH6A8MWTxxUIADm X-Received: by 2002:a62:345:: with SMTP id 66mr37139072pfd.189.1549900205956; Mon, 11 Feb 2019 07:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900205; cv=none; d=google.com; s=arc-20160816; b=hPmmMZT5Y0fbOsIWyCIsV3wOXnoB0yHXqjrX5UDmTR0a/uwz/lIYO+VCMBFwoCsLHX Uc0V2egGim7dSVRVEfHj1EYA1P1Hrlw/YMU4ewvrahvle1CXjA1C+2ed/uwIILfDQlQy PYFTweZBfSK4VmLDqVHT3UNWIXr2O4k9dU5FLLMr7ija+K+KBtGzRXVARwHjCsGPNI3l Ph+R5nHomEx3gmdOd/mXEzkkXvkS2jFy0FnfKOb3IxQV0EQ4EnZ28wxHoL8hHqTD2XzX 3w/OprJ/S1xAG0y1LshPUk6njFzUNxQbX4aQyARzw7n7jvJmpOm774Gyhfn6Js/1+WYU a0Kw== 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=2MF0paPKX8L55sqsdJQ+XzdJSP+Y2lpdhV5RP+skNjE=; b=Jk/GvgXoioYy9fa/R8Azv69aIrY860YFHWV2FK23Grk8rOnuKP/FpXW4eB1J9+89Vh QGyLENGVizeGLgDx5oOAN2HjMyq0/oYmM/OgGaD0BjG51xPbjAARD4ieAVi0k3G8nKx4 zSAE8XFEQfTsvyYoDhTgN5Xbha4cGuO5aTSg6daI2r+JZFRVx0g+f5YOOL3Y39BKt3ll FERVMqKlLl/iX770lnWhs9m/DJ6DRdqN2CY6anGVgYHyNAcpof7cyl+/vXq5OHbp98Xq PHsxjkT6kOlVFgcyG2hc5Yx29rerlBfmYfXBD2LWqrXjykTYQhAtT3tO3ltezz30JZX5 EYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="H3/bpsqU"; 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 f9si9548652pgc.85.2019.02.11.07.49.50; Mon, 11 Feb 2019 07:50:05 -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="H3/bpsqU"; 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 S1732025AbfBKOkK (ORCPT + 99 others); Mon, 11 Feb 2019 09:40:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:50828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732017AbfBKOkI (ORCPT ); Mon, 11 Feb 2019 09:40:08 -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 DE28220838; Mon, 11 Feb 2019 14:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896007; bh=0tUdS2koUyYzOgUVKiQnLJZYtpsi8LjvaVEWn2UpW/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H3/bpsqUkhV/7TNF+vzzVwqjWAZRtHZzcLopwiv0PeRlDjG8BagZmnlX35ha2c0Si /jg7q04fD+Je2uao6q2XWrlASHegFVk8Z51LHAcB2fRRCaxBiwUdpWtiJHi3ZmrlDZ 56nRRjXDb6FUNzlxXbXmDkcRrrq/xOmFXbxQvnDQ= 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.19 042/313] ARM: OMAP2+: hwmod: Fix some section annotations Date: Mon, 11 Feb 2019 15:15:22 +0100 Message-Id: <20190211141856.380807840@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141852.749630980@linuxfoundation.org> References: <20190211141852.749630980@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.19-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 cd65ea4e9c54..ec3789ba17b8 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -2397,7 +2397,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; @@ -2428,7 +2428,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; @@ -2489,7 +2489,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