Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp676122img; Fri, 22 Mar 2019 06:23:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8lHhcPG1ahScVB8ZDzKTRYy0XBDuAZ+uGrDwtDjDNrOF3wl7hdQl+IvLRtRFCwLVo6Wrc X-Received: by 2002:a65:4bcc:: with SMTP id p12mr8931555pgr.187.1553260995105; Fri, 22 Mar 2019 06:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260995; cv=none; d=google.com; s=arc-20160816; b=Px/kO4xfEIZ9nisyrmSVWGXMNRDgVXi88L+K3dIprtWoXkl5KwuC+t3Mtb+IApRznb alhhM84hTisiXrqPcNUqAo4sAaPVlvb8gk53eXMu4ZqpIV99xbx5Hn9fVHvR90/F9lPU +PEVEMnVWjwOB7mmXy12OXydjcUbHb4oecrdRJl6LGyHB3CRwl/B36vPqFqdY4Vvd3I/ Ikz1HfBmiH7ovgLSqzi9NUe230DiwctV6Hk3rZnzywIdLHb9b7SEeb3TrOu4FUV7v9k8 krP6lhbgG1o2bFErRs2azLGZKUFBLiRB7MqqTRAyc4KDDfZorl1OMnv/7GxA//201Z4i I6Ig== 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=YXUlOu5wmdBQCxucQvsXuyqIaCs0D0CcHgaK3SXCUUw=; b=hsQ6IhEpl+nqKRw7XiUZUjkFz0SfphhIGR4hGZx40wp4KtrMjapejUn5fTw0VtA7+P +NelSWUUi0pEdWNRL8AaSoaojA6RgyEqiUGIOMaYLB0izHxG5BnaOpXZIWREyvV/EL9G U9a9fIY6h0y9fvVFKR2boexOqXMf4LWrlV2ScRy1LE2v50ZDrOqB6Pvj88Z1MWFF71oV LKFbu0k8vutEM1Q6gZ+slHzGmrcGujyVMgod9xLm7MPldlDkRX/ya4XdADCMqY8zzfHb wUBAEXtMYcOceojPKTYhEDG4nGJTh5vMjBE4k0t8n4huYnvdJSgBaX1zjmuUkNNPuAt9 zMxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HoAghg11; 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 n12si6518462pgp.165.2019.03.22.06.23.00; Fri, 22 Mar 2019 06:23:15 -0700 (PDT) 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=HoAghg11; 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 S1728367AbfCVLU2 (ORCPT + 99 others); Fri, 22 Mar 2019 07:20:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:46758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbfCVLUY (ORCPT ); Fri, 22 Mar 2019 07:20:24 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 D4A67218A2; Fri, 22 Mar 2019 11:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253624; bh=0L/MIrHmsm9DVUlfdYIfFtgfr+bh045Bdpz75wsbGC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HoAghg11I/w0QFpAB2qkfRVFMrZ8h5okFSt27fF+yei5/8M5l4oFCVmNjuGpntXwo jm+hEoD1zQWyFkrXv5FJgyYUetGRGpfSsOyBg1ht8+728XxHYTXaj3VkV/XGeVsDXg ekKkOXwnR3bYGNu/H2vtW1N9i9/S6+BRjQELuTgk= 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 3.18 006/134] mfd: db8500-prcmu: Fix some section annotations Date: Fri, 22 Mar 2019 12:13:39 +0100 Message-Id: <20190322111210.711335764@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@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 3.18-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 193cf168ba84d..40a70e0c4d872 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2616,7 +2616,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: @@ -2765,7 +2765,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