From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA036C43467 for ; Mon, 19 Oct 2020 06:15:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 581F720708 for ; Mon, 19 Oct 2020 06:15:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Wu9P2lzp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgJSGPB (ORCPT ); Mon, 19 Oct 2020 02:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbgJSGPB (ORCPT ); Mon, 19 Oct 2020 02:15:01 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7794C061755; Sun, 18 Oct 2020 23:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=byNuAlZMqUBDf/Ni087inEqcMCUxOCKj6p7sxgD8Ioc=; b=Wu9P2lzpc8m/LaFoouYosaRITH PJLe/3a8le5x0OU8RwnMmg6SacAIbOEGUxhUGC3QKeDZSEMdIoRVFhmGU1EQQkMyPBAqBMF2zG2BW xSCGLNbWDBd7cBktLx5xsgkF6VB/O1JhuhAC9MbiH7AlbI7lnWSDahdhdDCYXdC5nJneNjg/djlNw dLWfPqKEOf5JyzhgIVmMogQr+kyp7cVAR7SJJd/UWyff3TMFvgjxi+FIQdyktL3nSfNAmgeF8vV6s NoVJvG1IZQSwUC2jT9Zvr9pFiejq1jmmp+hh9adiknxyua54sPJ118yH+kQzKQlV3uneteYyhPuxi elXNyN4w==; Received: from [2601:1c0:6280:3f0::507c] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUORe-0001BX-9t; Mon, 19 Oct 2020 06:14:58 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Thomas Bogendoerfer , Paul Burton , linux-mips@vger.kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org Subject: [PATCH] PCI: export pci_find_host_bridge() to fix MFD build error Date: Sun, 18 Oct 2020 23:14:53 -0700 Message-Id: <20201019061453.32295-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Fix a build error in drivers/mfd/ioc.o by exporting pci_find_host_bridge(). ERROR: modpost: "pci_find_host_bridge" [drivers/mfd/ioc3.ko] undefined! Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: linux-mips@vger.kernel.org Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org --- drivers/pci/host-bridge.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-next-20201016.orig/drivers/pci/host-bridge.c +++ linux-next-20201016/drivers/pci/host-bridge.c @@ -4,6 +4,7 @@ */ #include +#include #include #include @@ -23,6 +24,7 @@ struct pci_host_bridge *pci_find_host_br return to_pci_host_bridge(root_bus->bridge); } +EXPORT_SYMBOL(pci_find_host_bridge); struct device *pci_get_host_bridge_device(struct pci_dev *dev) {