From patchwork Wed May 22 08:54:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philippe Mazenauer X-Patchwork-Id: 10955333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 08EFD112C for ; Wed, 22 May 2019 08:54:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8CA528770 for ; Wed, 22 May 2019 08:54:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD03828B6A; Wed, 22 May 2019 08:54:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,MALFORMED_FREEMAIL, MISSING_HEADERS,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 31D5D28770 for ; Wed, 22 May 2019 08:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date :Subject:From:Reply-To:To:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8tilUxZIXfR8wtuJBQqJnajKWmxFdtOebHM2Yvfq0e4=; b=YN3KM+780bU0RB j7VIEfBkt4lM4d72VloiL/GtoECET2JXQPVUfcQiOi0DW0pCii+0hFZ5IiAkvLvr0L2EDmnQ93XKK f8O8kr1t8ruJhGNaEqfLmr4agVn8NjOACF8ZH9sOyo/W7HXiVdSrdlWISx3ighcq0r68WJq4VmI7w m7Fwzq/Q3bn05izUB0LPn4TVr3hrvxdlG0ETNBhrAo0OEGSiNDrw+LgBdLQDl7IazZZICT5LzWAMM nDqjgeQapdXUA7NK5t5pq21n1n7jyo3Acdj577Uv66Tj+0tW7+KOdO+BAD/gqWtSeyS3yJRE74xbh bLhYUbpRELTwDDByRRHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTN1H-0006bh-0j; Wed, 22 May 2019 08:54:43 +0000 Received: from mail-oln040092067106.outbound.protection.outlook.com ([40.92.67.106] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTN1D-0006b0-K4 for linux-arm-kernel@lists.infradead.org; Wed, 22 May 2019 08:54:41 +0000 Received: from AM5EUR02FT029.eop-EUR02.prod.protection.outlook.com (10.152.8.57) by AM5EUR02HT231.eop-EUR02.prod.protection.outlook.com (10.152.9.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16; Wed, 22 May 2019 08:54:36 +0000 Received: from VI1PR07MB4432.eurprd07.prod.outlook.com (10.152.8.57) by AM5EUR02FT029.mail.protection.outlook.com (10.152.8.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.16 via Frontend Transport; Wed, 22 May 2019 08:54:36 +0000 Received: from VI1PR07MB4432.eurprd07.prod.outlook.com ([fe80::91f:b1bb:a60a:fdc3]) by VI1PR07MB4432.eurprd07.prod.outlook.com ([fe80::91f:b1bb:a60a:fdc3%7]) with mapi id 15.20.1922.013; Wed, 22 May 2019 08:54:35 +0000 From: Philippe Mazenauer Subject: [PATCH] ARM: Add method to mach/pci.h Thread-Topic: [PATCH] ARM: Add method to mach/pci.h Thread-Index: AQHVEHv6lq8w7O7W1kuo9tizM8ubug== Date: Wed, 22 May 2019 08:54:34 +0000 Message-ID: Accept-Language: de-CH, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR0201CA0001.namprd02.prod.outlook.com (2603:10b6:301:74::14) To VI1PR07MB4432.eurprd07.prod.outlook.com (2603:10a6:802:67::17) x-incomingtopheadermarker: OriginalChecksum:AE6877DCB04B7A1ABB5EAE267A161E0BB157E0E7B953ABF9D704854FE2E1E338; UpperCasedChecksum:1F8AD31A4A089FF3C730F2C3E3FA88C354BFB6319A50B83F0A7CD44991D4E8C2; SizeAsReceived:7421; Count:47 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [cYBMpV7q8ymNh4KaOYE0WfZP4tigp1go] x-microsoft-original-message-id: <20190522085353.113717-1-philippe.mazenauer@outlook.de> x-ms-publictraffictype: Email x-incomingheadercount: 47 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:AM5EUR02HT231; x-ms-traffictypediagnostic: AM5EUR02HT231: x-microsoft-antispam-message-info: h1vn1LmJtUMreQ0Pee7FC2pTadgObiOZKYK1dMviGlW+IATHSKa3dujBwCgjMMiofT6i2CXo/V5std3KWMCVAJn0lW0a+/QwMiniy8B6klV5TtS2KzhxR+7RNPeJvRNSXz1qWqXo9vfi9Zpl6kpT7M0tu/zUiNGf9DEfFuQYOgPklds+RejtnH5fhkM7Ashm Content-ID: <17B8CDA1DC5EF441B76A66E351EC577E@eurprd07.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c8705529-ceb8-49a1-0466-08d6de931c0a X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2019 08:54:35.6337 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT231 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190522_015439_664990_187D7790 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Philippe Mazenauer , Russell King , "moderated list:ARM PORT" , open list Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Adding method pcibios_report_status() to mach/pci.h, so as to remove the extern declaration in dc21285.c, and remove missing-prototypes warning in kernel/bios32.c. ../arch/arm/kernel/bios32.c:59:6: warning: no previous prototype for ‘pcibios_report_status’ [-Wmissing-prototypes] void pcibios_report_status(u_int status_mask, int warn) ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mazenauer --- arch/arm/include/asm/mach/pci.h | 2 ++ arch/arm/mach-footbridge/dc21285.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h index 233b4b50eff3..1e07612bcbdb 100644 --- a/arch/arm/include/asm/mach/pci.h +++ b/arch/arm/include/asm/mach/pci.h @@ -57,6 +57,8 @@ struct pci_sys_data { void *private_data; /* platform controller private data */ }; +void pcibios_report_status(u_int status_mask, int warn); + /* * Call this with your hw_pci struct to initialise the PCI system. */ diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c index 16d71bac0061..75d97cde7655 100644 --- a/arch/arm/mach-footbridge/dc21285.c +++ b/arch/arm/mach-footbridge/dc21285.c @@ -34,7 +34,6 @@ PCI_STATUS_PARITY) << 16) extern int setup_arm_irq(int, struct irqaction *); -extern void pcibios_report_status(u_int status_mask, int warn); static unsigned long dc21285_base_address(struct pci_bus *bus, unsigned int devfn)