Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4914048imc; Mon, 25 Feb 2019 13:31:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IaG2bkTNmgHh1akbuuMVi64UCqATgG5Ca/3QJjo7x1oItuAbHv4ZG4JrYDQs4D3cIA00vbl X-Received: by 2002:a63:516:: with SMTP id 22mr20253267pgf.353.1551130293455; Mon, 25 Feb 2019 13:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551130293; cv=none; d=google.com; s=arc-20160816; b=ohuU1Bl9xQNZxhRtEBfSF+f/+7dDViXoJoDubjHUrS9QKSWGchhvAIAuypWye0Qboi 3/ORSNrZJSPw963xexrfGjWPLuVSORzs+Ou4unfO5Z6YG1I1gn1QzhD261TAY2shSKIw RjmwUYMZtKogEc6k1v4oC8C8i0VfM+yAR/aVdMZidijodNXqoUqNmq07mymX58gMkdvV TpOVfxox1g0qO/qr22aEfZ3fk4fDXohKnZzrhs8oBesg1NzKF+8DHa3+ilJeriAPPrsd 9YVrehzontt2Fp2w0sAFqVNcpsAnNuwk+hxAtIcgbn3CngUAY0ef9zJUNIpIA7PK/EDK Ap8Q== 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=RJ/MZI9SIUBGpnVV0mQ06T3EvnmEb7D9dW0Wor0cC6E=; b=pERwnYsZetG0OtrvvvRwvghGLYEWnV/2zEqvACLI/8jANgD5sIoYsN1omqSTjO4Wa8 ZAvctsngdoO3fS7zvHUcCL+JxDEpDn37I/ByrzlZ4/IMXzkMQXE+l8HNWc85bn7czMC1 6Og1aCWXYaHtYZsTgcrOftiSYBpA/zGULep752r+BDEEkkLXEYG2mDAGT/dg6Igm2Ebp GdYpJS1XZt5pu0IlgrvGun0Ole11af0WhRYejFJ2mxV40hp9D8xhyT3E2mhz93XRqKod 3Nt0QAMC+ZjvrpOaISeP+cHmxGosVc2kEIBlrlziO+Jil4XEXIOL/G6jSEkB0zFu2oOU Xk9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pduMoBLj; 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 v10si10357587plp.424.2019.02.25.13.31.18; Mon, 25 Feb 2019 13:31:33 -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=pduMoBLj; 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 S1732230AbfBYVa7 (ORCPT + 99 others); Mon, 25 Feb 2019 16:30:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:36572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732020AbfBYVa4 (ORCPT ); Mon, 25 Feb 2019 16:30:56 -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 B1FAB217F5; Mon, 25 Feb 2019 21:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551130256; bh=EkY06KQ1Dq0iSqhW+aXMOukLQTN7RswZcE0lVHJI3nI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pduMoBLjHZ7N00M1dzDllSf4HHZtJ5BBLuV1pmhCMFy4JGY8Tqagkv0CKcj2oGuwu ZD31pfqx776CWuv2AckQuAIgVL3SEz0LYXOJ1WVbcehOQm48QUjUC/MvtsefUlp2gK nzdcjmC4kEn65D2SnF6yVhXBZrnhdDYdusaJx3fU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Lee Jones , Sasha Levin Subject: [PATCH 4.20 025/183] mfd: twl-core: Fix section annotations on {,un}protect_pm_master Date: Mon, 25 Feb 2019 22:09:58 +0100 Message-Id: <20190225195058.948328930@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190225195054.748060397@linuxfoundation.org> References: <20190225195054.748060397@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.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 8838555089f0345b87f4277fe5a8dd647dc65589 ] When building the kernel with Clang, the following section mismatch warning appears: WARNING: vmlinux.o(.text+0x3d84a3b): Section mismatch in reference from the function twl_probe() to the function .init.text:unprotect_pm_master() The function twl_probe() references the function __init unprotect_pm_master(). This is often because twl_probe lacks a __init annotation or the annotation of unprotect_pm_master is wrong. Remove the __init annotation on the *protect_pm_master functions so there is no more mismatch. Signed-off-by: Nathan Chancellor Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/twl-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 4be3d239da9ec..299016bc46d90 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -979,7 +979,7 @@ add_children(struct twl4030_platform_data *pdata, unsigned irq_base, * letting it generate the right frequencies for USB, MADC, and * other purposes. */ -static inline int __init protect_pm_master(void) +static inline int protect_pm_master(void) { int e = 0; @@ -988,7 +988,7 @@ static inline int __init protect_pm_master(void) return e; } -static inline int __init unprotect_pm_master(void) +static inline int unprotect_pm_master(void) { int e = 0; -- 2.19.1