Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp349409ybj; Thu, 19 Sep 2019 15:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIeBH+qbdM6l395ZPdIcyeS666iWm8d/uigFMIKzXxXJm9lshsb+89gBsjY59SHA+r03sB X-Received: by 2002:a17:906:5146:: with SMTP id s6mr16665823ejl.1.1568932284959; Thu, 19 Sep 2019 15:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568932284; cv=none; d=google.com; s=arc-20160816; b=lYAlxyD5Q0nMWO12sXGQp28AlwgDRzq0/Aw0dv7X9UbpW5hgplA/FF1S6znYQQY2TM 49eCJKM889zoFytnDItNUiCyD63p9kE0vlFRMMCvIgozsrtSTgEXyN8AgKk4fEw7ryGk SWiG9Rm17Pyn4pr4g3lqLt7U1g2dnsSVDpqSxUWF6Q/Ng/RZnWLGIKXZHjOWQyPaFmSF th+xd63Z+bKYvsGqHkoRNL5LqpCBskRE71vaFefiw4fH4Mg7MoyxzxiOAzJ/Fqn70hY+ DYD3b3UhjA/jZNcpZ/afTgoWvzvIVUt9CLlIi2DfLoSU5bmkTN9YVnXThY/UpaUQFiQK MiUw== 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=/KPHcB49sqJBjWWMeery8qUGg1/xmdXttzpB54EjAUA=; b=cjx/5vWx73pN11aR4xqUKkuVv9sWF7VC+OQPdnHs6ksGtQo7yFg3j8zWam5if/WbRm dfDU1UPkGfNzX5n/wVB/fYuiiO1Hia5WvJ4WvUjEIHfRMHo0C0uJvg6+K3mCkLr837un aL2xYxjvDdjc6YOGWMAlyYkWPPGNqiJ0I46wx/c9Ib5EZOBTNlqePNdh+QahJ0I2rAKI 6qkq2ZHVUsO8q5m4xCbBWKHXTAztIIwj9URAtIXpeubGBaxPJoX3OrIoshgK68Ygq3DR ofRFX0gtKL+9DgdQx/yAHuDlQq4D1FdgLTcTbsp9LB2TQD3VRy78Gim0fp2AJjCQ+/gZ BSQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PR0oHqXo; 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 d3si5168434eja.30.2019.09.19.15.31.01; Thu, 19 Sep 2019 15:31:24 -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=PR0oHqXo; 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 S2406514AbfISWRn (ORCPT + 99 others); Thu, 19 Sep 2019 18:17:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:58922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406488AbfISWRl (ORCPT ); Thu, 19 Sep 2019 18:17:41 -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 2CE4320678; Thu, 19 Sep 2019 22:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931460; bh=euDTmi3o+maZTn2OyWRJ//BCsc8MPWXUgCcZXYSqCJc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PR0oHqXoUFt94KBPPN5JYiI3Q3H3l9f6lGCT9m6h+RiPqb7VS/P3Wp7qm/6Jo6tIr 19LITOm8G+X/6QPmw4/O4kNKC6o+jE5T6ZnqI4+PfFldQ21Mg2QFJlHIBN15bQT8wP ZOsJ2Xw3E1f2sZ8Q/ZLG4TRzgy5FpbDKKEYqVa4g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Lorenzo Pieralisi Subject: [PATCH 4.14 54/59] PCI: kirin: Fix section mismatch warning Date: Fri, 20 Sep 2019 00:04:09 +0200 Message-Id: <20190919214808.159977294@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919214755.852282682@linuxfoundation.org> References: <20190919214755.852282682@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Nathan Chancellor commit 6870b673509779195cab300aedc844b352d9cfbc upstream. The PCI kirin driver compilation produces the following section mismatch warning: WARNING: vmlinux.o(.text+0x4758cc): Section mismatch in reference from the function kirin_pcie_probe() to the function .init.text:kirin_add_pcie_port() The function kirin_pcie_probe() references the function __init kirin_add_pcie_port(). This is often because kirin_pcie_probe lacks a __init annotation or the annotation of kirin_add_pcie_port is wrong. Remove '__init' from kirin_add_pcie_port() to fix it. Fixes: fc5165db245a ("PCI: kirin: Add HiSilicon Kirin SoC PCIe controller driver") Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor [lorenzo.pieralisi@arm.com: updated commit log] Signed-off-by: Lorenzo Pieralisi Signed-off-by: Greg Kroah-Hartman --- drivers/pci/dwc/pcie-kirin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/pci/dwc/pcie-kirin.c +++ b/drivers/pci/dwc/pcie-kirin.c @@ -449,8 +449,8 @@ static const struct dw_pcie_host_ops kir .host_init = kirin_pcie_host_init, }; -static int __init kirin_add_pcie_port(struct dw_pcie *pci, - struct platform_device *pdev) +static int kirin_add_pcie_port(struct dw_pcie *pci, + struct platform_device *pdev) { pci->pp.ops = &kirin_pcie_host_ops;