Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4914145imc; Mon, 25 Feb 2019 13:31:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IZTMIsvKKFTVHNqwjZOpSSBoU3VncWmWVG8VDKh7neGMp8guaqVsACfcbGweldoQKiwk358 X-Received: by 2002:a62:484:: with SMTP id 126mr13995610pfe.91.1551130298687; Mon, 25 Feb 2019 13:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551130298; cv=none; d=google.com; s=arc-20160816; b=yg2vPTlJHUIVxcp/ilGLZLJMXwyt+CtdZTpy5DjIpkfwQkf4TVOdOpGNLsglggGiCu V54yTXUpGaR3dthLxtI/gSYCQUGASyPEW9rxCGdrix7SsCsd6a4NwDRBLNpFLIgMcL7i hLUOyh9PXj+9+OtFkl3Eax8IwVNCTbfAhGq05sW1gezpFVyOOXqNmvAIIFticlrtNU9G bZT6yjPQIEdcbwmGamvhCSNkQhsy0IQXhcZBtmBMKlF3xdx6XhEhXXHmdQVohg+kfR2E wGqdfMF5J7Jjel8JKcFsaE58D7F+/sOxtG/LUdyh6026lGWT1r4ZTE6YsdpSM09Uw7i7 dIaA== 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=FRI3o1PFaDRPFGXhxnQQZktBftlvNwpy8lTIRConwfo=; b=fbl4HE56MfcnMuYtzBJsGU6wNMmix9iF6IcLxfWKV9WErDgES91m/ARU1sVdJDimco 2s8sNm3XpWpUFRxJF0zmkkgOjpOMS+X++fvEft+/bweYMwx59oLCxBJVt1zWAsPY4bs8 W6tK5ZpLw11FFV9grIL7Ndjc9MH4BfrqWF1JJqlQOGZYm/If74hJ/v1EmhxobaQSIj35 wlTHnwuA8bKbXsmWJebgp2OpJAcSnfVpMa6bOSVH9UOMXRT+9AOl+YPJZXEjayu3gPQj dtbHhH2g+aZ2xPImFv5dn++fbwS1PB5hqKpu+YtzPc1gLb2jE/uBb4RIgrNKoQsRRTkb QsTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fOP7rHYx; 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 c131si10521685pga.358.2019.02.25.13.31.23; Mon, 25 Feb 2019 13:31:38 -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=fOP7rHYx; 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 S1731829AbfBYVbF (ORCPT + 99 others); Mon, 25 Feb 2019 16:31:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:36624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732227AbfBYVa7 (ORCPT ); Mon, 25 Feb 2019 16:30:59 -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 75044217F5; Mon, 25 Feb 2019 21:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551130259; bh=J+vMQRFMdgVyWEb9CxAvMkPHhY/cLpmowza6+PB7aEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fOP7rHYx5CDX1vpJow67j2W8E44RWcweJsw3jFTJbQFw7aOLMFINFyXvEZ3uqvcrA nuHXUN3gyduko6FZ5/TgqFk+lD672pnT3U5lA889pove/vowFhnVadF1FJqlBQJxID KCW4fcKI5s9Gf7mH8jLRkcavV0edKGh/lPaxyaR4= 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 026/183] mfd: db8500-prcmu: Fix some section annotations Date: Mon, 25 Feb 2019 22:09:59 +0100 Message-Id: <20190225195059.089431159@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 a3888f62fe66429fad3be7f2ba962e1e08c26fd6 ] When building the kernel with Clang, the following section mismatch warnings appear: WARNING: vmlinux.o(.text+0x7239cc): Section mismatch in reference from the function db8500_prcmu_probe() to the function .init.text:init_prcm_registers() The function db8500_prcmu_probe() references the function __init init_prcm_registers(). This is often because db8500_prcmu_probe lacks a __init annotation or the annotation of init_prcm_registers is wrong. WARNING: vmlinux.o(.text+0x723e28): Section mismatch in reference from the function db8500_prcmu_probe() to the function .init.text:fw_project_name() The function db8500_prcmu_probe() references the function __init fw_project_name(). This is often because db8500_prcmu_probe lacks a __init annotation or the annotation of fw_project_name is wrong. db8500_prcmu_probe should not be marked as __init so remove the __init annotation from fw_project_name and init_prcm_registers. Signed-off-by: Nathan Chancellor Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/db8500-prcmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 5970b8def5487..aec20e1c7d3d5 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2584,7 +2584,7 @@ static struct irq_chip prcmu_irq_chip = { .irq_unmask = prcmu_irq_unmask, }; -static __init char *fw_project_name(u32 project) +static char *fw_project_name(u32 project) { switch (project) { case PRCMU_FW_PROJECT_U8500: @@ -2732,7 +2732,7 @@ void __init db8500_prcmu_early_init(u32 phy_base, u32 size) INIT_WORK(&mb0_transfer.mask_work, prcmu_mask_work); } -static void __init init_prcm_registers(void) +static void init_prcm_registers(void) { u32 val; -- 2.19.1