Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3625726imu; Mon, 28 Jan 2019 08:03:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Id5LzzRpDjU/q6KkzhpIX+R8HCLsFLOEdo2mgIjlGcXPfH5elsSfJDoFE5VxHPEHuFid5 X-Received: by 2002:a63:902:: with SMTP id 2mr19127585pgj.219.1548691424085; Mon, 28 Jan 2019 08:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691424; cv=none; d=google.com; s=arc-20160816; b=aSxiA+Ke0+5gmQyPWSF3j5BgKjH1850fy4MUxAfJtzHF6zBDkkuL3P6ZfBfYBo7uDf W9W4eIsV+tiFeVS0Beui2D6HbKesPxgR3nnVmCcEpoXjCSXk5xt1yr9iMdtmJdiuG1rq 4fzedcmwlIvKvydINy/qzw4sfiiVhN3zj6SF6fAWjboExBXLqgOn4Bsg5gRvoHTDKExG dAharRaPnjS2qukrE6So/pnH+yypgZMaaENfhIV3ov8nUgxX3fV1WYiub+X2zPMmewUY fW3Gcp7f4Zlx8ZET9ih58jBxt4VmVbT0AUmoRKlK7tikdF1mdUrmBpVWrr0PiPk6jju7 rPfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HEYKTV6sz7yWtYoIbdd7Qjr2aADezFHZcDp2thLRXSM=; b=ufqOHjssYPkQikM+C1pU5JXIkrT4pFqr+70vrXUwrzLjF6j4Z6lwgCZRkq1Mr8YK1j kbAD+2O9KzdNG8kNyhQbKPh7u6FWJQ6f5cyDCoNrldSmCFPoJrq81MIfN/8i8VkyFJzn jFHcu7soOHJQ4L0QUOXlPq9bvlIbkhzpBNjqp/gjVjMuMxoRxsF5bJO5qIH7i07m3evu VOhzGmLGwUR1B7FP/aC2HeOiO8gr0qKdKHaDkxra6XVxIZjtTUXcjQgiHTP1w6A2gjaR s1Ju5LnrFwG/pGO3JaN0ZqOgKxDnzrbaoH9rNv3KScUPBlHZQmLP20DZ7Hc3C+9wKvBy 9Xfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X78bB0lz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i129si36322831pfb.32.2019.01.28.08.03.25; Mon, 28 Jan 2019 08:03:44 -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=X78bB0lz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730575AbfA1QBe (ORCPT + 99 others); Mon, 28 Jan 2019 11:01:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:46756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728400AbfA1QB3 (ORCPT ); Mon, 28 Jan 2019 11:01:29 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 78AF321917; Mon, 28 Jan 2019 16:01:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691288; bh=58a/mh7h6uXWGum6EsvIrvrfg7G1if/9GayQ/Pd1ips=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X78bB0lzE3qFXN020YSBkCda/bm8KU16y2FzpaClwVm7YGiE0yYHbuHIDvpdSL+L+ nn+mJz1vxNnFYgMmNUL9kPTIgzFS7X9qHyEpCKO/6gW/F7f3WR11eFvKE+bJzPd2MQ vUN1f8W1Ys4hN4whLQS8LLQAsslgNA2pxnKOxuso= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Tony Lindgren , Sasha Levin , linux-omap@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 047/258] ARM: OMAP2+: hwmod: Fix some section annotations Date: Mon, 28 Jan 2019 10:55:53 -0500 Message-Id: <20190128155924.51521-47-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ 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