Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp675828img; Fri, 22 Mar 2019 06:22:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYBZyfKdSRCoounZDIZ4jY2rSk3UnzV4U/BTzugPYm/EKJUJYdM84w2b8tNDXs3AsLxxwd X-Received: by 2002:a17:902:681:: with SMTP id 1mr9691465plh.31.1553260976625; Fri, 22 Mar 2019 06:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260976; cv=none; d=google.com; s=arc-20160816; b=hFFaqi2IksIJh6HvOplxpTF4mrKUG7e7ykAy6mqFtKjVW3FCKVIgwlSwPoL9MJWmYc nRDAcLZUDE24mpzNxIsxn47xVsTVlmILtdvY22K5TnBEr4ow36P3+TVgpx0sSC7iJQ6M VGxCDcQT7VnRNKzzvZuYtmRm1ELYx3MGawJz9K+x3YwdeQs1BrXl4hxveARGV1MLk0et LKlamhFSOhR/ctsdvK5tLjxI0IwnncgGeTPGrWAGGltXjizdmb2xpIjBSezzT2dEehUQ L8Mc99YilLP4Z/1NijiotGLgrFxVtYk6WCyvRhZaDQ1lwYKd6ZhNQWgXeRBb7Znqs3XL RQnQ== 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=VZcMuBEFHvAzY1Xz7d3kBQFgvV55kJ9PzjVwncapnxI=; b=xTKlnUr5fkPG4SBH9xW7YDbyzvL4dHIcDQOqS1RXbfys6uHdziYXx3fBTFfzWK5baJ r+ID6opB8GC7cGI+pzuv0dl65CqeFXiWaCVjPOHCNTEnnMiaDRHStFL4UFzmHa6hF78x UuuBc0qHFOOPpaGiEkml5stzJTHXKlPmLsdr5XwAb0py0Jrgf7+9Nciwh4h6zFfpko4M eyUGCvUEB+1bBxpvXuGUmzUckW9xJDQmATg88c3TD2mjMcz3GZxXVXbSwbk2K6xjSXe5 We0IzUuE1hlEeEF5M2IlJ/kUbJ/J2vdAjh5vmIA3mmpkvzO0tqyoRzbk5gXpv3/f9o+Q WY0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QK6PvA4J; 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 g8si6596162pgq.159.2019.03.22.06.22.38; Fri, 22 Mar 2019 06:22:56 -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=QK6PvA4J; 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 S1728338AbfCVLUX (ORCPT + 99 others); Fri, 22 Mar 2019 07:20:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:46720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728236AbfCVLUW (ORCPT ); Fri, 22 Mar 2019 07:20:22 -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 0DCCB218A2; Fri, 22 Mar 2019 11:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253621; bh=bTIwpOOPUe5LpbjB2zaho4Q3rT8Nop7//JIb/GRkSlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QK6PvA4J9zjrJxZq4aSy1BG1jYPVfMTEEcOgeLtlCPZV6L1o74t8J8BE+8ECYszs2 fY/ZlzLrSj+lTI2SczW5KeeAZV30/+9B+VmUKG+PgKynbOPBULYk5zgN2s6CuhwKrR szXp6/vR7vMBVmiyRNItbIF4uy0irfmnO64RV0eg= 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 005/134] mfd: twl-core: Fix section annotations on {,un}protect_pm_master Date: Fri, 22 Mar 2019 12:13:38 +0100 Message-Id: <20190322111210.675947624@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 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 db11b4f406116..2608c1d865857 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -983,7 +983,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; @@ -992,7 +992,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